|
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; |
@@ -553,21 +553,21 @@ private void verifyDomain2NotChanged(String domain2Namespace) { |
553 | 553 | logger.info("Checking that domain2 admin server pod state was not changed"); |
554 | 554 | assertThat(podStateNotChanged(domain2AdminServerPodName, domain2Uid, domain2Namespace, |
555 | 555 | 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)) |
560 | 560 | .isTrue(); |
561 | 561 |
|
562 | 562 | logger.info("Checking that domain2 managed server pods states were not changed"); |
563 | 563 | for (int i = 1; i <= replicaCount; i++) { |
564 | 564 | String managedServerPodName = domain2Uid + "-" + MANAGED_SERVER_NAME_BASE + i; |
565 | 565 | assertThat(podStateNotChanged(managedServerPodName, domain2Uid, domain2Namespace, |
566 | 566 | 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)) |
571 | 571 | .isTrue(); |
572 | 572 | } |
573 | 573 | } |
@@ -732,21 +732,21 @@ private void verifyDomain1NotChanged() { |
732 | 732 | logger.info("Checking that domain1 admin server pod state was not changed"); |
733 | 733 | assertThat(podStateNotChanged(domain1AdminServerPodName, domain1Uid, twoDomainsNamespace, |
734 | 734 | 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)) |
739 | 739 | .isTrue(); |
740 | 740 |
|
741 | 741 | logger.info("Checking that domain1 managed server pods states were not changed"); |
742 | 742 | for (int i = 1; i <= replicaCount; i++) { |
743 | 743 | String managedServerPodName = domain1Uid + "-" + MANAGED_SERVER_NAME_BASE + i; |
744 | 744 | assertThat(podStateNotChanged(managedServerPodName, domain1Uid, twoDomainsNamespace, |
745 | 745 | 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)) |
750 | 750 | .isTrue(); |
751 | 751 | } |
752 | 752 | } |
|
0 commit comments