Skip to content

Commit a1974e3

Browse files
authored
increase RCU pods timeout and backport PR to main (#3884)
1 parent 1304d20 commit a1974e3

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2022, Oracle and/or its affiliates.
1+
// Copyright (c) 2022, 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;
@@ -547,21 +547,21 @@ private void verifyDomain2NotChanged(String domain2Namespace) {
547547
logger.info("Checking that domain2 admin server pod state was not changed");
548548
assertThat(podStateNotChanged(domain2AdminServerPodName, domain2Uid, domain2Namespace,
549549
domainAdminPodOriginalTimestamps.get(1)))
550-
.as("Test state of pod {0} was not changed in namespace {1}",
551-
domain2AdminServerPodName, domain2Namespace)
552-
.withFailMessage("State of pod {0} was changed in namespace {1}",
553-
domain2AdminServerPodName, domain2Namespace)
550+
.as(String.format("Test state of pod %s was not changed in namespace %s",
551+
domain2AdminServerPodName, domain2Namespace))
552+
.withFailMessage(String.format("State of pod %s was changed in namespace %s",
553+
domain2AdminServerPodName, domain2Namespace))
554554
.isTrue();
555555

556556
logger.info("Checking that domain2 managed server pods states were not changed");
557557
for (int i = 1; i <= replicaCount; i++) {
558558
String managedServerPodName = domain2Uid + "-" + MANAGED_SERVER_NAME_BASE + i;
559559
assertThat(podStateNotChanged(managedServerPodName, domain2Uid, domain2Namespace,
560560
domain2ManagedServerPodOriginalTimestampList.get(i - 1)))
561-
.as("Test state of pod {0} was not changed in namespace {1}",
562-
managedServerPodName, domain2Namespace)
563-
.withFailMessage("State of pod {0} was changed in namespace {1}",
564-
managedServerPodName, domain2Namespace)
561+
.as(String.format("Test state of pod %s was not changed in namespace %s",
562+
managedServerPodName, domain2Namespace))
563+
.withFailMessage(String.format("State of pod %s was changed in namespace %s",
564+
managedServerPodName, domain2Namespace))
565565
.isTrue();
566566
}
567567
}
@@ -736,21 +736,21 @@ private void verifyDomain1NotChanged() {
736736
logger.info("Checking that domain1 admin server pod state was not changed");
737737
assertThat(podStateNotChanged(domain1AdminServerPodName, domain1Uid, twoDomainsNamespace,
738738
domainAdminPodOriginalTimestamps.get(0)))
739-
.as("Test state of pod {0} was not changed in namespace {1}",
740-
domain1AdminServerPodName, twoDomainsNamespace)
741-
.withFailMessage("State of pod {0} was changed in namespace {1}",
742-
domain1AdminServerPodName, twoDomainsNamespace)
739+
.as(String.format("Test state of pod %s was not changed in namespace %s",
740+
domain1AdminServerPodName, twoDomainsNamespace))
741+
.withFailMessage(String.format("State of pod %s was changed in namespace %s",
742+
domain1AdminServerPodName, twoDomainsNamespace))
743743
.isTrue();
744744

745745
logger.info("Checking that domain1 managed server pods states were not changed");
746746
for (int i = 1; i <= replicaCount; i++) {
747747
String managedServerPodName = domain1Uid + "-" + MANAGED_SERVER_NAME_BASE + i;
748748
assertThat(podStateNotChanged(managedServerPodName, domain1Uid, twoDomainsNamespace,
749749
domain1ManagedServerPodOriginalTimestampList.get(i - 1)))
750-
.as("Test state of pod {0} was not changed in namespace {1}",
751-
managedServerPodName, twoDomainsNamespace)
752-
.withFailMessage("State of pod {0} was changed in namespace {1}",
753-
managedServerPodName, twoDomainsNamespace)
750+
.as(String.format("Test state of pod %s was not changed in namespace %s",
751+
managedServerPodName, twoDomainsNamespace))
752+
.withFailMessage(String.format("State of pod %s was changed in namespace %s",
753+
managedServerPodName, twoDomainsNamespace))
754754
.isTrue();
755755
}
756756
}

integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/DbUtils.java

Lines changed: 3 additions & 1 deletion
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.utils;
@@ -88,6 +88,7 @@
8888
import static oracle.weblogic.kubernetes.utils.CommonTestUtils.addSccToDBSvcAccount;
8989
import static oracle.weblogic.kubernetes.utils.CommonTestUtils.checkServiceExists;
9090
import static oracle.weblogic.kubernetes.utils.CommonTestUtils.testUntil;
91+
import static oracle.weblogic.kubernetes.utils.CommonTestUtils.withLongRetryPolicy;
9192
import static oracle.weblogic.kubernetes.utils.FileUtils.copyFileToPod;
9293
import static oracle.weblogic.kubernetes.utils.FileUtils.replaceStringInFile;
9394
import static oracle.weblogic.kubernetes.utils.ImageUtils.createBaseRepoSecret;
@@ -389,6 +390,7 @@ private static V1Pod createRcuPod(String fmwBaseImageName, String dbUrl, String
389390
V1Pod pvPod = Kubernetes.createPod(dbNamespace, podBody);
390391

391392
testUntil(
393+
withLongRetryPolicy,
392394
podReady(RCUPODNAME, null, dbNamespace),
393395
logger,
394396
"{0} to be ready in namespace {1}",

0 commit comments

Comments
 (0)