Skip to content

Commit a72c890

Browse files
authored
Updated model yaml file (#3618)
* Updated model yaml file
1 parent f050a25 commit a72c890

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItProductionSecureMode.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,13 @@ public static void initAll(@Namespaces(2) List<String> namespaces) {
152152
createSecretWithUsernamePassword(encryptionSecretName, domainNamespace,
153153
"weblogicenc", "weblogicenc");
154154

155+
// Add ServerStartMode section in domainInfo section
156+
// instead of SecurityConfiguration in topology section
157+
// This will trigger a new path while WebLogic configuration
155158
pathToEnableSSLYaml = Paths.get(WORK_DIR + "/enablessl.yaml");
156-
String yamlString = "topology:\n"
157-
+ " SecurityConfiguration: \n"
158-
+ " SecureMode: \n"
159-
+ " SecureModeEnabled: true \n"
159+
String yamlString = "domainInfo:\n"
160+
+ " ServerStartMode: 'secure' \n"
161+
+ "topology: \n"
160162
+ " ServerTemplate: \n"
161163
+ " \"cluster-1-template\": \n"
162164
+ " ListenPort: '7001' \n"

integration-tests/src/test/resources/wdt-models/model-singleclusterdomain-sampleapp-wls.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
domainInfo:
55
AdminUserName: '@@SECRET:__weblogic-credentials__:username@@'
66
AdminPassword: '@@SECRET:__weblogic-credentials__:password@@'
7-
ServerStartMode: 'prod'
87

98
topology:
109
Name: "wls-domain1"
10+
ProductionModeEnabled: 'true'
1111
AdminServerName: "admin-server"
1212
Cluster:
1313
"cluster-1":

0 commit comments

Comments
 (0)