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

Support multiple alternative locations for azurerm_api_management #4175

Merged

Conversation

pdecat
Copy link
Contributor

@pdecat pdecat commented Aug 28, 2019

Resolves #4171

@ghost ghost added the size/XS label Aug 28, 2019
@nexxai
Copy link
Contributor

nexxai commented Aug 28, 2019

This change looks like it adds a second location, but in the original requester's post, he gives an example of 3 additional_location blocks. Is there a way to make this more flexible, rather than just hard coding a set number of them?

@pdecat
Copy link
Contributor Author

pdecat commented Aug 28, 2019

This changes allows any number of alternative locations.

It is just the acceptance test that tests with two alternative locations.

@nexxai
Copy link
Contributor

nexxai commented Aug 28, 2019

Man, I think I need my coffee. Can't believe I missed that. Sorry.

@pdecat
Copy link
Contributor Author

pdecat commented Aug 28, 2019

Acceptance test result:

# make testacc TEST=./azurerm TESTARGS='-run=TestAccAzureRMApiManagement_complete'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./azurerm -v -run=TestAccAzureRMApiManagement_complete -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccAzureRMApiManagement_complete
=== PAUSE TestAccAzureRMApiManagement_complete
=== CONT  TestAccAzureRMApiManagement_complete
--- PASS: TestAccAzureRMApiManagement_complete (1571.92s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm       1571.951s

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @pdecat

Thanks for this PR - taking a look through this LGTM - I'll kick off the tests shortly 👍

Thanks!

azurerm/provider_test.go Show resolved Hide resolved
@tombuildsstuff tombuildsstuff added this to the v1.34.0 milestone Aug 29, 2019
@tombuildsstuff
Copy link
Contributor

tombuildsstuff commented Aug 29, 2019

Tests pass:

Screenshot 2019-08-29 at 15 57 08

Thanks again @pdecat :)

@tombuildsstuff tombuildsstuff merged commit b412970 into hashicorp:master Aug 29, 2019
tombuildsstuff added a commit that referenced this pull request Aug 29, 2019
@pdecat pdecat deleted the api_management_additional_locations branch August 29, 2019 15:15
@pdecat
Copy link
Contributor Author

pdecat commented Aug 29, 2019

Great, thanks @tombuildsstuff!

@ghost
Copy link

ghost commented Sep 18, 2019

This has been released in version 1.34.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 = "~> 1.34.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Sep 29, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 29, 2019
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.

Unable to define multiple additional_location on azurerm_api_management
6 participants