3131public class ITOperator extends BaseTest {
3232
3333 // 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" ;
3938
4039 // 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" ;
4945
5046 // property file used to configure constants for integration tests
5147 private static String appPropsFile = "OperatorIT.properties" ;
@@ -140,12 +136,12 @@ public void testDomainOnPVUsingWLST() throws Exception {
140136 logger .info ("Creating Operator & waiting for the script to complete execution" );
141137 // create operator1
142138 if (operator1 == null ) {
143- operator1 = TestUtils .createOperator (opManagingdefaultAndtest1NSYamlFile );
139+ operator1 = TestUtils .createOperator (operator1File );
144140 }
145141 Domain domain = null ;
146142 boolean testCompletedSuccessfully = false ;
147143 try {
148- domain = TestUtils .createDomain (domainOnPVUsingWLSTYamlFile );
144+ domain = TestUtils .createDomain (domainonpvwlstFile );
149145 domain .verifyDomainCreated ();
150146 testBasicUseCases (domain );
151147 testAdvancedUseCasesForADomain (operator1 , domain );
@@ -179,13 +175,13 @@ public void testDomainOnPVUsingWDT() throws Exception {
179175 logger .info ("Creating Domain using DomainOnPVUsingWDT & verifing the domain creation" );
180176
181177 if (operator2 == null ) {
182- operator2 = TestUtils .createOperator (opManagingtest2NSYamlFile );
178+ operator2 = TestUtils .createOperator (operator2File );
183179 }
184180 Domain domain = null ;
185181 boolean testCompletedSuccessfully = false ;
186182 try {
187183 // create domain
188- domain = TestUtils .createDomain (domainOnPVUsingWDTYamlFile );
184+ domain = TestUtils .createDomain (domainonpvwdtFile );
189185 domain .verifyDomainCreated ();
190186 testBasicUseCases (domain );
191187 testWLDFScaling (operator2 , domain );
@@ -223,14 +219,14 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
223219
224220 logger .info ("Checking if operator1 and domain1 are running, if not creating" );
225221 if (operator1 == null ) {
226- operator1 = TestUtils .createOperator (opManagingdefaultAndtest1NSYamlFile );
222+ operator1 = TestUtils .createOperator (operator1File );
227223 }
228224
229225 Domain domain1 = null , domain2 = null ;
230226 boolean testCompletedSuccessfully = false ;
231227 try {
232228 // load input yaml to map and add configOverrides
233- Map <String , Object > wlstDomainMap = TestUtils .loadYaml (domainOnPVUsingWLSTYamlFile );
229+ Map <String , Object > wlstDomainMap = TestUtils .loadYaml (domainonpvwlstFile );
234230 wlstDomainMap .put ("domainUID" , "domain1onpvwlst" );
235231 wlstDomainMap .put ("adminNodePort" , new Integer ("30702" ));
236232 wlstDomainMap .put ("t3ChannelPort" , new Integer ("30031" ));
@@ -239,12 +235,12 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
239235 testBasicUseCases (domain1 );
240236 logger .info ("Checking if operator2 is running, if not creating" );
241237 if (operator2 == null ) {
242- operator2 = TestUtils .createOperator (opManagingtest2NSYamlFile );
238+ operator2 = TestUtils .createOperator (operator2File );
243239 }
244240 // create domain5 with configured cluster
245241 // ToDo: configured cluster support is removed from samples, modify the test to create
246242 // configured cluster
247- Map <String , Object > wdtDomainMap = TestUtils .loadYaml (domainOnPVUsingWDTYamlFile );
243+ Map <String , Object > wdtDomainMap = TestUtils .loadYaml (domainonpvwdtFile );
248244 wdtDomainMap .put ("domainUID" , "domain2onpvwdt" );
249245 wdtDomainMap .put ("adminNodePort" , new Integer ("30703" ));
250246 wdtDomainMap .put ("t3ChannelPort" , new Integer ("30041" ));
@@ -300,14 +296,14 @@ public void testCreateDomainWithStartPolicyAdminOnly() throws Exception {
300296 logTestBegin (testMethodName );
301297 logger .info ("Checking if operator1 is running, if not creating" );
302298 if (operator1 == null ) {
303- operator1 = TestUtils .createOperator (opManagingdefaultAndtest1NSYamlFile );
299+ operator1 = TestUtils .createOperator (operator1File );
304300 }
305301 logger .info ("Creating Domain domain6 & verifing the domain creation" );
306302 // create domain6
307303 Domain domain = null ;
308304 boolean testCompletedSuccessfully = false ;
309305 try {
310- domain = TestUtils .createDomain (domainWithServerStartPolicyAsAdminOnlyYamlFile );
306+ domain = TestUtils .createDomain (domainadminonlyFile );
311307 domain .verifyDomainCreated ();
312308
313309 } finally {
@@ -334,14 +330,14 @@ public void testCreateDomainPVReclaimPolicyRecycle() throws Exception {
334330 logTestBegin (testMethodName );
335331 logger .info ("Checking if operator1 is running, if not creating" );
336332 if (operator1 == null ) {
337- operator1 = TestUtils .createOperator (opManagingdefaultAndtest1NSYamlFile );
333+ operator1 = TestUtils .createOperator (operator1File );
338334 }
339335 logger .info ("Creating Domain domain7 & verifing the domain creation" );
340336 // create domain7
341337 Domain domain = null ;
342338
343339 try {
344- domain = TestUtils .createDomain (domainWithStorageReclaimPolicyRecycleYamlFile );
340+ domain = TestUtils .createDomain (domainrecyclepolicyFile );
345341 domain .verifyDomainCreated ();
346342 } finally {
347343 if (domain != null ) domain .shutdown ();
@@ -367,14 +363,14 @@ public void testCreateDomainWithDefaultValuesInSampleInputs() throws Exception {
367363 logTestBegin (testMethodName );
368364 logger .info ("Creating Domain domain10 & verifing the domain creation" );
369365 if (operator1 == null ) {
370- operator1 = TestUtils .createOperator (opManagingdefaultAndtest1NSYamlFile );
366+ operator1 = TestUtils .createOperator (operator1File );
371367 }
372368
373369 // create domain10
374370 Domain domain = null ;
375371 boolean testCompletedSuccessfully = false ;
376372 try {
377- domain = TestUtils .createDomain (domainWithDefaultValuesForSamplesYamlFile );
373+ domain = TestUtils .createDomain (domainsampledefaultsFile );
378374 domain .verifyDomainCreated ();
379375 testBasicUseCases (domain );
380376 // testAdvancedUseCasesForADomain(operator1, domain10);
@@ -406,15 +402,15 @@ public void testAutoAndCustomSitConfigOverrides() throws Exception {
406402 logTestBegin (testMethod );
407403
408404 if (operator1 == null ) {
409- operator1 = TestUtils .createOperator (opManagingdefaultAndtest1NSYamlFile );
405+ operator1 = TestUtils .createOperator (operator1File );
410406 }
411407 Domain domain11 = null ;
412408 boolean testCompletedSuccessfully = false ;
413409 String createDomainScriptDir =
414410 BaseTest .getProjectRoot () + "/integration-tests/src/test/resources/domain-home-on-pv" ;
415411 try {
416412 // load input yaml to map and add configOverrides
417- Map <String , Object > domainMap = TestUtils .loadYaml (domainOnPVUsingWLSTYamlFile );
413+ Map <String , Object > domainMap = TestUtils .loadYaml (domainonpvwlstFile );
418414 domainMap .put ("configOverrides" , "sitconfigcm" );
419415 domainMap .put ("domainUID" , "customsitdomain" );
420416 domainMap .put ("adminNodePort" , new Integer ("30704" ));
@@ -467,7 +463,7 @@ public void testOperatorRESTIdentityBackwardCompatibility() throws Exception {
467463 logger .info ("Checking if operatorForBackwardCompatibility is running, if not creating" );
468464 if (operatorForBackwardCompatibility == null ) {
469465 operatorForBackwardCompatibility =
470- TestUtils .createOperator (opForBackwardCompatibility , RESTCertType .LEGACY );
466+ TestUtils .createOperator (operator_bcFile , RESTCertType .LEGACY );
471467 }
472468 operatorForBackwardCompatibility .verifyOperatorExternalRESTEndpoint ();
473469 logger .info ("Operator using legacy REST identity created successfully" );
@@ -488,7 +484,7 @@ public void testOperatorRESTUsingCertificateChain() throws Exception {
488484 logTestBegin ("testOperatorRESTUsingCertificateChain" );
489485 logger .info ("Checking if operatorForBackwardCompatibility is running, if not creating" );
490486 if (operatorForRESTCertChain == null ) {
491- operatorForRESTCertChain = TestUtils .createOperator (opForRESTCertChain , RESTCertType .CHAIN );
487+ operatorForRESTCertChain = TestUtils .createOperator (operator_chainFile , RESTCertType .CHAIN );
492488 }
493489 operatorForRESTCertChain .verifyOperatorExternalRESTEndpoint ();
494490 logger .info ("Operator using legacy REST identity created successfully" );
0 commit comments