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_vpn_site #8896

Merged
merged 5 commits into from
Oct 27, 2020
Merged

Conversation

magodo
Copy link
Collaborator

@magodo magodo commented Oct 15, 2020

Test Result

💤 make testacc TEST=./azurerm/internal/services/network/tests TESTARGS='-run TestAccAzureRMVpnSite_'

==> 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 TestAccAzureRMVpnSite_ -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccAzureRMVpnSite_basic
=== PAUSE TestAccAzureRMVpnSite_basic
=== RUN   TestAccAzureRMVpnSite_complete
=== PAUSE TestAccAzureRMVpnSite_complete
=== RUN   TestAccAzureRMVpnSite_update
=== PAUSE TestAccAzureRMVpnSite_update
=== RUN   TestAccAzureRMVpnSite_requiresImport
=== PAUSE TestAccAzureRMVpnSite_requiresImport
=== CONT  TestAccAzureRMVpnSite_basic
=== CONT  TestAccAzureRMVpnSite_requiresImport
=== CONT  TestAccAzureRMVpnSite_update
=== CONT  TestAccAzureRMVpnSite_complete
--- PASS: TestAccAzureRMVpnSite_basic (202.36s)
--- PASS: TestAccAzureRMVpnSite_complete (202.49s)
--- PASS: TestAccAzureRMVpnSite_requiresImport (214.89s)
--- PASS: TestAccAzureRMVpnSite_update (327.61s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/network/tests       327.645s

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 @magodo - i've given this a review and left some comments inline



resource "azurerm_virtual_wan" "test" {
name = "acctest-vwan-%d"
Copy link
Collaborator

Choose a reason for hiding this comment

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

if capitals are allowed here could we use some?

Suggested change
name = "acctest-vwan-%d"
name = "acctest-VWan-%d"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have used the mixed case for the name of vpn site resource, but not for these dependent resources, since they should be tested in their own test case. Then once some service changed the naming constraint, we can identify that from the exact test case of that affected resource, which can be easier for us to identify the cause. WDYT?

features {}
}
resource "azurerm_resource_group" "test" {
name = "acctest-rg-%d"
Copy link
Collaborator

Choose a reason for hiding this comment

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

We always use acctestRG

Suggested change
name = "acctest-rg-%d"
name = "acctestRG-network-%d"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

same as above.

azurerm/internal/services/network/vpn_site_resource.go Outdated Show resolved Hide resolved
azurerm/internal/services/network/vpn_site_resource.go Outdated Show resolved Hide resolved
azurerm/internal/services/network/vpn_site_resource.go Outdated Show resolved Hide resolved
azurerm/internal/services/network/vpn_site_resource.go Outdated Show resolved Hide resolved
azurerm/internal/services/network/vpn_site_resource.go Outdated Show resolved Hide resolved
azurerm/internal/services/network/vpn_site_resource.go Outdated Show resolved Hide resolved
website/docs/r/vpn_site.html.markdown Show resolved Hide resolved
azurerm/internal/services/network/vpn_site_resource.go Outdated Show resolved Hide resolved
@magodo
Copy link
Collaborator Author

magodo commented Oct 27, 2020

@katbyte Thank you for your feedback! I have simplified the schema namings per your suggestions. Please take another look!

💢 make testacc TEST=./azurerm/internal/services/network/tests TESTARGS='-run TestAccAzureRMVpnSite' 
==> 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 TestAccAzureRMVpnSite -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccAzureRMVpnSite_basic
=== PAUSE TestAccAzureRMVpnSite_basic
=== RUN   TestAccAzureRMVpnSite_complete
=== PAUSE TestAccAzureRMVpnSite_complete
=== RUN   TestAccAzureRMVpnSite_update
=== PAUSE TestAccAzureRMVpnSite_update
=== RUN   TestAccAzureRMVpnSite_requiresImport
=== PAUSE TestAccAzureRMVpnSite_requiresImport
=== CONT  TestAccAzureRMVpnSite_basic
=== CONT  TestAccAzureRMVpnSite_requiresImport
=== CONT  TestAccAzureRMVpnSite_update
=== CONT  TestAccAzureRMVpnSite_complete
--- PASS: TestAccAzureRMVpnSite_requiresImport (200.50s)
--- PASS: TestAccAzureRMVpnSite_basic (222.92s)
--- PASS: TestAccAzureRMVpnSite_complete (229.03s)
--- PASS: TestAccAzureRMVpnSite_update (385.93s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/network/tests       385.975s

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 @magodo - aside from one comment this LGTM 👍

website/docs/r/vpn_site.html.markdown Outdated Show resolved Hide resolved
@katbyte katbyte added this to the v2.34.0 milestone Oct 27, 2020
@katbyte katbyte merged commit b30d119 into hashicorp:master Oct 27, 2020
katbyte added a commit that referenced this pull request Oct 27, 2020
@ghost
Copy link

ghost commented Oct 29, 2020

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

@ghost
Copy link

ghost commented Nov 27, 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 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Nov 27, 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.

3 participants