Skip to content

Commit fe3040a

Browse files
committed
fix
1 parent 8e2bc89 commit fe3040a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/ITMultipleClusters.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class ITMultipleClusters extends BaseTest {
3838
private static Operator operatorForRESTCertChain;
3939

4040
private static String TWO_CONFIGURED_CLUSTER_SCRIPT = "create-domain-two-configured-cluster.py";
41-
private static String domainUid = "";
41+
private static final String DOMAINUID = "mixedclusterdomain";
4242

4343
/**
4444
* This method gets called only once before any of the test methods are executed. It does the
@@ -97,6 +97,7 @@ public void testCreateDomainTwoConfiguredCluster() throws Exception {
9797
boolean testCompletedSuccessfully = false;
9898
try {
9999
Map<String, Object> domainMap = TestUtils.loadYaml(DOMAINONPV_WLST_YAML);
100+
domainMap.put("domainUID", DOMAINUID);
100101
domainMap.put("domainUID", "customsitdomain");
101102
domainMap.put(
102103
"createDomainPyScript",
@@ -117,15 +118,15 @@ public void testCreateDomainTwoConfiguredCluster() throws Exception {
117118
domain = TestUtils.createDomain(domainMap);
118119
domain.verifyDomainCreated();
119120
K8sTestUtils testUtil = new K8sTestUtils();
120-
String domain1LabelSelector = String.format("weblogic.domainUID in (%s)", domainUid);
121+
String domain1LabelSelector = String.format("weblogic.domainUID in (%s)", DOMAINUID);
121122
String namespace = domain.getDomainNS();
122123
String pods[] = {
123-
domainUid + "-" + domain.getAdminServerName(),
124-
domainUid + "-managed-server",
125-
domainUid + "-managed-server1",
126-
domainUid + "-managed-server2",
127-
domainUid + "-new-managed-server1",
128-
domainUid + "-new-managed-server2",
124+
DOMAINUID + "-" + domain.getAdminServerName(),
125+
DOMAINUID + "-managed-server",
126+
DOMAINUID + "-managed-server1",
127+
DOMAINUID + "-managed-server2",
128+
DOMAINUID + "-new-managed-server1",
129+
DOMAINUID + "-new-managed-server2",
129130
};
130131
for (String pod : pods) {
131132
assertTrue(

0 commit comments

Comments
 (0)