Skip to content

Commit c4a2929

Browse files
authored
Update the replacemnet string to create create_k8s_secrets.sh (#3593)
* add upgrade tests for release/3.4.4 * modified more replacement string
1 parent 6578b39 commit c4a2929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,10 @@ private static void updateCreateSecretsFile() {
397397
replaceStringInFile(LIFT_AND_SHIFT_WORK_DIR + "/u01/" + DISCOVER_DOMAIN_OUTPUT_DIR + "/create_k8s_secrets.sh",
398398
"NAMESPACE=onprem-domain", "NAMESPACE=" + domainNamespace);
399399
replaceStringInFile(LIFT_AND_SHIFT_WORK_DIR + "/u01/" + DISCOVER_DOMAIN_OUTPUT_DIR + "/create_k8s_secrets.sh",
400-
"weblogic-credentials <user> <password>", "weblogic-credentials " + ADMIN_USERNAME_DEFAULT
400+
"weblogic-credentials \"<user>\" <password>", "weblogic-credentials " + ADMIN_USERNAME_DEFAULT
401401
+ " " + ADMIN_PASSWORD_DEFAULT);
402402
replaceStringInFile(LIFT_AND_SHIFT_WORK_DIR + "/u01/" + DISCOVER_DOMAIN_OUTPUT_DIR + "/create_k8s_secrets.sh",
403-
"scott <password>", "scott tiger");
403+
"\"scott\" <password>", "scott tiger");
404404
replaceStringInFile(LIFT_AND_SHIFT_WORK_DIR + "/u01/" + DISCOVER_DOMAIN_OUTPUT_DIR + "/create_k8s_secrets.sh",
405405
"runtime-encryption-secret <password>", "runtime-encryption-secret welcome1");
406406
} catch (IOException ioex) {

0 commit comments

Comments
 (0)