-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Conversation
There was a problem hiding this 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" |
There was a problem hiding this comment.
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?
name = "acctest-vwan-%d" | |
name = "acctest-VWan-%d" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We always use acctestRG
name = "acctest-rg-%d" | |
name = "acctestRG-network-%d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above.
@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 |
There was a problem hiding this 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 👍
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 ... |
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! |
Test Result