@@ -77,8 +77,8 @@ public static void staticPrepare() throws Exception {
77
77
Assert .assertNotNull (domain );
78
78
domainUid = domain .getDomainUid ();
79
79
domainNS = domain .getDomainNS ();
80
- // BaseTest.setWaitTimePod(2 );
81
- // BaseTest.setMaxIterationsPod(100 );
80
+ BaseTest .setWaitTimePod (5 );
81
+ BaseTest .setMaxIterationsPod (50 );
82
82
}
83
83
}
84
84
@@ -488,13 +488,16 @@ private void updateCRDYamlVerifyShutdown(DomainCRD crd, long delayTime) throws E
488
488
TestUtils.checkPodDeleted(domainUid + "-managed-server1", domainNS);
489
489
TestUtils.checkPodDeleted(domainUid + "-admin-server", domainNS);
490
490
*/
491
+ this .domain .shutdown ();
491
492
logger .log (Level .INFO , "kubectl apply -f {0}" , path .toString ());
492
493
ExecResult exec = TestUtils .exec ("kubectl apply -f " + path .toString ());
493
494
logger .info (exec .stdout ());
494
495
495
496
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();
498
501
499
502
// invoke servlet to keep sessions opened, terminate pod and check shutdown time
500
503
if (delayTime > 0 ) {
@@ -509,7 +512,7 @@ private void updateCRDYamlVerifyShutdown(DomainCRD crd, long delayTime) throws E
509
512
510
513
// logger.info("Checking termination time");
511
514
// terminationTime = checkShutdownTime(domainUid + "-managed-server1");
512
- // logger.info(" termination time " + terminationTime);
515
+ logger .info (" termination time: " + terminationTime );
513
516
}
514
517
515
518
private static void getDefaultShutdownTime () throws Exception {
@@ -523,13 +526,16 @@ private static void getDefaultShutdownTime() throws Exception {
523
526
private static void resetDomainCRD () throws Exception {
524
527
525
528
// reset the domain crd
529
+ domain .shutdown ();
526
530
logger .log (Level .INFO , "kubectl apply -f " , originalYaml );
527
531
ExecResult exec = TestUtils .exec ("kubectl apply -f " + originalYaml );
528
532
logger .info (exec .stdout ());
529
533
logger .info ("Verifying if the domain is restarted" );
534
+ Thread .sleep (10 * 1000 );
530
535
// should restart domain
531
- domain .verifyAdminServerRestarted ();
532
- domain .verifyManagedServersRestarted ();
536
+ TestUtils .checkPodReady (domainUid + "-admin-server" , domainNS );
537
+ TestUtils .checkPodReady (domainUid + "-managed-server1" , domainNS );
538
+
533
539
Assert .assertTrue (
534
540
"Property value was not found in the updated domain crd " ,
535
541
checkShutdownUpdatedProp (domainUid + "-admin-server" , "30" , "false" , "Graceful" ));
0 commit comments