@@ -58,6 +58,11 @@ public class ItSitConfig extends BaseTest {
58
58
*/
59
59
@ BeforeClass
60
60
public static void staticPrepare () throws Exception {
61
+ prepare (
62
+ "integration-tests/src/test/resources/sitconfig/scripts/create-domain-auto-custom-sit-config20.py" );
63
+ }
64
+
65
+ public static void prepare (String domainScript ) throws Exception {
61
66
// initialize test properties and create the directories
62
67
if (!QUICKTEST ) {
63
68
// initialize test properties and create the directories
@@ -90,7 +95,7 @@ public static void staticPrepare() throws Exception {
90
95
};
91
96
copySitConfigFiles (files , "test-secrets" );
92
97
// create weblogic domain with configOverrides
93
- domain = createSitConfigDomain ();
98
+ domain = createSitConfigDomain (domainScript );
94
99
Assert .assertNotNull (domain );
95
100
domainYaml =
96
101
BaseTest .getUserProjectsDir ()
@@ -137,17 +142,15 @@ public static void staticUnPrepare() throws Exception {
137
142
* @return - created domain
138
143
* @throws Exception - if it cannot create the domain
139
144
*/
140
- private static Domain createSitConfigDomain () throws Exception {
145
+ protected static Domain createSitConfigDomain (String domainScript ) throws Exception {
141
146
// load input yaml to map and add configOverrides
142
147
Map <String , Object > domainMap = TestUtils .loadYaml (DOMAININIMAGE_WLST_YAML );
143
148
domainMap .put ("configOverrides" , "sitconfigcm" );
144
149
domainMap .put ("configOverridesFile" , configOverrideDir );
145
150
domainMap .put ("domainUID" , DOMAINUID );
146
151
domainMap .put ("adminNodePort" , new Integer (ADMINPORT ));
147
152
domainMap .put ("t3ChannelPort" , new Integer (T3CHANNELPORT ));
148
- domainMap .put (
149
- "createDomainPyScript" ,
150
- "integration-tests/src/test/resources/sitconfig/scripts/create-domain-auto-custom-sit-config20.py" );
153
+ domainMap .put ("createDomainPyScript" , domainScript );
151
154
domainMap .put (
152
155
"javaOptions" ,
153
156
"-Dweblogic.debug.DebugSituationalConfig=true -Dweblogic.debug.DebugSituationalConfigDumpXml=true" );
0 commit comments