-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Converts
replication_specs
to TypeList for the advanced_cluste…
…r data_source (#2145) * Change tests in TDD fashion. * fixes one missing bracket. * updates from TypeSet to TypeList. * fixes test expectations. * inverts region order. * adds remaining changes. * adds changelog file. * Revert "updates from TypeSet to TypeList." This reverts commit ec4f595. * fix: Missing replication_specs on mongodbatlas_advanced_cluster(s) data sources I couldn't quite understand what triggered the `Set: replicationSpecsHashSet` line in the resource to be commented out but making the data source match fixes the issue. Possibly because the `region_configs` set would also need a custom `Set` function?, but either way there aren't any tests that caught this and I don't have an Atlas organization I can run the tests against to add one. I did install the provider locally and ran a plan to confirm this fixes the issue in my Terraformm .One likely reason is that none of the examples seem to have similar configs across multiple regions (like two with two electable nodes each). (cherry picked from commit f480623) * removes changelog file from cherry-picked PR. * updates changelog. --------- Co-authored-by: Alex Coomans <[email protected]>
- Loading branch information
Showing
5 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
```release-note:bug | ||
data-source/mongodbatlas_advanced_cluster: Converts `replication_specs` from TypeSet to TypeList. This fixes an issue where some items were not returned in the results. | ||
data-source/mongodbatlas_advanced_clusters: Converts `replication_specs` from TypeSet to TypeList. This fixes an issue where some items were not returned in the results. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters