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_servicebus_namespace_disaster_recovery_config (Service Bus Geo DR) #11638

Merged
merged 9 commits into from
May 14, 2021

Conversation

1-xtra
Copy link
Contributor

@1-xtra 1-xtra commented May 9, 2021

As per issue #3136, implemented a disaster resource config resource, following the same pattern as the 'Event Hubs Geo DR config' (which is very similar)

  • Added the DR client to the Service Bus clients
  • Added parsers and validators for the resource id type
  • Implemented resources + tests, following same patterns and naming conventions as per event hubs disaster config resource

Mainly putting this here for a bit of visibility and early feedback. Basic test is passing - still need to add the update tests

Any comments appreciated,

@ghost ghost added the size/XL label May 9, 2021
@1-xtra 1-xtra changed the title Implemented Service Bus Geo DR Resource (azurerm_servicebus_namespace_disaster_recovery_config) New Resource : azurerm_servicebus_namespace_disaster_recovery_config (Service Bus Geo DR) May 9, 2021
@ghost ghost added the documentation label May 9, 2021
@ghost ghost added size/XXL and removed size/XL labels May 9, 2021
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 @1-xtra - i've given this an initial review with comments left inline

@1-xtra
Copy link
Contributor Author

1-xtra commented May 10, 2021

Changes done :

$ TF_ACC=1 go test -v ./azurerm/internal/services/servicebus -run=TestAccAzureRMServiceBusNamespacePairing_basic -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
2021/05/10 23:29:37 [DEBUG] not using binary driver name, it's no longer needed
2021/05/10 23:29:37 [DEBUG] not using binary driver name, it's no longer needed
=== RUN TestAccAzureRMServiceBusNamespacePairing_basic
=== PAUSE TestAccAzureRMServiceBusNamespacePairing_basic
=== CONT TestAccAzureRMServiceBusNamespacePairing_basic
--- PASS: TestAccAzureRMServiceBusNamespacePairing_basic (914.15s)
PASS
ok github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/servicebus 914.423s

@ghost ghost removed the waiting-response label May 10, 2021
@1-xtra 1-xtra requested a review from katbyte May 11, 2021 07:23
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 @1-xtra - LGTM 👍

@katbyte katbyte added this to the v2.59.0 milestone May 13, 2021
@1-xtra
Copy link
Contributor Author

1-xtra commented May 13, 2021

Thanks @katbyte - my bad , didn't run-tflint - just done & shall be pushing a commit shortly that fixes the failed check.

I have a vested interest in getting this over the line as a project I'm working on requires it. If anything needs more attention or polishing, just give me a mention & I'm happy to jump in.

@katbyte katbyte merged commit 099a5c0 into hashicorp:master May 14, 2021
katbyte added a commit that referenced this pull request May 14, 2021
@ghost
Copy link

ghost commented May 14, 2021

This has been released in version 2.59.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.59.0"
}
# ... other configuration ...

favoretti pushed a commit to gro1m/terraform-provider-azurerm that referenced this pull request May 26, 2021
…(Service Bus Geo DR) (hashicorp#11638)

Co-authored-by: Dylan Morley <dylanm@asos.com>
favoretti pushed a commit to gro1m/terraform-provider-azurerm that referenced this pull request May 26, 2021
@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 Jun 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.

None yet

3 participants