1- // Copyright (c) 2018, 2022 , Oracle and/or its affiliates.
1+ // Copyright (c) 2018, 2023 , Oracle and/or its affiliates.
22// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33
44package oracle .kubernetes .operator .steps ;
@@ -137,7 +137,7 @@ public void tearDown() {
137137 @ Test
138138 void whenReadAdminServerHealth_decrementRemainingServers () {
139139 selectServer (ADMIN_NAME );
140- defineResponse (200 , OK_RESPONSE , "http://" + ADMIN_NAME + ".Test:3456" );
140+ defineResponse (200 , OK_RESPONSE , "http://" + ADMIN_NAME + ".Test.svc :3456" );
141141
142142 Packet packet = testSupport .runSteps (readHealthStep );
143143
@@ -155,7 +155,7 @@ private void defineResponse(int status, String body, @Nonnull String url) {
155155 void whenReadConfiguredManagedServerHealth_decrementRemainingServers () {
156156 V1Service service = selectServer (CONFIGURED_MANAGED_SERVER1 );
157157 configureServiceWithClusterName (CONFIGURED_CLUSTER_NAME , service );
158- defineResponse (200 , OK_RESPONSE , "http://" + CONFIGURED_MANAGED_SERVER1 + ".Test:7001" );
158+ defineResponse (200 , OK_RESPONSE , "http://" + CONFIGURED_MANAGED_SERVER1 + ".Test.svc :7001" );
159159
160160 Packet packet = testSupport .runSteps (readHealthStep );
161161
@@ -169,7 +169,7 @@ void whenReadConfiguredManagedServerHealth_decrementRemainingServers() {
169169 void whenReadDynamicManagedServerHealth_decrementRemainingServers () {
170170 V1Service service = selectServer (DYNAMIC_MANAGED_SERVER1 );
171171 configureServiceWithClusterName (DYNAMIC_CLUSTER_NAME , service );
172- defineResponse (200 , OK_RESPONSE , "http://" + DYNAMIC_MANAGED_SERVER1 + ".Test:7001" );
172+ defineResponse (200 , OK_RESPONSE , "http://" + DYNAMIC_MANAGED_SERVER1 + ".Test.svc :7001" );
173173
174174 Packet packet = testSupport .runSteps (readHealthStep );
175175
@@ -180,7 +180,7 @@ void whenReadDynamicManagedServerHealth_decrementRemainingServers() {
180180 void whenServerRunning_verifyServerHealth () {
181181 selectServer (MANAGED_SERVER1 );
182182
183- defineResponse (200 , OK_RESPONSE , "http://" + MANAGED_SERVER1 + ".Test:8001" );
183+ defineResponse (200 , OK_RESPONSE , "http://" + MANAGED_SERVER1 + ".Test.svc :8001" );
184184
185185 Packet packet = testSupport .runSteps (readHealthStep );
186186
@@ -199,7 +199,7 @@ private Map<String, String> getServerStateMap(Packet packet) {
199199 @ Test
200200 void whenAdminPodIPNull_verifyServerHealth () {
201201 selectServer (ADMIN_NAME );
202- defineResponse (200 , OK_RESPONSE , "http://admin-server.Test:3456" );
202+ defineResponse (200 , OK_RESPONSE , "http://admin-server.Test.svc :3456" );
203203
204204 Packet packet = testSupport .runSteps (readHealthStep );
205205
@@ -209,7 +209,7 @@ void whenAdminPodIPNull_verifyServerHealth() {
209209 @ Test
210210 void whenAdminPodIPNull_requestSendWithCredentials () {
211211 selectServer (ADMIN_NAME );
212- defineResponse (200 , OK_RESPONSE , "http://admin-server.Test:3456" );
212+ defineResponse (200 , OK_RESPONSE , "http://admin-server.Test.svc :3456" );
213213
214214 testSupport .runSteps (readHealthStep );
215215
@@ -232,7 +232,7 @@ private String expectedAuthorizationHeader() {
232232 void whenServerOverloaded_verifyServerHealth () {
233233 selectServer (MANAGED_SERVER1 );
234234
235- defineResponse (500 , "" , "http://" + MANAGED_SERVER1 + ".Test:8001" );
235+ defineResponse (500 , "" , "http://" + MANAGED_SERVER1 + ".Test.svc :8001" );
236236
237237 Packet packet = testSupport .runSteps (readHealthStep );
238238
@@ -245,7 +245,7 @@ void whenServerOverloaded_verifyServerHealth() {
245245 void whenUnableToReadHealth_verifyNotAvailable () {
246246 selectServer (MANAGED_SERVER1 );
247247
248- defineResponse (404 , "" , "http://" + MANAGED_SERVER1 + ".Test:8001" );
248+ defineResponse (404 , "" , "http://" + MANAGED_SERVER1 + ".Test.svc :8001" );
249249
250250 Packet packet = testSupport .runSteps (readHealthStep );
251251
@@ -394,15 +394,15 @@ void whenAuthorizedToReadHealthAndThenWait_verifySecretCleared() {
394394 void whenNotAuthorizedToReadHealth_verifySecretCleared () {
395395 selectServer (MANAGED_SERVER1 );
396396
397- defineResponse (403 , "" , "http://" + MANAGED_SERVER1 + ".Test:8001" );
397+ defineResponse (403 , "" , "http://" + MANAGED_SERVER1 + ".Test.svc :8001" );
398398
399399 testSupport .runSteps (readHealthStep );
400400
401401 assertThat (info .getWebLogicCredentialsSecret (), is (nullValue ()));
402402 }
403403
404404 private void defineExpectedURLInResponse (String protocol , int port ) {
405- defineResponse (200 , OK_RESPONSE , protocol + "://dyn-managed-server2.Test:" + port );
405+ defineResponse (200 , OK_RESPONSE , protocol + "://dyn-managed-server2.Test.svc :" + port );
406406 }
407407
408408 private boolean readServerHealthSucceeded (Packet packet ) {
0 commit comments