Skip to content

Commit ecab404

Browse files
CLOUDP-314764: Fix e2e cleanup (#3835)
1 parent 6b2679c commit ecab404

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ DEBUG_FLAGS=all=-N -l
2626

2727
TEST_CMD?=go test
2828
UNIT_TAGS?=unit
29+
E2E_TEST_PACKAGES?=./test/e2e..
2930
E2E_TAGS?=e2e
3031
E2E_TIMEOUT?=60m
3132
E2E_PARALLEL?=1
@@ -162,11 +163,11 @@ build-debug: ## Generate a binary in ./bin for debugging atlascli
162163
e2e-test: build-debug ## Run E2E tests
163164
# the target assumes the MCLI_* environment variables are exported
164165
@echo "==> Running E2E tests..."
165-
$(TEST_CMD) -v -p 1 -parallel $(E2E_PARALLEL) -v -timeout $(E2E_TIMEOUT) -tags="$(E2E_TAGS)" ./test/e2e... $(E2E_EXTRA_ARGS)
166+
$(TEST_CMD) -v -p 1 -parallel $(E2E_PARALLEL) -v -timeout $(E2E_TIMEOUT) -tags="$(E2E_TAGS)" ${E2E_TEST_PACKAGES}. $(E2E_EXTRA_ARGS)
166167

167168
.PHONY: e2e-test-snapshots
168169
e2e-test-snapshots: build-debug ## Run E2E tests
169-
UPDATE_SNAPSHOTS=false E2E_SKIP_CLEANUP=true DO_NOT_TRACK=1 $(TEST_CMD) -v -timeout $(E2E_TIMEOUT) -tags="e2eSnap" ./test/e2e... $(E2E_EXTRA_ARGS)
170+
UPDATE_SNAPSHOTS=false E2E_SKIP_CLEANUP=true DO_NOT_TRACK=1 $(TEST_CMD) -v -timeout $(E2E_TIMEOUT) -tags="e2eSnap" ${E2E_TEST_PACKAGES}. $(E2E_EXTRA_ARGS)
170171

171172
.PHONY: unit-test
172173
unit-test: build-debug ## Run unit-tests

build/ci/evergreen.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ functions:
122122
- MONGODB_ATLAS_PRIVATE_API_KEY
123123
- MONGODB_ATLAS_SERVICE
124124
- TEST_CMD
125+
- E2E_TEST_PACKAGES
125126
- E2E_TAGS
126127
- E2E_TEST_BUCKET
127128
- E2E_CLOUD_ROLE_ID
@@ -1474,6 +1475,7 @@ tasks:
14741475
MONGODB_ATLAS_OPS_MANAGER_URL: ${mcli_ops_manager_url}
14751476
MONGODB_ATLAS_SERVICE: cloud
14761477
E2E_TAGS: atlas,cleanup
1478+
E2E_TEST_PACKAGES: ./test/internal..
14771479
E2E_PARALLEL: 16
14781480
E2E_TIMEOUT: 3h
14791481
- name: atlas_gov_cleanup_e2e
@@ -1497,6 +1499,7 @@ tasks:
14971499
MONGODB_ATLAS_OPS_MANAGER_URL: ${mcli_cloud_gov_ops_manager_url}
14981500
MONGODB_ATLAS_SERVICE: cloudgov
14991501
E2E_TAGS: atlas,cleanup
1502+
E2E_TEST_PACKAGES: ./test/internal..
15001503
E2E_TIMEOUT: 3h
15011504
E2E_PARALLEL: 16
15021505
- name: atlas_deployments_atlas_clusters_e2e

0 commit comments

Comments
 (0)