Skip to content

Commit

Permalink
Allow E2E tests for individual providers to be kicked off from CodeBu…
Browse files Browse the repository at this point in the history
…ild (#7229)
  • Loading branch information
abhay-krishna authored Dec 22, 2023
1 parent dc11f79 commit c1479be
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ phases:
- source ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/create_infra_config.sh
- ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/start_docker.sh
- export CLUSTER_NAME_PREFIX="${BRANCH_NAME//./-}"
- >
- |
if ! [[ ${CODEBUILD_INITIATOR} =~ "codepipeline" ]]; then
make build-eks-a-for-e2e build-integration-test-binary e2e-tests-binary E2E_TAGS="e2e cloudstack" E2E_OUTPUT_FILE=bin/cloudstack/e2e.test
fi
- >
./bin/test e2e cleanup cloudstack
-n ${CLUSTER_NAME_PREFIX}
-v 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ phases:
- source ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/setup_profile.sh
- source ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/create_infra_config.sh
- ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/start_docker.sh
- |
if ! [[ ${CODEBUILD_INITIATOR} =~ "codepipeline" ]]; then
make build-eks-a-for-e2e build-integration-test-binary e2e-tests-binary E2E_TAGS="e2e docker" E2E_OUTPUT_FILE=bin/docker/e2e.test
fi
build:
commands:
- export JOB_ID=$CODEBUILD_BUILD_ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ phases:
- source ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/setup_profile.sh
- source ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/create_infra_config.sh
- ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/start_docker.sh
- |
if ! [[ ${CODEBUILD_INITIATOR} =~ "codepipeline" ]]; then
make build-eks-a-for-e2e build-integration-test-binary e2e-tests-binary E2E_TAGS="e2e nutanix" E2E_OUTPUT_FILE=bin/nutanix/e2e.test
fi
build:
commands:
- export JOB_ID=$CODEBUILD_BUILD_ID
Expand Down
4 changes: 4 additions & 0 deletions cmd/integration_test/build/buildspecs/snow-test-eks-a-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ phases:
- source ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/setup_profile.sh
- source ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/create_infra_config.sh
- ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/start_docker.sh
- |
if ! [[ ${CODEBUILD_INITIATOR} =~ "codepipeline" ]]; then
make build-eks-a-for-e2e build-integration-test-binary e2e-tests-binary E2E_TAGS="e2e snow" E2E_OUTPUT_FILE=bin/snow/e2e.test
fi
build:
commands:
- export JOB_ID=$CODEBUILD_BUILD_ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ phases:
- source ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/setup_profile.sh
- source ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/create_infra_config.sh
- ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/start_docker.sh
- |
if ! [[ ${CODEBUILD_INITIATOR} =~ "codepipeline" ]]; then
make build-eks-a-for-e2e build-integration-test-binary e2e-tests-binary E2E_TAGS="e2e tinkerbell" E2E_OUTPUT_FILE=bin/tinkerbell/e2e.test
fi
build:
commands:
- export JOB_ID=$CODEBUILD_BUILD_ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ phases:
- source ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/create_infra_config.sh
- ${CODEBUILD_SRC_DIR}/cmd/integration_test/build/script/start_docker.sh
- export CLUSTER_NAME_PREFIX="${BRANCH_NAME//./-}"
- |
if ! [[ ${CODEBUILD_INITIATOR} =~ "codepipeline" ]]; then
make build-eks-a-for-e2e build-integration-test-binary e2e-tests-binary E2E_TAGS="e2e vsphere" E2E_OUTPUT_FILE=bin/vsphere/e2e.test
fi
- >
./bin/test e2e cleanup vsphere
-n ${CLUSTER_NAME_PREFIX}
Expand Down

0 comments on commit c1479be

Please sign in to comment.