Skip to content

Commit 32e48b9

Browse files
committed
add missing class ITOperator
1 parent be5382d commit 32e48b9

File tree

1 file changed

+9
-65
lines changed

1 file changed

+9
-65
lines changed

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

Lines changed: 9 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,10 @@ public class ITOperator extends BaseTest {
5757
private static boolean QUICKTEST;
5858
private static boolean SMOKETEST;
5959
private static boolean JENKINS;
60-
private static boolean INGRESSPERDOMAIN = true;
61-
private static boolean VOYAGER;
62-
private static String LB_TYPE;
63-
60+
6461
// Set QUICKTEST env var to true to run a small subset of tests.
6562
// Set SMOKETEST env var to true to run an even smaller subset
6663
// of tests, plus leave domain1 up and running when the test completes.
67-
// set INGRESSPERDOMAIN to false to create LB's ingress by kubectl yaml file
68-
// set LB_TYPE to "VOYAGER" to use it as loadBalancer
6964
static {
7065
QUICKTEST =
7166
System.getenv("QUICKTEST") != null && System.getenv("QUICKTEST").equalsIgnoreCase("true");
@@ -78,8 +73,6 @@ public class ITOperator extends BaseTest {
7873
if (System.getenv("INGRESSPERDOMAIN") != null) {
7974
INGRESSPERDOMAIN = new Boolean(System.getenv("INGRESSPERDOMAIN")).booleanValue();
8075
}
81-
VOYAGER =
82-
System.getenv("LB_TYPE") != null && System.getenv("LB_TYPE").equalsIgnoreCase("VOYAGER");
8376
}
8477

8578
/**
@@ -154,13 +147,7 @@ public void testDomainOnPVUsingWLST() throws Exception {
154147
Domain domain = null;
155148
boolean testCompletedSuccessfully = false;
156149
try {
157-
if (VOYAGER) {
158-
Map<String, Object> wlstDomainMap = TestUtils.loadYaml(domainonpvwlstFile);
159-
TestUtils.domainMapUpdateWithLbInfor(wlstDomainMap, "VOYAGER", new Integer("30305"));
160-
domain = TestUtils.createDomain(wlstDomainMap);
161-
} else {
162-
domain = TestUtils.createDomain(domainonpvwlstFile);
163-
}
150+
domain = TestUtils.createDomain(domainonpvwlstFile);
164151
domain.verifyDomainCreated();
165152
testBasicUseCases(domain);
166153
testAdvancedUseCasesForADomain(operator1, domain);
@@ -200,13 +187,7 @@ public void testDomainOnPVUsingWDT() throws Exception {
200187
boolean testCompletedSuccessfully = false;
201188
try {
202189
// create domain
203-
if (VOYAGER) {
204-
Map<String, Object> wdtDomainMap = TestUtils.loadYaml(domainonpvwdtFile);
205-
TestUtils.domainMapUpdateWithLbInfor(wdtDomainMap, "VOYAGER", new Integer("30306"));
206-
domain = TestUtils.createDomain(wdtDomainMap);
207-
} else {
208-
domain = TestUtils.createDomain(domainonpvwdtFile);
209-
}
190+
domain = TestUtils.createDomain(domainonpvwdtFile);
210191
domain.verifyDomainCreated();
211192
testBasicUseCases(domain);
212193
testWLDFScaling(operator2, domain);
@@ -256,15 +237,7 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
256237
wlstDomainMap.put("domainUID", "domain1onpvwlst");
257238
wlstDomainMap.put("adminNodePort", new Integer("30702"));
258239
wlstDomainMap.put("t3ChannelPort", new Integer("30031"));
259-
if (VOYAGER) {
260-
TestUtils.domainMapUpdateWithLbInfor(wlstDomainMap, "VOYAGER", new Integer("30307"));
261-
}
262-
if (!INGRESSPERDOMAIN) {
263-
wlstDomainMap.put("ingressPerDomain", new Boolean("false"));
264-
logger.info(
265-
"domain1onpvwlst ingressPerDomain is set to: "
266-
+ ((Boolean) wlstDomainMap.get("ingressPerDomain")).booleanValue());
267-
}
240+
wlstDomainMap.put("voyagerWebPort", new Integer("30307"));
268241
domain1 = TestUtils.createDomain(wlstDomainMap);
269242
domain1.verifyDomainCreated();
270243
testBasicUseCases(domain1);
@@ -280,15 +253,7 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
280253
wdtDomainMap.put("adminNodePort", new Integer("30703"));
281254
wdtDomainMap.put("t3ChannelPort", new Integer("30041"));
282255
// wdtDomainMap.put("clusterType", "Configured");
283-
if (VOYAGER) {
284-
TestUtils.domainMapUpdateWithLbInfor(wdtDomainMap, "VOYAGER", new Integer("30308"));
285-
}
286-
if (!INGRESSPERDOMAIN) {
287-
wdtDomainMap.put("ingressPerDomain", new Boolean("false"));
288-
logger.info(
289-
"domain2onpvwdt ingressPerDomain is set to: "
290-
+ ((Boolean) wdtDomainMap.get("ingressPerDomain")).booleanValue());
291-
}
256+
wdtDomainMap.put("voyagerWebPort", new Integer("30308"));
292257
domain2 = TestUtils.createDomain(wdtDomainMap);
293258
domain2.verifyDomainCreated();
294259
testBasicUseCases(domain2);
@@ -347,15 +312,8 @@ public void testCreateDomainWithStartPolicyAdminOnly() throws Exception {
347312
Domain domain = null;
348313
boolean testCompletedSuccessfully = false;
349314
try {
350-
if (VOYAGER) {
351-
Map<String, Object> domainMap = TestUtils.loadYaml(domainadminonlyFile);
352-
TestUtils.domainMapUpdateWithLbInfor(domainMap, "VOYAGER", new Integer("30309"));
353-
domain = TestUtils.createDomain(domainMap);
354-
} else {
355-
domain = TestUtils.createDomain(domainadminonlyFile);
356-
}
315+
domain = TestUtils.createDomain(domainadminonlyFile);
357316
domain.verifyDomainCreated();
358-
359317
} finally {
360318
if (domain != null) {
361319
// create domain on existing dir
@@ -387,13 +345,7 @@ public void testCreateDomainPVReclaimPolicyRecycle() throws Exception {
387345
Domain domain = null;
388346

389347
try {
390-
if (VOYAGER) {
391-
Map<String, Object> domainMap = TestUtils.loadYaml(domainrecyclepolicyFile);
392-
TestUtils.domainMapUpdateWithLbInfor(domainMap, "VOYAGER", new Integer("30310"));
393-
domain = TestUtils.createDomain(domainMap);
394-
} else {
395-
domain = TestUtils.createDomain(domainrecyclepolicyFile);
396-
}
348+
domain = TestUtils.createDomain(domainrecyclepolicyFile);
397349
domain.verifyDomainCreated();
398350
} finally {
399351
if (domain != null) domain.shutdown();
@@ -426,13 +378,7 @@ public void testCreateDomainWithDefaultValuesInSampleInputs() throws Exception {
426378
Domain domain = null;
427379
boolean testCompletedSuccessfully = false;
428380
try {
429-
if (VOYAGER) {
430-
Map<String, Object> domainMap = TestUtils.loadYaml(domainsampledefaultsFile);
431-
TestUtils.domainMapUpdateWithLbInfor(domainMap, "VOYAGER", new Integer("30311"));
432-
domain = TestUtils.createDomain(domainMap);
433-
} else {
434-
domain = TestUtils.createDomain(domainsampledefaultsFile);
435-
}
381+
domain = TestUtils.createDomain(domainsampledefaultsFile);
436382
domain.verifyDomainCreated();
437383
testBasicUseCases(domain);
438384
// testAdvancedUseCasesForADomain(operator1, domain10);
@@ -477,9 +423,7 @@ public void testAutoAndCustomSitConfigOverrides() throws Exception {
477423
domainMap.put("domainUID", "customsitdomain");
478424
domainMap.put("adminNodePort", new Integer("30704"));
479425
domainMap.put("t3ChannelPort", new Integer("30051"));
480-
if (VOYAGER) {
481-
TestUtils.domainMapUpdateWithLbInfor(domainMap, "VOYAGER", new Integer("30312"));
482-
}
426+
domainMap.put("voyagerWebPort", new Integer("30312"));
483427
// use NFS for this domain on Jenkins, defaultis HOST_PATH
484428
if (System.getenv("JENKINS") != null && System.getenv("JENKINS").equalsIgnoreCase("true")) {
485429
domainMap.put("weblogicDomainStorageType", "NFS");

0 commit comments

Comments
 (0)