-
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
Changes from 10 commits
8dd6255
a9f8fb5
177581e
e9d1239
f419e76
dc53484
95c3428
1062349
1bf0f23
0bcb43e
4358b36
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 |
---|---|---|
|
@@ -242,7 +242,6 @@ jobs: | |
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' }} | ||
backup: ${{ steps.filter.outputs.backup == 'true' || env.mustTrigger == 'true' }} | ||
|
@@ -275,9 +274,6 @@ jobs: | |
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' | ||
assume_role: | ||
|
@@ -385,9 +381,9 @@ jobs: | |
- 'internal/service/streamprivatelinkendpoint/*.go' | ||
|
||
|
||
advanced_cluster_tpf: | ||
advanced_cluster: | ||
needs: [ change-detection, get-provider-version ] | ||
if: ${{ needs.change-detection.outputs.advanced_cluster_tpf == 'true' || inputs.test_group == 'advanced_cluster_tpf' }} | ||
if: ${{ needs.change-detection.outputs.advanced_cluster == 'true' || inputs.test_group == 'advanced_cluster' }} | ||
runs-on: ubuntu-latest | ||
permissions: {} | ||
steps: | ||
|
@@ -408,13 +404,12 @@ 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 | ||
|
||
advanced_cluster_tpf_mig_from_sdkv2: | ||
needs: [ change-detection, get-provider-version ] | ||
if: ${{ inputs.reduced_tests == false && (needs.change-detection.outputs.advanced_cluster_tpf == 'true' || inputs.test_group == 'advanced_cluster_tpf') }} | ||
if: ${{ inputs.reduced_tests == false && (needs.change-detection.outputs.advanced_cluster == 'true' || inputs.test_group == 'advanced_cluster') }} | ||
env: | ||
MONGODB_ATLAS_TEST_SDKV2_TO_TPF: 'true' | ||
runs-on: ubuntu-latest | ||
|
@@ -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. 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. I recommended in the team to keep these for at least a couple next releases until we have a better idea of adoption & may also help us understand if we need to handle any additional scenarios that might come up based on changes in the next releases |
||
run: make testacc | ||
|
||
assume_role: | ||
|
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.
is there any test in adv_cluster (without tpf) or we can delete filter path 'internal/service/advancedcluster/*_test.go' ?
we're only running package
./internal/service/advancedclustertpf
so I think it's ok to delete the filter pathThere 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.
removed 'internal/service/advancedcluster/*_test.go' ty!