From 6ac640f54d763acf57507cb2e163ee0546425f95 Mon Sep 17 00:00:00 2001 From: Xavier Metichecchia Date: Tue, 10 Dec 2024 12:10:48 -0500 Subject: [PATCH 1/2] Change upwd command 5 --- .github/workflows/build-and-deploy.yml | 4 +++- scripts/drush-post-deploy.sh | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 78b865ea..27778213 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -222,5 +222,7 @@ jobs: cf add-network-policy ${PROJECT}-waf-${BRANCH} ${PROJECT}-cms-${BRANCH} -s ${PROJECT}-${BRANCH} -o ${CF_ORG} --protocol tcp --port 61443 cf map-route benefit-finder-cms-${BRANCH} apps.internal --hostname benefit-finder-cms-${BRANCH} --app-protocol http1 cd .. - sed -i "s/TU_PASS/${TEST_USER_PASS}/g" ./scripts/drush-post-deploy.sh + echo "${TEST_USER_PASS}" + sed -i "s#TU_PASS#${TEST_USER_PASS}#" ./scripts/drush-post-deploy.sh + cat ./scripts/drush-post-deploy.sh source ./scripts/pipeline/cloud-gov-post-deploy.sh diff --git a/scripts/drush-post-deploy.sh b/scripts/drush-post-deploy.sh index 0f408d60..d827b597 100755 --- a/scripts/drush-post-deploy.sh +++ b/scripts/drush-post-deploy.sh @@ -14,10 +14,10 @@ drush cr # Update passwords for existing users echo "Updating passwords for test users..." drush upwd scott_queen TU_PASS - drush upwd nehemia_abuga TU_PASS - drush upwd diego_cob TU_PASS - drush upwd cindy_fong TU_PASS - drush upwd ernie_deeb TU_PASS +drush upwd nehemia_abuga TU_PASS +drush upwd diego_cob TU_PASS +drush upwd cindy_fong TU_PASS +drush upwd ernie_deeb TU_PASS # drush upwd test_test TU_PASS drush state:set system.maintenance_mode 0 -y From c860b6c19274cbb489f253108c3429599a992592 Mon Sep 17 00:00:00 2001 From: Xavier Metichecchia Date: Tue, 10 Dec 2024 12:14:26 -0500 Subject: [PATCH 2/2] Change upwd command 6 --- .github/workflows/build-and-deploy.yml | 2 +- scripts/drush-post-deploy.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 27778213..62a555e4 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -222,7 +222,7 @@ jobs: cf add-network-policy ${PROJECT}-waf-${BRANCH} ${PROJECT}-cms-${BRANCH} -s ${PROJECT}-${BRANCH} -o ${CF_ORG} --protocol tcp --port 61443 cf map-route benefit-finder-cms-${BRANCH} apps.internal --hostname benefit-finder-cms-${BRANCH} --app-protocol http1 cd .. - echo "${TEST_USER_PASS}" + echo "The value of the test user is: ${TEST_USER_PASS}" sed -i "s#TU_PASS#${TEST_USER_PASS}#" ./scripts/drush-post-deploy.sh cat ./scripts/drush-post-deploy.sh source ./scripts/pipeline/cloud-gov-post-deploy.sh diff --git a/scripts/drush-post-deploy.sh b/scripts/drush-post-deploy.sh index d827b597..ab456356 100755 --- a/scripts/drush-post-deploy.sh +++ b/scripts/drush-post-deploy.sh @@ -13,6 +13,8 @@ drush cr # Update passwords for existing users echo "Updating passwords for test users..." +drush user:create test_test --password="TU_PASS" +drush upwd gene_chi TU_PASS drush upwd scott_queen TU_PASS drush upwd nehemia_abuga TU_PASS drush upwd diego_cob TU_PASS