31
31
public class ITOperator extends BaseTest {
32
32
33
33
// property file used to customize operator properties for operator inputs yaml
34
- private static String opManagingdefaultAndtest1NSYamlFile =
35
- "OperatorManagingdefaultAndtest1NS.yaml" ;
36
- private static String opManagingtest2NSYamlFile = "OperatorManagingtest2NS.yaml" ;
37
- private static final String opForBackwardCompatibility = "OperatorForBackwardCompatibility.yaml" ;
38
- private static final String opForRESTCertChain = "operator_chain.yaml" ;
34
+ private static String operator1File = "operator1.yaml" ;
35
+ private static String operator2File = "operator2.yaml" ;
36
+ private static final String operator_bcFile = "operator_bc.yaml" ;
37
+ private static final String operator_chainFile = "operator_chain.yaml" ;
39
38
40
39
// file used to customize domain properties for domain, PV and LB inputs yaml
41
- private static String domainOnPVUsingWLSTYamlFile = "DomainOnPVUsingWLST.yaml" ;
42
- private static String domainOnPVUsingWDTYamlFile = "DomainOnPVUsingWDT.yaml" ;
43
- private static String domainWithServerStartPolicyAsAdminOnlyYamlFile =
44
- "DomainWithServerStartPolicyAsAdminOnly.yaml" ;
45
- private static String domainWithStorageReclaimPolicyRecycleYamlFile =
46
- "DomainWithStorageReclaimPolicyRecycle.yaml" ;
47
- private static String domainWithDefaultValuesForSamplesYamlFile =
48
- "DomainWithDefaultValuesForSamples.yaml" ;
40
+ private static String domainonpvwlstFile = "domainonpvwlst.yaml" ;
41
+ private static String domainonpvwdtFile = "domainonpvwdt.yaml" ;
42
+ private static String domainadminonlyFile = "domainadminonly.yaml" ;
43
+ private static String domainrecyclepolicyFile = "domainrecyclepolicy.yaml" ;
44
+ private static String domainsampledefaultsFile = "domainsampledefaults.yaml" ;
49
45
50
46
// property file used to configure constants for integration tests
51
47
private static String appPropsFile = "OperatorIT.properties" ;
@@ -140,12 +136,12 @@ public void testDomainOnPVUsingWLST() throws Exception {
140
136
logger .info ("Creating Operator & waiting for the script to complete execution" );
141
137
// create operator1
142
138
if (operator1 == null ) {
143
- operator1 = TestUtils .createOperator (opManagingdefaultAndtest1NSYamlFile );
139
+ operator1 = TestUtils .createOperator (operator1File );
144
140
}
145
141
Domain domain = null ;
146
142
boolean testCompletedSuccessfully = false ;
147
143
try {
148
- domain = TestUtils .createDomain (domainOnPVUsingWLSTYamlFile );
144
+ domain = TestUtils .createDomain (domainonpvwlstFile );
149
145
domain .verifyDomainCreated ();
150
146
testBasicUseCases (domain );
151
147
testAdvancedUseCasesForADomain (operator1 , domain );
@@ -179,13 +175,13 @@ public void testDomainOnPVUsingWDT() throws Exception {
179
175
logger .info ("Creating Domain using DomainOnPVUsingWDT & verifing the domain creation" );
180
176
181
177
if (operator2 == null ) {
182
- operator2 = TestUtils .createOperator (opManagingtest2NSYamlFile );
178
+ operator2 = TestUtils .createOperator (operator2File );
183
179
}
184
180
Domain domain = null ;
185
181
boolean testCompletedSuccessfully = false ;
186
182
try {
187
183
// create domain
188
- domain = TestUtils .createDomain (domainOnPVUsingWDTYamlFile );
184
+ domain = TestUtils .createDomain (domainonpvwdtFile );
189
185
domain .verifyDomainCreated ();
190
186
testBasicUseCases (domain );
191
187
testWLDFScaling (operator2 , domain );
@@ -223,14 +219,14 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
223
219
224
220
logger .info ("Checking if operator1 and domain1 are running, if not creating" );
225
221
if (operator1 == null ) {
226
- operator1 = TestUtils .createOperator (opManagingdefaultAndtest1NSYamlFile );
222
+ operator1 = TestUtils .createOperator (operator1File );
227
223
}
228
224
229
225
Domain domain1 = null , domain2 = null ;
230
226
boolean testCompletedSuccessfully = false ;
231
227
try {
232
228
// load input yaml to map and add configOverrides
233
- Map <String , Object > wlstDomainMap = TestUtils .loadYaml (domainOnPVUsingWLSTYamlFile );
229
+ Map <String , Object > wlstDomainMap = TestUtils .loadYaml (domainonpvwlstFile );
234
230
wlstDomainMap .put ("domainUID" , "domain1onpvwlst" );
235
231
wlstDomainMap .put ("adminNodePort" , new Integer ("30702" ));
236
232
wlstDomainMap .put ("t3ChannelPort" , new Integer ("30031" ));
@@ -239,12 +235,12 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
239
235
testBasicUseCases (domain1 );
240
236
logger .info ("Checking if operator2 is running, if not creating" );
241
237
if (operator2 == null ) {
242
- operator2 = TestUtils .createOperator (opManagingtest2NSYamlFile );
238
+ operator2 = TestUtils .createOperator (operator2File );
243
239
}
244
240
// create domain5 with configured cluster
245
241
// ToDo: configured cluster support is removed from samples, modify the test to create
246
242
// configured cluster
247
- Map <String , Object > wdtDomainMap = TestUtils .loadYaml (domainOnPVUsingWDTYamlFile );
243
+ Map <String , Object > wdtDomainMap = TestUtils .loadYaml (domainonpvwdtFile );
248
244
wdtDomainMap .put ("domainUID" , "domain2onpvwdt" );
249
245
wdtDomainMap .put ("adminNodePort" , new Integer ("30703" ));
250
246
wdtDomainMap .put ("t3ChannelPort" , new Integer ("30041" ));
@@ -300,14 +296,14 @@ public void testCreateDomainWithStartPolicyAdminOnly() throws Exception {
300
296
logTestBegin (testMethodName );
301
297
logger .info ("Checking if operator1 is running, if not creating" );
302
298
if (operator1 == null ) {
303
- operator1 = TestUtils .createOperator (opManagingdefaultAndtest1NSYamlFile );
299
+ operator1 = TestUtils .createOperator (operator1File );
304
300
}
305
301
logger .info ("Creating Domain domain6 & verifing the domain creation" );
306
302
// create domain6
307
303
Domain domain = null ;
308
304
boolean testCompletedSuccessfully = false ;
309
305
try {
310
- domain = TestUtils .createDomain (domainWithServerStartPolicyAsAdminOnlyYamlFile );
306
+ domain = TestUtils .createDomain (domainadminonlyFile );
311
307
domain .verifyDomainCreated ();
312
308
313
309
} finally {
@@ -334,14 +330,14 @@ public void testCreateDomainPVReclaimPolicyRecycle() throws Exception {
334
330
logTestBegin (testMethodName );
335
331
logger .info ("Checking if operator1 is running, if not creating" );
336
332
if (operator1 == null ) {
337
- operator1 = TestUtils .createOperator (opManagingdefaultAndtest1NSYamlFile );
333
+ operator1 = TestUtils .createOperator (operator1File );
338
334
}
339
335
logger .info ("Creating Domain domain7 & verifing the domain creation" );
340
336
// create domain7
341
337
Domain domain = null ;
342
338
343
339
try {
344
- domain = TestUtils .createDomain (domainWithStorageReclaimPolicyRecycleYamlFile );
340
+ domain = TestUtils .createDomain (domainrecyclepolicyFile );
345
341
domain .verifyDomainCreated ();
346
342
} finally {
347
343
if (domain != null ) domain .shutdown ();
@@ -367,14 +363,14 @@ public void testCreateDomainWithDefaultValuesInSampleInputs() throws Exception {
367
363
logTestBegin (testMethodName );
368
364
logger .info ("Creating Domain domain10 & verifing the domain creation" );
369
365
if (operator1 == null ) {
370
- operator1 = TestUtils .createOperator (opManagingdefaultAndtest1NSYamlFile );
366
+ operator1 = TestUtils .createOperator (operator1File );
371
367
}
372
368
373
369
// create domain10
374
370
Domain domain = null ;
375
371
boolean testCompletedSuccessfully = false ;
376
372
try {
377
- domain = TestUtils .createDomain (domainWithDefaultValuesForSamplesYamlFile );
373
+ domain = TestUtils .createDomain (domainsampledefaultsFile );
378
374
domain .verifyDomainCreated ();
379
375
testBasicUseCases (domain );
380
376
// testAdvancedUseCasesForADomain(operator1, domain10);
@@ -406,15 +402,15 @@ public void testAutoAndCustomSitConfigOverrides() throws Exception {
406
402
logTestBegin (testMethod );
407
403
408
404
if (operator1 == null ) {
409
- operator1 = TestUtils .createOperator (opManagingdefaultAndtest1NSYamlFile );
405
+ operator1 = TestUtils .createOperator (operator1File );
410
406
}
411
407
Domain domain11 = null ;
412
408
boolean testCompletedSuccessfully = false ;
413
409
String createDomainScriptDir =
414
410
BaseTest .getProjectRoot () + "/integration-tests/src/test/resources/domain-home-on-pv" ;
415
411
try {
416
412
// load input yaml to map and add configOverrides
417
- Map <String , Object > domainMap = TestUtils .loadYaml (domainOnPVUsingWLSTYamlFile );
413
+ Map <String , Object > domainMap = TestUtils .loadYaml (domainonpvwlstFile );
418
414
domainMap .put ("configOverrides" , "sitconfigcm" );
419
415
domainMap .put ("domainUID" , "customsitdomain" );
420
416
domainMap .put ("adminNodePort" , new Integer ("30704" ));
@@ -467,7 +463,7 @@ public void testOperatorRESTIdentityBackwardCompatibility() throws Exception {
467
463
logger .info ("Checking if operatorForBackwardCompatibility is running, if not creating" );
468
464
if (operatorForBackwardCompatibility == null ) {
469
465
operatorForBackwardCompatibility =
470
- TestUtils .createOperator (opForBackwardCompatibility , RESTCertType .LEGACY );
466
+ TestUtils .createOperator (operator_bcFile , RESTCertType .LEGACY );
471
467
}
472
468
operatorForBackwardCompatibility .verifyOperatorExternalRESTEndpoint ();
473
469
logger .info ("Operator using legacy REST identity created successfully" );
@@ -488,7 +484,7 @@ public void testOperatorRESTUsingCertificateChain() throws Exception {
488
484
logTestBegin ("testOperatorRESTUsingCertificateChain" );
489
485
logger .info ("Checking if operatorForBackwardCompatibility is running, if not creating" );
490
486
if (operatorForRESTCertChain == null ) {
491
- operatorForRESTCertChain = TestUtils .createOperator (opForRESTCertChain , RESTCertType .CHAIN );
487
+ operatorForRESTCertChain = TestUtils .createOperator (operator_chainFile , RESTCertType .CHAIN );
492
488
}
493
489
operatorForRESTCertChain .verifyOperatorExternalRESTEndpoint ();
494
490
logger .info ("Operator using legacy REST identity created successfully" );
0 commit comments