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

azurerm_express_route_circuit: fix acctest (actually a bug) #7753

Merged
merged 2 commits into from
Jul 16, 2020

Conversation

magodo
Copy link
Collaborator

@magodo magodo commented Jul 15, 2020

Express Route Circuit appears to be eventually consisitent on creation (maybe only when recreated), which is tracked in issue: Azure/azure-rest-api-specs#10148.

Test Result

💢 make testacc TEST=./azurerm/internal/services/network/tests TESTARGS='-run TestAccAzureRMExpressRouteCircuit_bandwidthReduction'

==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test ./azurerm/internal/services/network/tests -v -run TestAccAzureRMExpressRouteCircuit_bandwidthReduction -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN TestAccAzureRMExpressRouteCircuit_bandwidthReduction
--- PASS: TestAccAzureRMExpressRouteCircuit_bandwidthReduction (332.62s)
PASS
ok github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/network/tests 332.661s

Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Hi @magodo

Thanks for this update to work around the issue you've raised on the api-specs. The change LGTM, so if you can goimports the resource file to allow travis to pass the build I think we should be good to merge.

@magodo
Copy link
Collaborator Author

magodo commented Jul 16, 2020

@jackofallops Thank you for granting my PR, I have passed CI now.

@jackofallops
Copy link
Member

Thanks @magodo - Looking good now. I was about to run the tests for this but have found that there's a nil panic that will prevent this part of the acctest suite running completely. I'm going to fix that up first, then we'll (hopefully) be able to test this properly.

@jackofallops jackofallops added this to the v2.20.0 milestone Jul 16, 2020
@jackofallops
Copy link
Member

Update: panic fix merged, this is now running through testing.

@jackofallops
Copy link
Member

Tests passing:
image

@jackofallops jackofallops modified the milestones: v2.20.0, v2.19.0 Jul 16, 2020
@jackofallops jackofallops merged commit 1ca7b47 into hashicorp:master Jul 16, 2020
jackofallops added a commit that referenced this pull request Jul 16, 2020
@ghost
Copy link

ghost commented Jul 16, 2020

This has been released in version 2.19.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.19.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Aug 15, 2020

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 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Aug 15, 2020
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