@@ -95,7 +95,6 @@ class ItLivenessProbeCustomization {
95
95
private static final int replicaCount = 1 ;
96
96
private static final int NUMBER_OF_CLUSTERS_MIIDOMAIN = 2 ;
97
97
private static final String adminServerPodName = domainUid + "-" + ADMIN_SERVER_NAME_BASE ;
98
- private static final String adminServerPodName2 = domainUid2 + "-" + ADMIN_SERVER_NAME_BASE ;
99
98
private static final String APPCHECK_SCRIPT = "customLivenessProbe.sh" ;
100
99
private static final String COPY_CMD = "copy-cmd.txt" ;
101
100
private static final String internalPort = "8001" ;
@@ -330,6 +329,18 @@ void testCustomLivenessProbeFailureThresholdSuccessThreshold() {
330
329
}
331
330
}
332
331
332
+ // check the admin server is up and running
333
+ checkPodReadyAndServiceExists (adminServerPodName , domainUid , domainNamespace );
334
+
335
+ // check the managed servers are up and running
336
+ for (int i = 1 ; i <= NUMBER_OF_CLUSTERS_MIIDOMAIN ; i ++) {
337
+ for (int j = 1 ; j <= replicaCount ; j ++) {
338
+ String managedServerPodName =
339
+ domainUid + "-" + CLUSTER_NAME_PREFIX + i + "-" + MANAGED_SERVER_NAME_BASE + j ;
340
+ checkPodReadyAndServiceExists (managedServerPodName , domainUid , domainNamespace );
341
+ }
342
+ }
343
+
333
344
// check the livenessProbe failureThreshold and successThreshold after the domain got patched
334
345
domain1 = assertDoesNotThrow (() -> getDomainCustomResource (domainUid , domainNamespace ),
335
346
String .format ("getDomainCustomResource failed with ApiException when tried to get domain %s in namespace %s" ,
@@ -667,6 +678,18 @@ void testCustomReadinessProbeFailureThresholdSuccessThreshold() {
667
678
}
668
679
}
669
680
681
+ // check the admin server is up and running
682
+ checkPodReadyAndServiceExists (adminServerPodName , domainUid , domainNamespace );
683
+
684
+ // check the managed servers are up and running
685
+ for (int i = 1 ; i <= NUMBER_OF_CLUSTERS_MIIDOMAIN ; i ++) {
686
+ for (int j = 1 ; j <= replicaCount ; j ++) {
687
+ String managedServerPodName =
688
+ domainUid + "-" + CLUSTER_NAME_PREFIX + i + "-" + MANAGED_SERVER_NAME_BASE + j ;
689
+ checkPodReadyAndServiceExists (managedServerPodName , domainUid , domainNamespace );
690
+ }
691
+ }
692
+
670
693
// check the readinessProbe failureThreshold and successThreshold after the domain got patched
671
694
domain1 = assertDoesNotThrow (() -> getDomainCustomResource (domainUid , domainNamespace ),
672
695
String .format ("getDomainCustomResource failed with ApiException when tried to get domain %s in namespace %s" ,
@@ -726,6 +749,18 @@ void testCustomReadinessProbeFailureThresholdSuccessThreshold() {
726
749
managedServerPodsCreationTime .get (managedServerPodName ));
727
750
}
728
751
}
752
+
753
+ // check the admin server is up and running
754
+ checkPodReadyAndServiceExists (adminServerPodName , domainUid , domainNamespace );
755
+
756
+ // check the managed servers are up and running
757
+ for (int i = 1 ; i <= NUMBER_OF_CLUSTERS_MIIDOMAIN ; i ++) {
758
+ for (int j = 1 ; j <= replicaCount ; j ++) {
759
+ String managedServerPodName =
760
+ domainUid + "-" + CLUSTER_NAME_PREFIX + i + "-" + MANAGED_SERVER_NAME_BASE + j ;
761
+ checkPodReadyAndServiceExists (managedServerPodName , domainUid , domainNamespace );
762
+ }
763
+ }
729
764
}
730
765
731
766
/**
0 commit comments