-
Notifications
You must be signed in to change notification settings - Fork 205
test: Updates all test workflows to use advanced_cluster TPF implementation #3580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: CLOUDP-320243-dev-2.0.0
Are you sure you want to change the base?
Changes from all commits
8dd6255
a9f8fb5
177581e
e9d1239
f419e76
dc53484
95c3428
1062349
1bf0f23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ on: | |
type: string | ||
required: false | ||
test_group: | ||
description: 'Test group to run, e.g. advanced_cluster, empty for all' | ||
description: 'Test group to run, e.g. advanced_cluster_tpf, empty for all' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. curious about the context: why do we still need to specify the _tpf? |
||
type: string | ||
required: false | ||
test_name: | ||
|
@@ -26,7 +26,7 @@ on: | |
type: string | ||
required: false | ||
reduced_tests: | ||
description: 'If run only minimum tests for advanced_cluster, e.g. in PRs' | ||
description: 'If run only minimum tests for advanced_cluster_tpf, e.g. in PRs' | ||
type: boolean | ||
required: false | ||
default: false | ||
|
@@ -241,7 +241,6 @@ jobs: | |
env: | ||
mustTrigger: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.test_group == '' ) }} | ||
outputs: # ensure resources are sorted alphabetically | ||
advanced_cluster: ${{ steps.filter.outputs.advanced_cluster == 'true' || env.mustTrigger == 'true' }} | ||
advanced_cluster_tpf: ${{ steps.filter.outputs.advanced_cluster_tpf == 'true' || env.mustTrigger == 'true' }} | ||
assume_role: ${{ steps.filter.outputs.assume_role == 'true' || env.mustTrigger == 'true' }} | ||
autogen: ${{ steps.filter.outputs.autogen == 'true' || env.mustTrigger == 'true' }} | ||
|
@@ -274,9 +273,6 @@ jobs: | |
if: ${{ inputs.test_group == '' && env.mustTrigger == 'false' }} | ||
with: | ||
filters: | | ||
advanced_cluster: | ||
- 'internal/service/advancedcluster/!(*_test).go' # matches any adv_cluster file change except test files | ||
- 'internal/service/advancedclustertpf/common*.go' | ||
advanced_cluster_tpf: | ||
- 'internal/service/advancedclustertpf/*.go' | ||
- 'internal/service/advancedcluster/*_test.go' | ||
|
@@ -408,7 +404,6 @@ jobs: | |
HTTP_MOCKER_CAPTURE: 'true' | ||
ACCTEST_REGEX_RUN: ${{ inputs.reduced_tests && '^TestAccMockable' || env.ACCTEST_REGEX_RUN }} | ||
ACCTEST_PACKAGES: | | ||
./internal/service/advancedcluster | ||
./internal/service/advancedclustertpf | ||
run: make testacc | ||
|
||
|
@@ -436,7 +431,7 @@ jobs: | |
MONGODB_ATLAS_LAST_1X_VERSION: ${{ inputs.mongodb_atlas_last_1x_version }} | ||
ACCTEST_REGEX_RUN: '^TestMig' | ||
ACCTEST_PACKAGES: | | ||
./internal/service/advancedcluster | ||
./internal/service/advancedclustertpf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we still need advanced_cluster_tpf_mig_from_sdkv2 tests? Maybe we can remove it, and remove logic associated with env.var MONGODB_ATLAS_TEST_SDKV2_TO_TPF from the code. |
||
run: make testacc | ||
|
||
assume_role: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,4 +91,4 @@ jobs: | |
secrets: inherit | ||
uses: ./.github/workflows/acceptance-tests.yml | ||
with: | ||
reduced_tests: false | ||
reduced_tests: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you clarify here the why? |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package advancedcluster_test | ||
package advancedclustertpf_test | ||
|
||
import ( | ||
"os" | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about renaming all occurences in this file from advanced_cluster_tpf to advanced_cluster as that's the only one now?