44
44
import static oracle .weblogic .kubernetes .TestConstants .ISTIO_HTTP_HOSTPORT ;
45
45
import static oracle .weblogic .kubernetes .TestConstants .K8S_NODEPORT_HOST ;
46
46
import static oracle .weblogic .kubernetes .TestConstants .KUBERNETES_CLI ;
47
- import static oracle .weblogic .kubernetes .TestConstants .MII_BASIC_APP_DEPLOYMENT_NAME ;
48
47
import static oracle .weblogic .kubernetes .TestConstants .MII_BASIC_IMAGE_NAME ;
49
48
import static oracle .weblogic .kubernetes .TestConstants .MII_BASIC_IMAGE_TAG ;
50
49
import static oracle .weblogic .kubernetes .TestConstants .OKE_CLUSTER ;
@@ -102,8 +101,6 @@ class ItIstioMiiDomain {
102
101
private final String managedServerPrefix = domainUid + "-managed-server" ;
103
102
private final int replicaCount = 2 ;
104
103
105
- private static String testWebAppWarLoc = null ;
106
-
107
104
private static final String istioNamespace = "istio-system" ;
108
105
private static final String istioIngressServiceName = "istio-ingressgateway" ;
109
106
@@ -250,6 +247,8 @@ void testIstioModelInImageDomain() throws UnknownHostException, IOException, Int
250
247
headers .put ("host" , domainNamespace + ".org" );
251
248
headers .put ("Authorization" , ADMIN_USERNAME_DEFAULT + ":" + ADMIN_PASSWORD_DEFAULT );
252
249
250
+ String workManagers = "/management/weblogic/latest/domainConfig/selfTuning/workManagers/" ;
251
+ String newWM = workManagers + "newWM/" ;
253
252
if (!TestConstants .WLSIMG_BUILDER .equals (TestConstants .WLSIMG_BUILDER_DEFAULT )) {
254
253
istioIngressPort = ISTIO_HTTP_HOSTPORT ;
255
254
hostAndPort = InetAddress .getLocalHost ().getHostAddress () + ":" + istioIngressPort ;
@@ -260,6 +259,9 @@ void testIstioModelInImageDomain() throws UnknownHostException, IOException, Int
260
259
response = OracleHttpClient .get (url , headers , true );
261
260
assertEquals (200 , response .statusCode ());
262
261
assertTrue (response .body ().contains ("RUNNING" ));
262
+
263
+ String wmUrl = "http://" + hostAndPort + workManagers ;
264
+ checkApp (wmUrl , headers );
263
265
264
266
if (OKE_CLUSTER ) {
265
267
// create secret for internal OKE cluster
@@ -284,11 +286,10 @@ void testIstioModelInImageDomain() throws UnknownHostException, IOException, Int
284
286
String introspectVersion = patchDomainResourceWithNewIntrospectVersion (domainUid , domainNamespace );
285
287
verifyIntrospectorRuns (domainUid , domainNamespace );
286
288
287
- String resourcePath = "/management/weblogic/latest/domainRuntime"
288
- + "/serverRuntimes/managed-server1/applicationRuntimes/"
289
- + MII_BASIC_APP_DEPLOYMENT_NAME + "/workManagerRuntimes/newWM/" ;
290
- String wmRuntimeUrl = "http://" + hostAndPort + resourcePath ;
291
- checkApp (wmRuntimeUrl , headers );
289
+ wmUrl = "http://" + hostAndPort + workManagers ;
290
+ checkApp (wmUrl , headers );
291
+ wmUrl = "http://" + hostAndPort + newWM ;
292
+ checkApp (wmUrl , headers );
292
293
logger .info ("Found new work manager runtime" );
293
294
294
295
verifyPodsNotRolled (domainNamespace , pods );
0 commit comments