@@ -77,8 +77,8 @@ public static void staticPrepare() throws Exception {
7777 Assert .assertNotNull (domain );
7878 domainUid = domain .getDomainUid ();
7979 domainNS = domain .getDomainNS ();
80- // BaseTest.setWaitTimePod(2 );
81- // BaseTest.setMaxIterationsPod(100 );
80+ BaseTest .setWaitTimePod (5 );
81+ BaseTest .setMaxIterationsPod (50 );
8282 }
8383 }
8484
@@ -488,13 +488,16 @@ private void updateCRDYamlVerifyShutdown(DomainCRD crd, long delayTime) throws E
488488 TestUtils.checkPodDeleted(domainUid + "-managed-server1", domainNS);
489489 TestUtils.checkPodDeleted(domainUid + "-admin-server", domainNS);
490490 */
491+ this .domain .shutdown ();
491492 logger .log (Level .INFO , "kubectl apply -f {0}" , path .toString ());
492493 ExecResult exec = TestUtils .exec ("kubectl apply -f " + path .toString ());
493494 logger .info (exec .stdout ());
494495
495496 logger .info ("Verifying if the domain is restarted" );
496- this .domain .verifyAdminServerRestarted ();
497- this .domain .verifyManagedServersRestarted ();
497+ TestUtils .checkPodReady (domainUid + "-admin-server" , domainNS );
498+ TestUtils .checkPodReady (domainUid + "-managed-server1" , domainNS );
499+ // this.domain.verifyAdminServerRestarted();
500+ // this.domain.verifyManagedServersRestarted();
498501
499502 // invoke servlet to keep sessions opened, terminate pod and check shutdown time
500503 if (delayTime > 0 ) {
@@ -509,7 +512,7 @@ private void updateCRDYamlVerifyShutdown(DomainCRD crd, long delayTime) throws E
509512
510513 // logger.info("Checking termination time");
511514 // terminationTime = checkShutdownTime(domainUid + "-managed-server1");
512- // logger.info(" termination time " + terminationTime);
515+ logger .info (" termination time: " + terminationTime );
513516 }
514517
515518 private static void getDefaultShutdownTime () throws Exception {
@@ -523,13 +526,16 @@ private static void getDefaultShutdownTime() throws Exception {
523526 private static void resetDomainCRD () throws Exception {
524527
525528 // reset the domain crd
529+ domain .shutdown ();
526530 logger .log (Level .INFO , "kubectl apply -f " , originalYaml );
527531 ExecResult exec = TestUtils .exec ("kubectl apply -f " + originalYaml );
528532 logger .info (exec .stdout ());
529533 logger .info ("Verifying if the domain is restarted" );
534+ Thread .sleep (10 * 1000 );
530535 // should restart domain
531- domain .verifyAdminServerRestarted ();
532- domain .verifyManagedServersRestarted ();
536+ TestUtils .checkPodReady (domainUid + "-admin-server" , domainNS );
537+ TestUtils .checkPodReady (domainUid + "-managed-server1" , domainNS );
538+
533539 Assert .assertTrue (
534540 "Property value was not found in the updated domain crd " ,
535541 checkShutdownUpdatedProp (domainUid + "-admin-server" , "30" , "false" , "Graceful" ));
0 commit comments