Skip to content
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

INTMDB-328: Update resource & data source to address change in go SDK that impacts resource_mongodbatlas_x509_authentication_database_user #738

Merged
merged 10 commits into from
May 27, 2022

Conversation

martinstibbe
Copy link
Contributor

@martinstibbe martinstibbe commented May 25, 2022

Description

Update resource & data source to address change in go SDK that impacts resource_mongodbatlas_x509_authentication_database_user

Link to any related issue(s):
https://jira.mongodb.org/browse/INTMDB-328

Type of change:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the Terraform contribution guidelines
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

Further comments

dependabot bot and others added 8 commits May 3, 2022 16:23
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.40.6 to 0.40.7.
- [Release notes](https://github.com/gruntwork-io/terratest/releases)
- [Commits](gruntwork-io/terratest@v0.40.6...v0.40.7)

---
updated-dependencies:
- dependency-name: github.com/gruntwork-io/terratest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform) from 1 to 2.
- [Release notes](https://github.com/hashicorp/setup-terraform/releases)
- [Changelog](https://github.com/hashicorp/setup-terraform/blob/main/CHANGELOG.md)
- [Commits](hashicorp/setup-terraform@v1...v2)

---
updated-dependencies:
- dependency-name: hashicorp/setup-terraform
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.12.0 to 2.14.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-sdk@v2.12.0...v2.14.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.14.0 to 2.16.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-sdk@v2.14.0...v2.16.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.40.7 to 0.40.8.
- [Release notes](https://github.com/gruntwork-io/terratest/releases)
- [Commits](gruntwork-io/terratest@v0.40.7...v0.40.8)

---
updated-dependencies:
- dependency-name: github.com/gruntwork-io/terratest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/spf13/cast/releases)
- [Commits](spf13/cast@v1.4.1...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cast
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@themantissa themantissa requested review from a team and removed request for andreaangiolillo and a team May 25, 2022 18:27
Copy link
Collaborator

@themantissa themantissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Changed the APIx team review to see if it would select a new reviewer as Andrea is out.

Copy link

@fmenezes fmenezes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines 70 to 71
options := &matlas.ListOptions{}
certificates, _, err := conn.X509AuthDBUsers.GetUserCertificates(ctx, projectID, username, options)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] you don't need to pass an empty option here, nil is perfectly fine

Suggested change
options := &matlas.ListOptions{}
certificates, _, err := conn.X509AuthDBUsers.GetUserCertificates(ctx, projectID, username, options)
certificates, _, err := conn.X509AuthDBUsers.GetUserCertificates(ctx, projectID, username, nil)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do have this pattern in resources/tests as well I have removed

@martinstibbe martinstibbe requested a review from gssbzn May 26, 2022 17:26
Copy link
Collaborator

@gssbzn gssbzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for those changes

@martinstibbe martinstibbe merged commit 6bc4c37 into release-staging-v1.4.0 May 27, 2022
@martinstibbe martinstibbe deleted the INTMDB-328 branch May 27, 2022 11:54
martinstibbe added a commit that referenced this pull request Jun 30, 2022
* INTMDB-310:  Potential bug when disabling auditing (#705)

* Add support for proper destroy of Auditing settings

* Remove whitespace

* Add support for schema migration (#717)

* Correct import function for snapshot export bucket (#715)

* INTMDB-311: Feature Add: Prometheus and Microsoft Team to the Third Party Integration Settings (#706)

* INTMDB-311: Feature Add: Promethus and Microsoft Team to the Third Party Integration Settings

* Update documentation add additional schema values

* Map to temporary branch for testing

* Fix Lint

* Add boolean field for Prometheus enabled

* Remove Name from Teams integration

* Remove extra Name field from Teams integration type add examples

* Terraform fmt

* Correct version

* Fix lint issue

* terraform fmt example

* Update third party integration resource enabled to boolean

* Rename example file

* Simplify example to integration only Doc updates password optional field

* INTMDB-328: Update resource & data source to address change in go SDK that impacts resource_mongodbatlas_x509_authentication_database_user (#738)

* Chore(deps): Bump actions/setup-go from 2 to 3 (#710)

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump github.com/gruntwork-io/terratest (#711)

Bumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.40.6 to 0.40.7.
- [Release notes](https://github.com/gruntwork-io/terratest/releases)
- [Commits](gruntwork-io/terratest@v0.40.6...v0.40.7)

---
updated-dependencies:
- dependency-name: github.com/gruntwork-io/terratest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump hashicorp/setup-terraform from 1 to 2 (#719)

Bumps [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform) from 1 to 2.
- [Release notes](https://github.com/hashicorp/setup-terraform/releases)
- [Changelog](https://github.com/hashicorp/setup-terraform/blob/main/CHANGELOG.md)
- [Commits](hashicorp/setup-terraform@v1...v2)

---
updated-dependencies:
- dependency-name: hashicorp/setup-terraform
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump github.com/hashicorp/terraform-plugin-sdk/v2 (#720)

Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.12.0 to 2.14.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-sdk@v2.12.0...v2.14.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump github.com/hashicorp/terraform-plugin-sdk/v2 (#727)

Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.14.0 to 2.16.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-sdk@v2.14.0...v2.16.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump github.com/gruntwork-io/terratest (#726)

Bumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.40.7 to 0.40.8.
- [Release notes](https://github.com/gruntwork-io/terratest/releases)
- [Commits](gruntwork-io/terratest@v0.40.7...v0.40.8)

---
updated-dependencies:
- dependency-name: github.com/gruntwork-io/terratest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump github.com/spf13/cast from 1.4.1 to 1.5.0 (#730)

Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/spf13/cast/releases)
- [Commits](spf13/cast@v1.4.1...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cast
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add default empty option list to fix breaking change for X509 certificates library function

* Remove empty options := matlas.ListOptions

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* INTMDB-319: Add support for parameter unordered in resource_mongodbatlas_event_trigger (#739)

* Add support for unordered realm parameter

* Make unordered optional parameter

* Update GO SDK to master

* Sync to latest SDK library version

* Update documentation for unordered parameter

* Add support for unordered to tests

* Chore(deps): Bump github.com/gruntwork-io/terratest (#744)

Bumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.40.10 to 0.40.12.
- [Release notes](https://github.com/gruntwork-io/terratest/releases)
- [Commits](gruntwork-io/terratest@v0.40.10...v0.40.12)

---
updated-dependencies:
- dependency-name: github.com/gruntwork-io/terratest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump github.com/hashicorp/terraform-plugin-sdk/v2 (#743)

Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.16.0 to 2.17.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-sdk@v2.16.0...v2.17.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Melissa Plunkett <[email protected]>

* INTMDB-321: Add support for cloud export backup to mongodbatlas_cloud_backup_schedule (#740)

* Sync to go SDK

* Correct lint error

* Lint space

* Update docs to include auto export and use_org_and_group_names_in_export_prefix

* Add link for snapshot export

* Rename to emptyStruct

* Add brackets to hyperlink

* Remove extra space

* INTMDB-313: Update the project resource with new settings (#741)

* Add support for project_settings

* Sync up SDK library latest version

* Fix lint isues

* Update projects datasource documentation

* Update docs with links

* Add additional tests for new attributes remove space in import section

* Add test for additional project settings

* INTMDB-307 Allow setting of regional mode setting on a group (#718)

* Started on private_endpoint_regional_mode data_source and resource

* Started filling out test and wrote refresh func to ensure cluster status' are all at APPLIED

* No longer reading the setting in refresh func

* Removed unused testing infrastructure

* Fixed data_source test for private endpoint regional mode

* Fixed how regional mode refresh func is consumed

* Fixed resource name on new test

* Added resource and data source to the provider, fixed other build issues

* Fixed lint errors

* Setting key for private endpoint regional mode as just the projectID

* Fixed failing test for private endpoint regional mode. Still need to add a cluster to the config

* Added assertion that cluster connection_strings are maintained properly in state

* Added example for regional mode and update delay before checking refresh func

* Checking if cluster is in the UPDATING state prior to checking against the cluster statsu

* Added dependency on regional mode for the cluster data

* Updated regional mode example to have usage documentation. Updated integration test to create more of its dependencies during the test

* Format example for aws-atlas-privatelink-regionalized

* Fixed an issue with tflint

* Update regional mode test to spin up vpc requirements

* Added documentation and updated example to have two separate private endpoints

* Updated example to have regional_mode enabled

* Updated Project ID refs in documentation to match others in example tf

* Revert "Update regional mode test to spin up vpc requirements"

This reverts commit 3f5893c.

* Fixed formatting on example tf

* Let code breathe in example atlas cluster

Co-authored-by: Andrea Angiolillo <[email protected]>

* Use proper error and log messaging, utilize diag.Errorf

* Update website/docs/r/private_endpoint_regional_mode.html.markdown

Co-authored-by: Melissa Plunkett <[email protected]>

* Update enabled description in docs to contain more of the api documentation

Co-authored-by: Melissa Plunkett <[email protected]>

* Update website/docs/r/private_endpoint_regional_mode.html.markdown

Co-authored-by: Melissa Plunkett <[email protected]>

* Link to registry docs not our github repo

Co-authored-by: Melissa Plunkett <[email protected]>

* Updated assertions in tests

* Updated example to be more current and accurate. Fixed test

* Updated private endpoint regional mode to be disabled on delete

* Made enabled properly optional for private endpoitn regional mode and made data_source test replicate actual usage

Co-authored-by: admin <[email protected]>
Co-authored-by: Andrea Angiolillo <[email protected]>
Co-authored-by: Melissa Plunkett <[email protected]>

* INTDB-301-DOC: Move Federated Docs to separate branch (#747)

* Move Federated Docs to separate branch PR

* Add docs for new datasources and updated role mappings resource

* Refactor okta_idp_id to idp_id in docs

* Add additional parameters for identity provider resource

* Removed cloud from much of the docs

* Applied group id description changes

* Addressed more suggested docs changes

* Downcased federated settings

* Make role mapping import optional add missing formatting for example

* Highlight importance of import being needed

* Changed Provides an to provides a and remove upper case on federated settings

* Update identity_provider datasource

* Missed one

* Add SHA-256

* Fix post_auth_role_grants

* Doc corrections

* remove pagination from singular role mapping

* Import needed

* Doc updates

* Update org settings resource to pull up required args

* Add import statement importance

Co-authored-by: Dosty <[email protected]>

* INTMDB-301: Feature add: Add support for managment of federated authentication configuration  (#742)

* Add support for federated settings

* Refactor for service pattern change

* Refactor options and plural singular names

* Update go SDK version

* Add initial federated website docs

* Provide examples for Federated settings

* Sync go.mod to contain breaking change SDK change

* Fix examples for lint error sync SDK to master

* Add menu items for federation settings and upgrade guides

* Remove Federated Docs from PR

* PR Review updates

* Add support for datasource tests

* Fix lint fmt

* Add identity_provider_id variable

* Move identity_provider_id

* Add role mappings datasource test

* Add additional tests for federated resources

* Lint check

* Add additional datasources and tests

* Remove unused function

* Add support for role mappings and update tests and examples

* Fix role mapping import to fit new style of parameters

* Remove commented code

* go mod tidy

* Remove extra parameter user_conflicts

* Add missing parameters and refactor name of variables

* Update example

* Update mongodbatlas/resource_mongodbatlas_federated_settings_identity_provider.go

Co-authored-by: Andrea Angiolillo <[email protected]>

* go fmt

* Add support for import tests

* Add federated settings env variables to README remove upgrade guide

* Remove cloud prefix from federated examples and resources idp_id to okta_idp_id

* Add new sort to role mapping

* Add README for federated example

* Refactor alias mongodbatlas to matlas dead code removal import spaces

Co-authored-by: Andrea Angiolillo <[email protected]>

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Melissa Plunkett <[email protected]>
Co-authored-by: Dosty Everts <[email protected]>
Co-authored-by: Andrea Angiolillo <[email protected]>
guineveresaenger pushed a commit to pulumi/terraform-provider-mongodbatlas that referenced this pull request Sep 13, 2022
* INTMDB-310:  Potential bug when disabling auditing (mongodb#705)

* Add support for proper destroy of Auditing settings

* Remove whitespace

* Add support for schema migration (mongodb#717)

* Correct import function for snapshot export bucket (mongodb#715)

* INTMDB-311: Feature Add: Prometheus and Microsoft Team to the Third Party Integration Settings (mongodb#706)

* INTMDB-311: Feature Add: Promethus and Microsoft Team to the Third Party Integration Settings

* Update documentation add additional schema values

* Map to temporary branch for testing

* Fix Lint

* Add boolean field for Prometheus enabled

* Remove Name from Teams integration

* Remove extra Name field from Teams integration type add examples

* Terraform fmt

* Correct version

* Fix lint issue

* terraform fmt example

* Update third party integration resource enabled to boolean

* Rename example file

* Simplify example to integration only Doc updates password optional field

* INTMDB-328: Update resource & data source to address change in go SDK that impacts resource_mongodbatlas_x509_authentication_database_user (mongodb#738)

* Chore(deps): Bump actions/setup-go from 2 to 3 (mongodb#710)

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump github.com/gruntwork-io/terratest (mongodb#711)

Bumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.40.6 to 0.40.7.
- [Release notes](https://github.com/gruntwork-io/terratest/releases)
- [Commits](gruntwork-io/terratest@v0.40.6...v0.40.7)

---
updated-dependencies:
- dependency-name: github.com/gruntwork-io/terratest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump hashicorp/setup-terraform from 1 to 2 (mongodb#719)

Bumps [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform) from 1 to 2.
- [Release notes](https://github.com/hashicorp/setup-terraform/releases)
- [Changelog](https://github.com/hashicorp/setup-terraform/blob/main/CHANGELOG.md)
- [Commits](hashicorp/setup-terraform@v1...v2)

---
updated-dependencies:
- dependency-name: hashicorp/setup-terraform
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump github.com/hashicorp/terraform-plugin-sdk/v2 (mongodb#720)

Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.12.0 to 2.14.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-sdk@v2.12.0...v2.14.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump github.com/hashicorp/terraform-plugin-sdk/v2 (mongodb#727)

Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.14.0 to 2.16.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-sdk@v2.14.0...v2.16.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump github.com/gruntwork-io/terratest (mongodb#726)

Bumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.40.7 to 0.40.8.
- [Release notes](https://github.com/gruntwork-io/terratest/releases)
- [Commits](gruntwork-io/terratest@v0.40.7...v0.40.8)

---
updated-dependencies:
- dependency-name: github.com/gruntwork-io/terratest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump github.com/spf13/cast from 1.4.1 to 1.5.0 (mongodb#730)

Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/spf13/cast/releases)
- [Commits](spf13/cast@v1.4.1...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cast
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add default empty option list to fix breaking change for X509 certificates library function

* Remove empty options := matlas.ListOptions

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* INTMDB-319: Add support for parameter unordered in resource_mongodbatlas_event_trigger (mongodb#739)

* Add support for unordered realm parameter

* Make unordered optional parameter

* Update GO SDK to master

* Sync to latest SDK library version

* Update documentation for unordered parameter

* Add support for unordered to tests

* Chore(deps): Bump github.com/gruntwork-io/terratest (mongodb#744)

Bumps [github.com/gruntwork-io/terratest](https://github.com/gruntwork-io/terratest) from 0.40.10 to 0.40.12.
- [Release notes](https://github.com/gruntwork-io/terratest/releases)
- [Commits](gruntwork-io/terratest@v0.40.10...v0.40.12)

---
updated-dependencies:
- dependency-name: github.com/gruntwork-io/terratest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): Bump github.com/hashicorp/terraform-plugin-sdk/v2 (mongodb#743)

Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.16.0 to 2.17.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-sdk@v2.16.0...v2.17.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Melissa Plunkett <[email protected]>

* INTMDB-321: Add support for cloud export backup to mongodbatlas_cloud_backup_schedule (mongodb#740)

* Sync to go SDK

* Correct lint error

* Lint space

* Update docs to include auto export and use_org_and_group_names_in_export_prefix

* Add link for snapshot export

* Rename to emptyStruct

* Add brackets to hyperlink

* Remove extra space

* INTMDB-313: Update the project resource with new settings (mongodb#741)

* Add support for project_settings

* Sync up SDK library latest version

* Fix lint isues

* Update projects datasource documentation

* Update docs with links

* Add additional tests for new attributes remove space in import section

* Add test for additional project settings

* INTMDB-307 Allow setting of regional mode setting on a group (mongodb#718)

* Started on private_endpoint_regional_mode data_source and resource

* Started filling out test and wrote refresh func to ensure cluster status' are all at APPLIED

* No longer reading the setting in refresh func

* Removed unused testing infrastructure

* Fixed data_source test for private endpoint regional mode

* Fixed how regional mode refresh func is consumed

* Fixed resource name on new test

* Added resource and data source to the provider, fixed other build issues

* Fixed lint errors

* Setting key for private endpoint regional mode as just the projectID

* Fixed failing test for private endpoint regional mode. Still need to add a cluster to the config

* Added assertion that cluster connection_strings are maintained properly in state

* Added example for regional mode and update delay before checking refresh func

* Checking if cluster is in the UPDATING state prior to checking against the cluster statsu

* Added dependency on regional mode for the cluster data

* Updated regional mode example to have usage documentation. Updated integration test to create more of its dependencies during the test

* Format example for aws-atlas-privatelink-regionalized

* Fixed an issue with tflint

* Update regional mode test to spin up vpc requirements

* Added documentation and updated example to have two separate private endpoints

* Updated example to have regional_mode enabled

* Updated Project ID refs in documentation to match others in example tf

* Revert "Update regional mode test to spin up vpc requirements"

This reverts commit 3f5893c.

* Fixed formatting on example tf

* Let code breathe in example atlas cluster

Co-authored-by: Andrea Angiolillo <[email protected]>

* Use proper error and log messaging, utilize diag.Errorf

* Update website/docs/r/private_endpoint_regional_mode.html.markdown

Co-authored-by: Melissa Plunkett <[email protected]>

* Update enabled description in docs to contain more of the api documentation

Co-authored-by: Melissa Plunkett <[email protected]>

* Update website/docs/r/private_endpoint_regional_mode.html.markdown

Co-authored-by: Melissa Plunkett <[email protected]>

* Link to registry docs not our github repo

Co-authored-by: Melissa Plunkett <[email protected]>

* Updated assertions in tests

* Updated example to be more current and accurate. Fixed test

* Updated private endpoint regional mode to be disabled on delete

* Made enabled properly optional for private endpoitn regional mode and made data_source test replicate actual usage

Co-authored-by: admin <[email protected]>
Co-authored-by: Andrea Angiolillo <[email protected]>
Co-authored-by: Melissa Plunkett <[email protected]>

* INTDB-301-DOC: Move Federated Docs to separate branch (mongodb#747)

* Move Federated Docs to separate branch PR

* Add docs for new datasources and updated role mappings resource

* Refactor okta_idp_id to idp_id in docs

* Add additional parameters for identity provider resource

* Removed cloud from much of the docs

* Applied group id description changes

* Addressed more suggested docs changes

* Downcased federated settings

* Make role mapping import optional add missing formatting for example

* Highlight importance of import being needed

* Changed Provides an to provides a and remove upper case on federated settings

* Update identity_provider datasource

* Missed one

* Add SHA-256

* Fix post_auth_role_grants

* Doc corrections

* remove pagination from singular role mapping

* Import needed

* Doc updates

* Update org settings resource to pull up required args

* Add import statement importance

Co-authored-by: Dosty <[email protected]>

* INTMDB-301: Feature add: Add support for managment of federated authentication configuration  (mongodb#742)

* Add support for federated settings

* Refactor for service pattern change

* Refactor options and plural singular names

* Update go SDK version

* Add initial federated website docs

* Provide examples for Federated settings

* Sync go.mod to contain breaking change SDK change

* Fix examples for lint error sync SDK to master

* Add menu items for federation settings and upgrade guides

* Remove Federated Docs from PR

* PR Review updates

* Add support for datasource tests

* Fix lint fmt

* Add identity_provider_id variable

* Move identity_provider_id

* Add role mappings datasource test

* Add additional tests for federated resources

* Lint check

* Add additional datasources and tests

* Remove unused function

* Add support for role mappings and update tests and examples

* Fix role mapping import to fit new style of parameters

* Remove commented code

* go mod tidy

* Remove extra parameter user_conflicts

* Add missing parameters and refactor name of variables

* Update example

* Update mongodbatlas/resource_mongodbatlas_federated_settings_identity_provider.go

Co-authored-by: Andrea Angiolillo <[email protected]>

* go fmt

* Add support for import tests

* Add federated settings env variables to README remove upgrade guide

* Remove cloud prefix from federated examples and resources idp_id to okta_idp_id

* Add new sort to role mapping

* Add README for federated example

* Refactor alias mongodbatlas to matlas dead code removal import spaces

Co-authored-by: Andrea Angiolillo <[email protected]>

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Melissa Plunkett <[email protected]>
Co-authored-by: Dosty Everts <[email protected]>
Co-authored-by: Andrea Angiolillo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants