@@ -493,11 +493,6 @@ private void recreateConfigMapandRestart(String oldSecret, String newSecret) thr
493
493
// stop all running wls pods
494
494
int clusterReplicas =
495
495
TestUtils .getClusterReplicas (DOMAINUID , domain .getClusterName (), domain .getDomainNs ());
496
- String patchStr = "'{\" spec\" :{\" serverStartPolicy\" :\" NEVER\" }}'" ;
497
- TestUtils .kubectlpatch (DOMAINUID , domain .getDomainNs (), patchStr );
498
- Thread .sleep (60000 );
499
- domain .verifyServerPodsDeleted (clusterReplicas );
500
- TestUtils .exec ("kubectl get all --all-namespaces" , true );
501
496
502
497
// recreate the configmap with new overrride files
503
498
String cmd =
@@ -539,8 +534,12 @@ private void recreateConfigMapandRestart(String oldSecret, String newSecret) thr
539
534
// apply the new domain.yaml
540
535
TestUtils .exec ("kubectl apply -f " + domainYaml , true );
541
536
}
542
- // start the pods so that introspector can run and replace files with new secret if changed and
543
- // with new config override files
537
+ // restart the pods so that introspector can run and replace files with new secret if changed
538
+ // and with new config override files
539
+ String patchStr = "'{\" spec\" :{\" serverStartPolicy\" :\" NEVER\" }}'" ;
540
+ TestUtils .kubectlpatch (DOMAINUID , domain .getDomainNs (), patchStr );
541
+ domain .verifyServerPodsDeleted (clusterReplicas );
542
+ TestUtils .exec ("kubectl get all --all-namespaces" , true );
544
543
patchStr = "'{\" spec\" :{\" serverStartPolicy\" :\" IF_NEEDED\" }}'" ;
545
544
TestUtils .kubectlpatch (DOMAINUID , domain .getDomainNs (), patchStr );
546
545
domain .verifyDomainCreated ();
0 commit comments