Create var.prefix in sandbox, copy all files for setup
This commit is contained in:
committed by
Wiktor Niesiobędzki
parent
58f22ce647
commit
4e5c0ac9da
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user