Skip to content

Commit cdb4877

Browse files
authored
fix log info (#3866)
1 parent f006385 commit cdb4877

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
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;
@@ -553,21 +553,21 @@ private void verifyDomain2NotChanged(String domain2Namespace) {
553553
logger.info("Checking that domain2 admin server pod state was not changed");
554554
assertThat(podStateNotChanged(domain2AdminServerPodName, domain2Uid, domain2Namespace,
555555
domainAdminPodOriginalTimestamps.get(1)))
556-
.as("Test state of pod {0} was not changed in namespace {1}",
557-
domain2AdminServerPodName, domain2Namespace)
558-
.withFailMessage("State of pod {0} was changed in namespace {1}",
559-
domain2AdminServerPodName, domain2Namespace)
556+
.as(String.format("Test state of pod %s was not changed in namespace %s",
557+
domain2AdminServerPodName, domain2Namespace))
558+
.withFailMessage(String.format("State of pod %s was changed in namespace %s",
559+
domain2AdminServerPodName, domain2Namespace))
560560
.isTrue();
561561

562562
logger.info("Checking that domain2 managed server pods states were not changed");
563563
for (int i = 1; i <= replicaCount; i++) {
564564
String managedServerPodName = domain2Uid + "-" + MANAGED_SERVER_NAME_BASE + i;
565565
assertThat(podStateNotChanged(managedServerPodName, domain2Uid, domain2Namespace,
566566
domain2ManagedServerPodOriginalTimestampList.get(i - 1)))
567-
.as("Test state of pod {0} was not changed in namespace {1}",
568-
managedServerPodName, domain2Namespace)
569-
.withFailMessage("State of pod {0} was changed in namespace {1}",
570-
managedServerPodName, domain2Namespace)
567+
.as(String.format("Test state of pod %s was not changed in namespace %s",
568+
managedServerPodName, domain2Namespace))
569+
.withFailMessage(String.format("State of pod %s was changed in namespace %s",
570+
managedServerPodName, domain2Namespace))
571571
.isTrue();
572572
}
573573
}
@@ -732,21 +732,21 @@ private void verifyDomain1NotChanged() {
732732
logger.info("Checking that domain1 admin server pod state was not changed");
733733
assertThat(podStateNotChanged(domain1AdminServerPodName, domain1Uid, twoDomainsNamespace,
734734
domainAdminPodOriginalTimestamps.get(0)))
735-
.as("Test state of pod {0} was not changed in namespace {1}",
736-
domain1AdminServerPodName, twoDomainsNamespace)
737-
.withFailMessage("State of pod {0} was changed in namespace {1}",
738-
domain1AdminServerPodName, twoDomainsNamespace)
735+
.as(String.format("Test state of pod %s was not changed in namespace %s",
736+
domain1AdminServerPodName, twoDomainsNamespace))
737+
.withFailMessage(String.format("State of pod %s was changed in namespace %s",
738+
domain1AdminServerPodName, twoDomainsNamespace))
739739
.isTrue();
740740

741741
logger.info("Checking that domain1 managed server pods states were not changed");
742742
for (int i = 1; i <= replicaCount; i++) {
743743
String managedServerPodName = domain1Uid + "-" + MANAGED_SERVER_NAME_BASE + i;
744744
assertThat(podStateNotChanged(managedServerPodName, domain1Uid, twoDomainsNamespace,
745745
domain1ManagedServerPodOriginalTimestampList.get(i - 1)))
746-
.as("Test state of pod {0} was not changed in namespace {1}",
747-
managedServerPodName, twoDomainsNamespace)
748-
.withFailMessage("State of pod {0} was changed in namespace {1}",
749-
managedServerPodName, twoDomainsNamespace)
746+
.as(String.format("Test state of pod %s was not changed in namespace %s",
747+
managedServerPodName, twoDomainsNamespace))
748+
.withFailMessage(String.format("State of pod %s was changed in namespace %s",
749+
managedServerPodName, twoDomainsNamespace))
750750
.isTrue();
751751
}
752752
}

0 commit comments

Comments
 (0)