Skip to content

Commit f9c9135

Browse files
committed
kubectl create if domain created already
1 parent 697f36d commit f9c9135

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,11 @@ public void test5CreateConfiguredDomainInTest2NS() throws Exception {
159159
if (operator1 == null) {
160160
operator1 = TestUtils.createOperator(op1YamlFile);
161161
}
162-
// if (domain1 == null) {
163-
domain1 = TestUtils.createDomain(domain1YamlFile);
164-
// }
162+
if (domain1 == null) {
163+
domain1 = TestUtils.createDomain(domain1YamlFile);
164+
} else {
165+
domain1.create();
166+
}
165167
logger.info("Checking if operator2 is running, if not creating");
166168
if (operator2 == null) {
167169
operator2 = TestUtils.createOperator(op2YamlFile);
@@ -234,10 +236,10 @@ public void test9CreateDomainOnExistingDir() throws Exception {
234236
}
235237
if (domain1 == null) {
236238
domain1 = TestUtils.createDomain(domain1YamlFile);
239+
// create domain on existing dir
240+
// domain1.destroy();
237241
}
238242
logger.info("domain1 " + domain1);
239-
// create domain on existing dir
240-
// domain1.destroy();
241243
domain1.createDomainOnExistingDirectory();
242244
logger.info("SUCCESS - test9CreateDomainOnExistingDir");
243245
}

0 commit comments

Comments
 (0)