Skip to content

Commit ed7704d

Browse files
committed
Updated to isolate #testDeleteTwoDomains from #testDeleteOneDomains.
1 parent 456068c commit ed7704d

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class ITOperator extends BaseTest {
4242
private static String domain8YamlFile = "domain8.yaml";
4343
private static final String domain1ForDelValueYamlFile = "domain_del_1.yaml";
4444
private static final String domain2ForDelValueYamlFile = "domain_del_2.yaml";
45+
private static final String domain3ForDelValueYamlFile = "domain_del_3.yaml";
4546

4647
// property file used to configure constants for integration tests
4748
private static String appPropsFile = "OperatorIT.properties";
@@ -318,18 +319,19 @@ public void testDeleteTwoDomains() throws Exception {
318319
logger.info("About to create operator");
319320
operatorForDel = TestUtils.createOperator(opForDelYamlFile);
320321
}
321-
final Domain domain1 = TestUtils.createDomain(domain1ForDelValueYamlFile);
322-
final Domain domain2 = TestUtils.createDomain(domain2ForDelValueYamlFile);
322+
final Domain domainDel1 = TestUtils.createDomain(domain2ForDelValueYamlFile);
323+
final Domain domainDel2 = TestUtils.createDomain(domain3ForDelValueYamlFile);
323324

324-
verifyBeforeDeletion(domain1);
325-
verifyBeforeDeletion(domain2);
325+
verifyBeforeDeletion(domainDel1);
326+
verifyBeforeDeletion(domainDel2);
326327

327-
final String domainUidsToBeDeleted = domain1.getDomainUid() + "," + domain2.getDomainUid();
328+
final String domainUidsToBeDeleted =
329+
domainDel1.getDomainUid() + "," + domainDel2.getDomainUid();
328330
logger.info("About to delete domains: " + domainUidsToBeDeleted);
329331
TestUtils.deleteWeblogicDomainResources(domainUidsToBeDeleted);
330332

331-
verifyAfterDeletion(domain1);
332-
verifyAfterDeletion(domain2);
333+
verifyAfterDeletion(domainDel1);
334+
verifyAfterDeletion(domainDel2);
333335
}
334336

335337
private void verifyBeforeDeletion(Domain domain) throws Exception {

integration-tests/src/test/resources/operator_del.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ serviceAccount: weblogic-operator
77
namespace: weblogic-operator-4-del
88
domainNamespaces: [ "domain-ns-4-del-1", "domain-ns-4-del-2" ]
99
externalRestEnabled: true
10-
externalRestHttpsPort: 33001
10+
externalRestHttpsPort: 32002
1111
javaLoggingLevel: FINE

kubernetes/delete-weblogic-domain-resources.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,5 +304,4 @@ if [ ! -x "$(command -v kubectl)" ]; then
304304
fi
305305

306306
deleteDomains "${domains}" "${maxwaitsecs:-$default_maxwaitsecs}"
307-
# getDomainResources "${domains}" "/tmp/$(basename $0).tmp.$$"
308307

0 commit comments

Comments
 (0)