@@ -189,7 +189,7 @@ protected V1Job getExpectedCreateWeblogicDomainJob() {
189
189
.secretName (getInputs ().getWeblogicCredentialsSecretName ()))))));
190
190
}
191
191
192
- // @Test TODO- INVESTIGATE!
192
+ @ Test
193
193
public void generatesCorrect_createWeblogicDomainConfigMap () throws Exception {
194
194
// The config map contains several properties that contain shell and wlst scripts
195
195
// that we don't want to duplicate in the test. However, part of their text
@@ -261,27 +261,24 @@ protected void assertThatActualReadDomainSecretPyIsCorrect(String actualReadDoma
261
261
protected void assertThatActualCreateDomainScriptShIsCorrect (String actualCreateDomainScriptSh ) {
262
262
/*
263
263
create-domain-script.sh: |-
264
+ #!/bin/bash
265
+ #
266
+
267
+ # Include common utility functions
268
+ source /u01/weblogic/utility.sh
269
+
264
270
export DOMAIN_HOME=${SHARED_PATH}/domain/%DOMAIN_NAME%
265
- echo "AdminURL=http\://$3\:%ADMIN_PORT%" >> ${startProp}
266
- nmConnect(admin_username, admin_password, '$1-$2', '5556', '%DOMAIN_NAME%', '${DOMAIN_HOME}', 'plain')
267
- nmConnect(admin_username, admin_password, '$1-$2', '5556', '%DOMAIN_NAME%', '${DOMAIN_HOME}', 'plain')
268
- createNodeMgrHome %DOMAIN_UID% %ADMIN_SERVER_NAME%
269
- createStartScript %DOMAIN_UID% %ADMIN_SERVER_NAME%
270
- createStopScript %DOMAIN_UID% %ADMIN_SERVER_NAME%
271
- while [ $index -lt %NUMBER_OF_MS% ]
272
- createNodeMgrHome %DOMAIN_UID% %MANAGED_SERVER_NAME_BASE%${index} %DOMAIN_UID%-%ADMIN_SERVER_NAME%
273
- createStartScript %DOMAIN_UID% %MANAGED_SERVER_NAME_BASE%${index}
274
- createStopScript %DOMAIN_UID% %MANAGED_SERVER_NAME_BASE%${index}
271
+
272
+ # Create the domain
273
+ wlst.sh -skipWLSModuleScanning /u01/weblogic/create-domain.py
274
+
275
+ echo "Successfully Completed"
275
276
*/
276
277
assertThat (
277
278
actualCreateDomainScriptSh ,
278
279
containsRegexps (
279
- getInputs ().getDomainUID (),
280
280
getInputs ().getDomainName (),
281
- getInputs ().getAdminServerName (),
282
- getInputs ().getManagedServerNameBase (),
283
- getInputs ().getDomainUID () + "-" + getInputs ().getAdminServerName (),
284
- "index -lt " + getInputs ().getConfiguredManagedServerCount ()));
281
+ "wlst.sh -skipWLSModuleScanning /u01/weblogic/create-domain.py" ));
285
282
}
286
283
287
284
protected void assertThatActualCreateDomainPyIsCorrect (String actualCreateDomainPy ) {
@@ -324,6 +321,7 @@ protected void assertThatActualCreateDomainPyIsCorrect(String actualCreateDomain
324
321
containsRegexps (
325
322
getInputs ().getDomainName (),
326
323
getInputs ().getClusterName (),
324
+ getInputs ().getClusterType (),
327
325
getInputs ().getAdminServerName (),
328
326
getInputs ().getManagedServerNameBase (),
329
327
getInputs ().getDomainUID () + "-" + getInputs ().getAdminServerName (),
0 commit comments