From 4e5c0ac9dacbf3e7d63b495c72d209be1c46b28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Niesiob=C4=99dzki?= Date: Sat, 8 Feb 2025 13:46:42 +0000 Subject: [PATCH] Create var.prefix in sandbox, copy all files for setup --- tools/create_e2e_sandbox.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/create_e2e_sandbox.sh b/tools/create_e2e_sandbox.sh index 9ce75b96b..2022b7a15 100755 --- a/tools/create_e2e_sandbox.sh +++ b/tools/create_e2e_sandbox.sh @@ -38,7 +38,7 @@ mkdir -p "${DEST}" "${INFRA}" ln -sfT "${DIR}" "${DEST}/fabric" SETUP_MODULE="${DIR}/tests/examples_e2e/setup_module" -cp "${SETUP_MODULE}/main.tf" "${SETUP_MODULE}/variables.tf" "${SETUP_MODULE}/e2e_tests.tfvars.tftpl" "${INFRA}" +cp "${SETUP_MODULE}"/* "${INFRA}" cp "${DIR}/tests/examples/variables.tf" "${DEST}" @@ -54,6 +54,7 @@ export | sed -e 's/^declare -x //' | grep '^TFTEST_E2E_' | sed -e 's/^TFTEST_E2E terraform init terraform apply -auto-approve ln -sfT "${INFRA}/e2e_tests.tfvars" "${DEST}/e2e_tests.auto.tfvars" + echo "prefix=$(grep timestamp "${INFRA}/randomizer.auto.tfvars" | cut -d '=' -f2)" >"${DEST}/prefix.auto.tfvars" ) touch "${DEST}/main.tf"