diff --git a/.vortex/tests/bats/deployment0.bats b/.vortex/tests/bats/deployment0.bats index 8f7c2c71e..cbf70c7c6 100644 --- a/.vortex/tests/bats/deployment0.bats +++ b/.vortex/tests/bats/deployment0.bats @@ -55,34 +55,34 @@ load _helper.deployment.bash mkdir -p "${SRC_DIR}"/web/themes/custom/star_wars/node_modules touch "${SRC_DIR}"/web/themes/custom/star_wars/node_modules/test.txt -# substep "Preparing remote repo directory ${REMOTE_REPO_DIR}." -# fixture_prepare_dir "${REMOTE_REPO_DIR}" -# git_init 1 "${REMOTE_REPO_DIR}" -# -# popd >/dev/null -# -# pushd "${CURRENT_PROJECT_DIR}" >/dev/null -# -# substep "Running deployment." -# # This deployment uses all 3 types. -# export VORTEX_DEPLOY_TYPES="artifact,webhook,container_registry" -# -# # Variables for ARTIFACT deployment. -# export VORTEX_DEPLOY_ARTIFACT_GIT_REMOTE="${REMOTE_REPO_DIR}"/.git -# export VORTEX_DEPLOY_ARTIFACT_ROOT="${CURRENT_PROJECT_DIR}" -# export VORTEX_DEPLOY_ARTIFACT_SRC="${SRC_DIR}" -# export VORTEX_DEPLOY_ARTIFACT_GIT_USER_EMAIL="${VORTEX_DEPLOY_ARTIFACT_GIT_USER_EMAIL:-testuser@example.com}" -# -# # Variables for WEBHOOK deployment. -# export VORTEX_DEPLOY_WEBHOOK_URL=http://example.com -# export VORTEX_DEPLOY_WEBHOOK_RESPONSE_STATUS=200 -# -# # Variables for container registry deployment. -# # @todo: Not implemented. Add here when implemented. -# -# # Run deployment. -# run ahoy deploy -# assert_success + substep "Preparing remote repo directory ${REMOTE_REPO_DIR}." + fixture_prepare_dir "${REMOTE_REPO_DIR}" + git_init 1 "${REMOTE_REPO_DIR}" + + popd >/dev/null + + pushd "${CURRENT_PROJECT_DIR}" >/dev/null + + substep "Running deployment." + # This deployment uses all 3 types. + export VORTEX_DEPLOY_TYPES="artifact,webhook,container_registry" + + # Variables for ARTIFACT deployment. + export VORTEX_DEPLOY_ARTIFACT_GIT_REMOTE="${REMOTE_REPO_DIR}"/.git + export VORTEX_DEPLOY_ARTIFACT_ROOT="${CURRENT_PROJECT_DIR}" + export VORTEX_DEPLOY_ARTIFACT_SRC="${SRC_DIR}" + export VORTEX_DEPLOY_ARTIFACT_GIT_USER_EMAIL="${VORTEX_DEPLOY_ARTIFACT_GIT_USER_EMAIL:-testuser@example.com}" + + # Variables for WEBHOOK deployment. + export VORTEX_DEPLOY_WEBHOOK_URL=http://example.com + export VORTEX_DEPLOY_WEBHOOK_RESPONSE_STATUS=200 + + # Variables for container registry deployment. + # @todo: Not implemented. Add here when implemented. + + # Run deployment. + run ahoy deploy + assert_success # # # # # Artifact deployment assertions.