Skip to content

Commit 3cf1547

Browse files
authored
Fix for intermittent failure to start domain in ItPodsShutdown class (#4053)
* Fix for intermittent failure to start domain in ItPodsShutdown class
1 parent fb81a0d commit 3cf1547

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItPodsShutdownOption.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020, 2022, Oracle and/or its affiliates.
1+
// Copyright (c) 2020, 2023, Oracle and/or its affiliates.
22
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
package oracle.weblogic.kubernetes;
@@ -55,6 +55,7 @@
5555
import static oracle.weblogic.kubernetes.utils.ClusterUtils.createClusterResource;
5656
import static oracle.weblogic.kubernetes.utils.CommonTestUtils.checkPodReadyAndServiceExists;
5757
import static oracle.weblogic.kubernetes.utils.DomainUtils.createDomainAndVerify;
58+
import static oracle.weblogic.kubernetes.utils.DomainUtils.shutdownDomainAndVerify;
5859
import static oracle.weblogic.kubernetes.utils.ImageUtils.createTestRepoSecret;
5960
import static oracle.weblogic.kubernetes.utils.LoggingUtil.checkPodLogContainsString;
6061
import static oracle.weblogic.kubernetes.utils.LoggingUtil.doesPodLogContainString;
@@ -168,10 +169,8 @@ public static void initAll(@Namespaces(2) List<String> namespaces) {
168169
@AfterEach
169170
public void afterEach() {
170171
logger.info("Deleting the domain resource");
172+
shutdownDomainAndVerify(domainNamespace, domainUid, replicaCount);
171173
TestActions.deleteDomainCustomResource(domainUid, domainNamespace);
172-
checkPodDoesNotExist(adminServerPodName, domainUid, domainNamespace);
173-
checkPodDoesNotExist(managedServerPodNamePrefix + 1, domainUid, domainNamespace);
174-
checkPodDoesNotExist(managedServerPodNamePrefix + 2, domainUid, domainNamespace);
175174
checkPodDoesNotExist(indManagedServerPodName1, domainUid, domainNamespace);
176175
checkPodDoesNotExist(indManagedServerPodName2, domainUid, domainNamespace);
177176
if (cluster != null) {

0 commit comments

Comments
 (0)