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

New resource: azurerm_data_factory_linked_service_cosmosdb_mongoapi #13636

Merged
merged 9 commits into from
Oct 12, 2021

Conversation

favoretti
Copy link
Collaborator

Fixes #8905

$ TF_ACC=1 go test -v ./internal/services/datafactory -timeout=1000m -run='TestAccDataFactoryLinkedServiceCosmosDbMongoAPI'
=== RUN   TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_basic
=== PAUSE TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_basic
=== RUN   TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_serverVersionAbove32
=== PAUSE TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_serverVersionAbove32
=== RUN   TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_update
=== PAUSE TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_update
=== CONT  TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_basic
=== CONT  TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_update
=== CONT  TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_serverVersionAbove32
--- PASS: TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_serverVersionAbove32 (142.39s)
--- PASS: TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_basic (144.43s)
--- PASS: TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_update (189.73s)
PASS
ok  	github.com/hashicorp/terraform-provider-azurerm/internal/services/datafactory	191.256s

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Thanks @favoretti, overall looks good and i just have 1 real comment about a property name

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

Hey @favoretti, since I recently finished refactoring all of the linked service resources (#13602) I decided to take a peek here. It would be helpful if you could use the custom importer and the id parser in this resource.

@favoretti
Copy link
Collaborator Author

Thanks both. Property related to mongo version, i.e. 3.2 or higher.

I'll rebase and use parsers and happy to rename property to whatever y'all seem feasible.

@katbyte
Copy link
Collaborator

katbyte commented Oct 8, 2021

how about server_version_is_32_or_higher?

Fixes hashicorp#8905

```
$ TF_ACC=1 go test -v ./internal/services/datafactory -timeout=1000m -run='TestAccDataFactoryLinkedServiceCosmosDbMongoAPI'
=== RUN   TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_basic
=== PAUSE TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_basic
=== RUN   TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_serverVersionAbove32
=== PAUSE TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_serverVersionAbove32
=== RUN   TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_update
=== PAUSE TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_update
=== CONT  TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_basic
=== CONT  TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_update
=== CONT  TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_serverVersionAbove32
--- PASS: TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_serverVersionAbove32 (142.39s)
--- PASS: TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_basic (144.43s)
--- PASS: TestAccDataFactoryLinkedServiceCosmosDbMongoAPI_update (189.73s)
PASS
ok  	github.com/hashicorp/terraform-provider-azurerm/internal/services/datafactory	191.256s
```
@favoretti
Copy link
Collaborator Author

image

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

Thanks for making those changes @favoretti 🙂. Just another few teeny tiny remarks that need to be addressed then we're there!

@favoretti
Copy link
Collaborator Author

@stephybun Sorry, should've checked these in IDE rather than blindly commit via GH. Thanks for fixing!

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

It was my mistake in the suggestion so that was on me 😅. Thanks for fixing up the rest of it @favoretti! LGTM 🚀

@stephybun stephybun added this to the v2.81.0 milestone Oct 12, 2021
@stephybun stephybun merged commit 5e3056e into hashicorp:main Oct 12, 2021
stephybun added a commit that referenced this pull request Oct 12, 2021
@github-actions
Copy link

This functionality has been released in v2.81.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

azurerm_data_factory_linked_service_cosmosdb - creates wrong type (?)
3 participants