|
1 |
| -// Copyright (c) 2022, Oracle and/or its affiliates. |
| 1 | +// Copyright (c) 2022, 2023, Oracle and/or its affiliates. |
2 | 2 | // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
|
3 | 3 |
|
4 | 4 | package oracle.weblogic.kubernetes;
|
@@ -547,21 +547,21 @@ private void verifyDomain2NotChanged(String domain2Namespace) {
|
547 | 547 | logger.info("Checking that domain2 admin server pod state was not changed");
|
548 | 548 | assertThat(podStateNotChanged(domain2AdminServerPodName, domain2Uid, domain2Namespace,
|
549 | 549 | 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)) |
554 | 554 | .isTrue();
|
555 | 555 |
|
556 | 556 | logger.info("Checking that domain2 managed server pods states were not changed");
|
557 | 557 | for (int i = 1; i <= replicaCount; i++) {
|
558 | 558 | String managedServerPodName = domain2Uid + "-" + MANAGED_SERVER_NAME_BASE + i;
|
559 | 559 | assertThat(podStateNotChanged(managedServerPodName, domain2Uid, domain2Namespace,
|
560 | 560 | 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)) |
565 | 565 | .isTrue();
|
566 | 566 | }
|
567 | 567 | }
|
@@ -736,21 +736,21 @@ private void verifyDomain1NotChanged() {
|
736 | 736 | logger.info("Checking that domain1 admin server pod state was not changed");
|
737 | 737 | assertThat(podStateNotChanged(domain1AdminServerPodName, domain1Uid, twoDomainsNamespace,
|
738 | 738 | 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)) |
743 | 743 | .isTrue();
|
744 | 744 |
|
745 | 745 | logger.info("Checking that domain1 managed server pods states were not changed");
|
746 | 746 | for (int i = 1; i <= replicaCount; i++) {
|
747 | 747 | String managedServerPodName = domain1Uid + "-" + MANAGED_SERVER_NAME_BASE + i;
|
748 | 748 | assertThat(podStateNotChanged(managedServerPodName, domain1Uid, twoDomainsNamespace,
|
749 | 749 | 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)) |
754 | 754 | .isTrue();
|
755 | 755 | }
|
756 | 756 | }
|
|
0 commit comments