Skip to content

fix log info in ItTwoDomainsManagedByTwoOperators.java #3866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022, Oracle and/or its affiliates.
// Copyright (c) 2022, 2023, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

package oracle.weblogic.kubernetes;
Expand Down Expand Up @@ -553,21 +553,21 @@ private void verifyDomain2NotChanged(String domain2Namespace) {
logger.info("Checking that domain2 admin server pod state was not changed");
assertThat(podStateNotChanged(domain2AdminServerPodName, domain2Uid, domain2Namespace,
domainAdminPodOriginalTimestamps.get(1)))
.as("Test state of pod {0} was not changed in namespace {1}",
domain2AdminServerPodName, domain2Namespace)
.withFailMessage("State of pod {0} was changed in namespace {1}",
domain2AdminServerPodName, domain2Namespace)
.as(String.format("Test state of pod %s was not changed in namespace %s",
domain2AdminServerPodName, domain2Namespace))
.withFailMessage(String.format("State of pod %s was changed in namespace %s",
domain2AdminServerPodName, domain2Namespace))
.isTrue();

logger.info("Checking that domain2 managed server pods states were not changed");
for (int i = 1; i <= replicaCount; i++) {
String managedServerPodName = domain2Uid + "-" + MANAGED_SERVER_NAME_BASE + i;
assertThat(podStateNotChanged(managedServerPodName, domain2Uid, domain2Namespace,
domain2ManagedServerPodOriginalTimestampList.get(i - 1)))
.as("Test state of pod {0} was not changed in namespace {1}",
managedServerPodName, domain2Namespace)
.withFailMessage("State of pod {0} was changed in namespace {1}",
managedServerPodName, domain2Namespace)
.as(String.format("Test state of pod %s was not changed in namespace %s",
managedServerPodName, domain2Namespace))
.withFailMessage(String.format("State of pod %s was changed in namespace %s",
managedServerPodName, domain2Namespace))
.isTrue();
}
}
Expand Down Expand Up @@ -732,21 +732,21 @@ private void verifyDomain1NotChanged() {
logger.info("Checking that domain1 admin server pod state was not changed");
assertThat(podStateNotChanged(domain1AdminServerPodName, domain1Uid, twoDomainsNamespace,
domainAdminPodOriginalTimestamps.get(0)))
.as("Test state of pod {0} was not changed in namespace {1}",
domain1AdminServerPodName, twoDomainsNamespace)
.withFailMessage("State of pod {0} was changed in namespace {1}",
domain1AdminServerPodName, twoDomainsNamespace)
.as(String.format("Test state of pod %s was not changed in namespace %s",
domain1AdminServerPodName, twoDomainsNamespace))
.withFailMessage(String.format("State of pod %s was changed in namespace %s",
domain1AdminServerPodName, twoDomainsNamespace))
.isTrue();

logger.info("Checking that domain1 managed server pods states were not changed");
for (int i = 1; i <= replicaCount; i++) {
String managedServerPodName = domain1Uid + "-" + MANAGED_SERVER_NAME_BASE + i;
assertThat(podStateNotChanged(managedServerPodName, domain1Uid, twoDomainsNamespace,
domain1ManagedServerPodOriginalTimestampList.get(i - 1)))
.as("Test state of pod {0} was not changed in namespace {1}",
managedServerPodName, twoDomainsNamespace)
.withFailMessage("State of pod {0} was changed in namespace {1}",
managedServerPodName, twoDomainsNamespace)
.as(String.format("Test state of pod %s was not changed in namespace %s",
managedServerPodName, twoDomainsNamespace))
.withFailMessage(String.format("State of pod %s was changed in namespace %s",
managedServerPodName, twoDomainsNamespace))
.isTrue();
}
}
Expand Down