@@ -57,15 +57,10 @@ public class ITOperator extends BaseTest {
57
57
private static boolean QUICKTEST ;
58
58
private static boolean SMOKETEST ;
59
59
private static boolean JENKINS ;
60
- private static boolean INGRESSPERDOMAIN = true ;
61
- private static boolean VOYAGER ;
62
- private static String LB_TYPE ;
63
-
60
+
64
61
// Set QUICKTEST env var to true to run a small subset of tests.
65
62
// Set SMOKETEST env var to true to run an even smaller subset
66
63
// 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
69
64
static {
70
65
QUICKTEST =
71
66
System .getenv ("QUICKTEST" ) != null && System .getenv ("QUICKTEST" ).equalsIgnoreCase ("true" );
@@ -78,8 +73,6 @@ public class ITOperator extends BaseTest {
78
73
if (System .getenv ("INGRESSPERDOMAIN" ) != null ) {
79
74
INGRESSPERDOMAIN = new Boolean (System .getenv ("INGRESSPERDOMAIN" )).booleanValue ();
80
75
}
81
- VOYAGER =
82
- System .getenv ("LB_TYPE" ) != null && System .getenv ("LB_TYPE" ).equalsIgnoreCase ("VOYAGER" );
83
76
}
84
77
85
78
/**
@@ -154,13 +147,7 @@ public void testDomainOnPVUsingWLST() throws Exception {
154
147
Domain domain = null ;
155
148
boolean testCompletedSuccessfully = false ;
156
149
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 );
164
151
domain .verifyDomainCreated ();
165
152
testBasicUseCases (domain );
166
153
testAdvancedUseCasesForADomain (operator1 , domain );
@@ -200,13 +187,7 @@ public void testDomainOnPVUsingWDT() throws Exception {
200
187
boolean testCompletedSuccessfully = false ;
201
188
try {
202
189
// 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 );
210
191
domain .verifyDomainCreated ();
211
192
testBasicUseCases (domain );
212
193
testWLDFScaling (operator2 , domain );
@@ -256,15 +237,7 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
256
237
wlstDomainMap .put ("domainUID" , "domain1onpvwlst" );
257
238
wlstDomainMap .put ("adminNodePort" , new Integer ("30702" ));
258
239
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" ));
268
241
domain1 = TestUtils .createDomain (wlstDomainMap );
269
242
domain1 .verifyDomainCreated ();
270
243
testBasicUseCases (domain1 );
@@ -280,15 +253,7 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
280
253
wdtDomainMap .put ("adminNodePort" , new Integer ("30703" ));
281
254
wdtDomainMap .put ("t3ChannelPort" , new Integer ("30041" ));
282
255
// 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" ));
292
257
domain2 = TestUtils .createDomain (wdtDomainMap );
293
258
domain2 .verifyDomainCreated ();
294
259
testBasicUseCases (domain2 );
@@ -347,15 +312,8 @@ public void testCreateDomainWithStartPolicyAdminOnly() throws Exception {
347
312
Domain domain = null ;
348
313
boolean testCompletedSuccessfully = false ;
349
314
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 );
357
316
domain .verifyDomainCreated ();
358
-
359
317
} finally {
360
318
if (domain != null ) {
361
319
// create domain on existing dir
@@ -387,13 +345,7 @@ public void testCreateDomainPVReclaimPolicyRecycle() throws Exception {
387
345
Domain domain = null ;
388
346
389
347
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 );
397
349
domain .verifyDomainCreated ();
398
350
} finally {
399
351
if (domain != null ) domain .shutdown ();
@@ -426,13 +378,7 @@ public void testCreateDomainWithDefaultValuesInSampleInputs() throws Exception {
426
378
Domain domain = null ;
427
379
boolean testCompletedSuccessfully = false ;
428
380
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 );
436
382
domain .verifyDomainCreated ();
437
383
testBasicUseCases (domain );
438
384
// testAdvancedUseCasesForADomain(operator1, domain10);
@@ -477,9 +423,7 @@ public void testAutoAndCustomSitConfigOverrides() throws Exception {
477
423
domainMap .put ("domainUID" , "customsitdomain" );
478
424
domainMap .put ("adminNodePort" , new Integer ("30704" ));
479
425
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" ));
483
427
// use NFS for this domain on Jenkins, defaultis HOST_PATH
484
428
if (System .getenv ("JENKINS" ) != null && System .getenv ("JENKINS" ).equalsIgnoreCase ("true" )) {
485
429
domainMap .put ("weblogicDomainStorageType" , "NFS" );
0 commit comments