Skip to content

Commit 072a4b2

Browse files
author
Cristina Sánchez Sánchez
committed
Merge branch 'CLOUDP-320243-dev-2.0.0' into CLOUDP-333176
2 parents 0e54c53 + ba78a8b commit 072a4b2

File tree

128 files changed

+2068
-3534
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+2068
-3534
lines changed

.changelog/3547.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```release-note:breaking-change
2+
resource/mongodbatlas_advanced_cluster: Disables legacy SDKv2 implementation of this resource and removes the MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER feature flag
3+
```
4+
5+
```release-note:breaking-change
6+
data-source/mongodbatlas_advanced_cluster: Disables legacy SDKv2 implementation of this datasource and removes the MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER feature flag
7+
```
8+
9+
```release-note:breaking-change
10+
data-source/mongodbatlas_advanced_clusters: Disables legacy SDKv2 implementation of this datasource and removes the MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER feature flag
11+
```

.changelog/3560.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```release-note:breaking-change
2+
resource/mongodbatlas_cloud_backup_schedule: Removes the deprecated `copy_settings.#.replication_spec_id` attribute in favor of `zone_id`
3+
```
4+
5+
```release-note:breaking-change
6+
data-source/mongodbatlas_cloud_backup_schedule: Removes the deprecated `copy_settings.#.replication_spec_id` and `use_zone_id_for_copy_settings` attribute in favor of `zone_id`
7+
```

.changelog/3562.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```release-note:breaking-change
2+
resource/mongodbatlas_global_cluster_config: Removes the deprecated `custom_zone_mapping` attribute in favor of `custom_zone_mapping_zone_id`
3+
```
4+
5+
```release-note:breaking-change
6+
data-source/mongodbatlas_global_cluster_config: Removes the deprecated `custom_zone_mapping` attribute in favor of `custom_zone_mapping_zone_id`
7+
```

.changelog/3570.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/mongodbatlas_push_based_log_export: Adds `delete_on_create_timeout` attribute to indicate whether to delete the resource if its creation times out
3+
```

.changelog/3571.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```release-note:enhancement
2+
resource/mongodbatlas_stream_processor: Adds `delete_on_create_timeout` attribute to indicate whether to delete the resource if its creation times out
3+
```
4+
5+
```release-note:enhancement
6+
resource/mongodbatlas_stream_processor: Adds `timeouts` attribute for create operation
7+
```

.github/workflows/acceptance-tests-runner.yml

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ on:
118118
mongodb_atlas_asp_project_aws_role_arn:
119119
type: string
120120
required: true
121+
mongodb_atlas_last_1x_version:
122+
type: string
123+
required: true
121124
secrets: # all secrets are passed explicitly in this workflow
122125
mongodb_atlas_public_key:
123126
required: true
@@ -382,34 +385,10 @@ jobs:
382385
- 'internal/service/streamprocessor/*.go'
383386
- 'internal/service/streamprivatelinkendpoint/*.go'
384387
385-
advanced_cluster:
386-
needs: [ change-detection, get-provider-version ]
387-
if: ${{ needs.change-detection.outputs.advanced_cluster == 'true' || inputs.test_group == 'advanced_cluster' }}
388-
runs-on: ubuntu-latest
389-
permissions: {}
390-
steps:
391-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
392-
with:
393-
ref: ${{ inputs.ref || github.ref }}
394-
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
395-
with:
396-
go-version-file: 'go.mod'
397-
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd
398-
with:
399-
terraform_version: ${{ inputs.terraform_version }}
400-
terraform_wrapper: false
401-
- name: Acceptance Tests
402-
env:
403-
MONGODB_ATLAS_LAST_VERSION: ${{ needs.get-provider-version.outputs.provider_version }}
404-
ACCTEST_REGEX_RUN: ${{ inputs.reduced_tests && '^TestAccMockable' || env.ACCTEST_REGEX_RUN }}
405-
ACCTEST_PACKAGES: ./internal/service/advancedcluster
406-
run: make testacc
407388
408389
advanced_cluster_tpf:
409390
needs: [ change-detection, get-provider-version ]
410391
if: ${{ needs.change-detection.outputs.advanced_cluster_tpf == 'true' || inputs.test_group == 'advanced_cluster_tpf' }}
411-
env:
412-
MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER: 'true'
413392
runs-on: ubuntu-latest
414393
permissions: {}
415394
steps:
@@ -426,6 +405,7 @@ jobs:
426405
- name: Acceptance Tests
427406
env:
428407
MONGODB_ATLAS_LAST_VERSION: ${{ needs.get-provider-version.outputs.provider_version }}
408+
MONGODB_ATLAS_LAST_1X_VERSION: ${{ inputs.mongodb_atlas_last_1x_version }}
429409
HTTP_MOCKER_CAPTURE: 'true'
430410
ACCTEST_REGEX_RUN: ${{ inputs.reduced_tests && '^TestAccMockable' || env.ACCTEST_REGEX_RUN }}
431411
ACCTEST_PACKAGES: |
@@ -437,7 +417,6 @@ jobs:
437417
needs: [ change-detection, get-provider-version ]
438418
if: ${{ inputs.reduced_tests == false && (needs.change-detection.outputs.advanced_cluster_tpf == 'true' || inputs.test_group == 'advanced_cluster_tpf') }}
439419
env:
440-
MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER: 'true'
441420
MONGODB_ATLAS_TEST_SDKV2_TO_TPF: 'true'
442421
runs-on: ubuntu-latest
443422
permissions: {}
@@ -454,9 +433,11 @@ jobs:
454433
terraform_wrapper: false
455434
- name: Acceptance Tests
456435
env:
457-
MONGODB_ATLAS_LAST_VERSION: ${{ needs.get-provider-version.outputs.provider_version }}
436+
MONGODB_ATLAS_LAST_VERSION: ${{ inputs.mongodb_atlas_last_1x_version }}
437+
MONGODB_ATLAS_LAST_1X_VERSION: ${{ inputs.mongodb_atlas_last_1x_version }}
458438
ACCTEST_REGEX_RUN: '^TestMig'
459-
ACCTEST_PACKAGES: ./internal/service/advancedcluster
439+
ACCTEST_PACKAGES: |
440+
./internal/service/advancedcluster
460441
run: make testacc
461442

462443
assume_role:
@@ -556,6 +537,7 @@ jobs:
556537
env:
557538
MONGODB_ATLAS_PROJECT_OWNER_ID: ${{ inputs.mongodb_atlas_project_owner_id }}
558539
MONGODB_ATLAS_LAST_VERSION: ${{ needs.get-provider-version.outputs.provider_version }}
540+
MONGODB_ATLAS_LAST_1X_VERSION: ${{ inputs.mongodb_atlas_last_1x_version }}
559541
AWS_REGION: ${{ vars.AWS_REGION_LOWERCASE }}
560542
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}
561543
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
@@ -565,6 +547,7 @@ jobs:
565547
AZURE_ATLAS_APP_ID: ${{ inputs.azure_atlas_app_id }}
566548
AZURE_SERVICE_PRINCIPAL_ID: ${{ inputs.azure_service_principal_id }}
567549
AZURE_TENANT_ID: ${{ inputs.azure_tenant_id }}
550+
MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER: 'true' # required for migration tests that use provider version < 2.0.0
568551
ACCTEST_PACKAGES: |
569552
./internal/service/cloudbackupschedule
570553
./internal/service/cloudbackupsnapshot
@@ -1100,6 +1083,7 @@ jobs:
11001083
terraform_wrapper: false
11011084
- name: Acceptance Tests
11021085
env:
1086+
MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER: 'true' # required for migration tests that use provider version < 2.0.0
11031087
MONGODB_ATLAS_LAST_VERSION: ${{ needs.get-provider-version.outputs.provider_version }}
11041088
ACCTEST_PACKAGES: ./internal/service/searchdeployment
11051089
run: make testacc

.github/workflows/acceptance-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,4 @@ jobs:
132132
confluent_cloud_privatelink_access_id: ${{ vars.CONFLUENT_CLOUD_PRIVATELINK_ACCESS_ID }}
133133
mongodb_atlas_asp_project_ear_pe_id: ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_ASP_PROJECT_EAR_PE_ID_QA || vars.MONGODB_ATLAS_ASP_PROJECT_EAR_PE_ID_DEV }}
134134
mongodb_atlas_asp_project_aws_role_arn: ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_ASP_PROJECT_AWS_ROLE_ARN_QA || vars.MONGODB_ATLAS_ASP_PROJECT_AWS_ROLE_ARN_DEV }}
135+
mongodb_atlas_last_1x_version: ${{ vars.MONGODB_ATLAS_LAST_1X_VERSION }}

.github/workflows/code-health.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ jobs:
4141
go-version-file: 'go.mod'
4242
- name: Unit Test
4343
run: make test
44-
env:
45-
MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER: "true"
4644
lint:
4745
runs-on: ubuntu-latest
4846
permissions: {}
@@ -93,4 +91,4 @@ jobs:
9391
secrets: inherit
9492
uses: ./.github/workflows/acceptance-tests.yml
9593
with:
96-
reduced_tests: true
94+
reduced_tests: false

.github/workflows/update-dev-branches.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ jobs:
8686
- name: Project check
8787
if: steps.merge-check.outputs.has-changes == 'true'
8888
id: project-check
89-
env:
90-
MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER: "true"
9189
run: |
9290
if make tools build lint test; then
9391
echo "slack-text=✅ Dev branch \`${{ matrix.branch }}\` merged and pushed with latest changes from master. ${{ secrets.SLACK_ONCALL_TAG }} <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}|View Action>" >> "${GITHUB_OUTPUT}"

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ testmact: ## Run MacT tests (mocked acc tests)
5353
@$(eval export MONGODB_ATLAS_ORG_ID?=111111111111111111111111)
5454
@$(eval export MONGODB_ATLAS_PROJECT_ID?=111111111111111111111111)
5555
@$(eval export MONGODB_ATLAS_CLUSTER_NAME?=mocked-cluster)
56-
@$(eval export MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER?=true)
5756
@if [ "$(ACCTEST_PACKAGES)" = "./..." ]; then \
5857
echo "Error: ACCTEST_PACKAGES must be explicitly set for testmact target, './...' is not allowed"; \
5958
exit 1; \
@@ -236,4 +235,4 @@ upload-sbom: ## Upload SBOM
236235

237236
.PHONY: augment-sbom
238237
augment-sbom: ## Augment SBOM
239-
./scripts/compliance/augment-sbom.sh
238+
./scripts/compliance/augment-sbom.sh

0 commit comments

Comments
 (0)