|
32 | 32 | import oracle.weblogic.kubernetes.annotations.IntegrationTest;
|
33 | 33 | import oracle.weblogic.kubernetes.annotations.Namespaces;
|
34 | 34 | import oracle.weblogic.kubernetes.logging.LoggingFacade;
|
| 35 | +import org.awaitility.core.ConditionFactory; |
35 | 36 | import org.junit.jupiter.api.BeforeAll;
|
36 | 37 | import org.junit.jupiter.api.DisplayName;
|
37 | 38 | import org.junit.jupiter.api.MethodOrderer;
|
|
67 | 68 | import static oracle.weblogic.kubernetes.utils.ClusterUtils.stopCluster;
|
68 | 69 | import static oracle.weblogic.kubernetes.utils.CommonMiiTestUtils.verifyPodsNotRolled;
|
69 | 70 | import static oracle.weblogic.kubernetes.utils.CommonTestUtils.checkPodReadyAndServiceExists;
|
| 71 | +import static oracle.weblogic.kubernetes.utils.CommonTestUtils.createCustomConditionFactory; |
70 | 72 | import static oracle.weblogic.kubernetes.utils.CommonTestUtils.getNextFreePort;
|
71 | 73 | import static oracle.weblogic.kubernetes.utils.CommonTestUtils.testUntil;
|
72 | 74 | import static oracle.weblogic.kubernetes.utils.CommonTestUtils.withLongRetryPolicy;
|
@@ -254,7 +256,8 @@ void testAddReplaceClusterResource() {
|
254 | 256 |
|
255 | 257 | //verify the introspector pod is created and runs
|
256 | 258 | String introspectPodNameBase2 = getIntrospectJobName(domainUid);
|
257 |
| - checkPodExists(introspectPodNameBase2, domainUid, domainNamespace); |
| 259 | + ConditionFactory customConditionFactory = createCustomConditionFactory(0, 1, 5); |
| 260 | + checkPodExists(customConditionFactory, introspectPodNameBase2, domainUid, domainNamespace); |
258 | 261 | checkPodDoesNotExist(introspectPodNameBase2, domainUid, domainNamespace);
|
259 | 262 |
|
260 | 263 | // check managed server pods from cluster-1 are shutdown
|
@@ -363,7 +366,8 @@ void testDomainStatusMatchesClusterResourceStatus() {
|
363 | 366 |
|
364 | 367 | //verify the introspector pod is created and runs
|
365 | 368 | String introspectPodNameBase2 = getIntrospectJobName(domainUid);
|
366 |
| - checkPodExists(introspectPodNameBase2, domainUid, domainNamespace); |
| 369 | + ConditionFactory customConditionFactory = createCustomConditionFactory(0, 1, 5); |
| 370 | + checkPodExists(customConditionFactory, introspectPodNameBase2, domainUid, domainNamespace); |
367 | 371 | checkPodDoesNotExist(introspectPodNameBase2, domainUid, domainNamespace);
|
368 | 372 |
|
369 | 373 | // check managed server pods from cluster-1 are shutdown
|
|
0 commit comments