-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/azurerm: added local network gateway resource #4342
Conversation
Hi @aznashwan! This looks good - much easier to add resources now the base work is in! In order to keep Terraform in a state where it can be released, could you consider adding acceptance tests (in this style) and resource documentation (like this)? |
79f0581
to
5b1b6a1
Compare
@@ -13,13 +13,18 @@ | |||
<li<%= sidebar_current(/^docs-azurerm-resource/) %>> | |||
<a href="#">Resources</a> | |||
<ul class="nav nav-visible"> | |||
<li<%= sidebar_current("docs-azure-resource-resource-group") %>> | |||
<li<%= sidebar_current("docs-azurerm-resource-resource-group") %>> |
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.
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.
👍 good catch!
5b1b6a1
to
42e28f7
Compare
Hi @aznashwan! Thanks for adding and fixing up the tests. However, running the new local network gateway acceptance tests causes a panic:
|
|
||
// fetch the 'address_space_prefix'es: | ||
prefixes := []string{} | ||
for _, pref := range d.Get("addres_space").([]interface{}) { |
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.
This is likely causing the panic mentioned below. Should be address_space
I think?
Hi @aznashwan! Thanks for your work on this. I've submitted a pull request back to your branch which makes the acceptance tests pass and matches the patterns established by the exemplar resources. If you could review the changes, verify them for yourself by running the tests, and update here that would be great! The diffs should give a good idea of what is needed for the other open resource PRs as well. Thanks! |
This diff represents the changes necessary to make local network gateway tests pass: - Parse the resource ID instead of relying on attributes - Remove unecessary logging (which is handled via the autorest wrapper) - Resource GUID is removed - if this is actually required for anything we may need to find a way to supress it during apply, as we get spurious diffs in plans otherwise. - Various typos fixed.
de99a23
to
008dc97
Compare
@jen20: thanks for the updates; they have been picked in here. |
Thanks @aznashwan! Happy New Year! |
provider/azure: added local network gateway resource
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
No description provided.