-
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
Adds Resource azurerm_app_service_slot_virtual_network_swift_connection #5916
Adds Resource azurerm_app_service_slot_virtual_network_swift_connection #5916
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.
Hey @cimnine,
I've given this PR a quick review as its a draft (is it ready?) and left some comments inline that should be addressed. Additionally while running the tests i got:
"azurerm/internal/services/web/tests/resource_arm_app_service_slot_virtual_network_association_test.go:178:9: Sprintf format %d reads arg #6, but call has 5 args"
website/docs/r/app_service_virtual_network_swift_connection_slot.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/app_service_virtual_network_swift_connection_slot.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/app_service_virtual_network_swift_connection_slot.html.markdown
Outdated
Show resolved
Hide resolved
Thank's for the early feedback.
Indeed, I'm still validating the proposed change, hence the draft status of this PR.
I have incorporated the feedback and fixed the test so far. Except for the failing test – which was obviously a shortcoming on my side – would there have been any other way than the feedback to learn about these code conventions? I'm only asking because I did look out for a |
The acceptance tests for the modified resources ran successfully on my machine, also the regular test suite. The new resource An early idea was making the |
Just because I was not sure that this is clear: From my point of view this PR is ready to be reviewed and eventually be merged. |
Rebased onto latest master |
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.
Hi @cimnine,
Thanks for the new resource, overall this looks good. I've left some comments inline that once addressed this will be good to merge!
azurerm/internal/services/web/resource_arm_app_service_virtual_network_swift_connection_slot.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/web/resource_arm_app_service_virtual_network_swift_connection_slot.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/web/resource_arm_app_service_virtual_network_swift_connection_slot.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/web/resource_arm_app_service_virtual_network_swift_connection_slot.go
Outdated
Show resolved
Hide resolved
...nternal/services/web/tests/resource_arm_app_service_slot_virtual_network_association_test.go
Outdated
Show resolved
Hide resolved
...nternal/services/web/tests/resource_arm_app_service_slot_virtual_network_association_test.go
Outdated
Show resolved
Hide resolved
I have implemented all but one requested change, for which I've made my case. The branch is also rebased onto the latest master. |
Rebased onto master. |
Rebased onto |
Just wondering where we are with this. Judging by the replies it's awaiting your review @katbyte |
Any updates on this @katbyte ? |
This is done by the maintainers after the PR is merged.
The examples for the `virtual_network_swift_connect` and `virtual_network_swift_connect_slot` have been updated to be nicer to read. I.e. everything _test_ has been replaced by _example_.
Fixes the following error in the tests: "azurerm/internal/services/web/tests/resource_arm_app_service_slot_virtual_network_association_test.go:178:9: Sprintf format %d reads arg #6, but call has 5 args"
…nSlot ... to TestAccAzureRMAppServiceSlotVirtualNetworkSwiftConnection. The reason is that otherwise it's not possible to just run the test for `TestAccAzureRMAppServiceVirtualNetworkSwiftConnection`, as the `TestAccAzureRMAppServiceVirtualNetworkSwiftConnectionSlot` also matches that filter.
The value `slot.Name` contains "app_service_name/slot_name". If this were retained as `slot_name` in the Terraform state then terraform would try to re-create the resource in every run. Thankfully, this was caught during the integration tests.
IMO it's ready to merge. I've rebased just now once more onto |
azurerm/internal/services/web/parse/slot_virtual_network_swift_connection.go
Outdated
Show resolved
Hide resolved
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 @cimnine!
I've pushed some updates while I had opportunity to resolve some todo's on the resource you based your change on and reflected those in the new resource too. I'm on vacation today, so I'll run the tests on CI and merge when I get back Monday if one of the team doesn't get to it before then.
Thanks again
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.
Lgtm
Thanks for merging 🥳 |
This has been released in version 2.18.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.18.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! |
Adds a new resource
azurerm_app_service_virtual_network_swift_connection_slot
which uses the corresponding Azure API and is named after it.Fixes #5458
Sponsored by nxt Engineering.