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_virtual_desktop_application #12077

Merged
merged 9 commits into from
Jun 17, 2021
Merged

New Resource azurerm_virtual_desktop_application #12077

merged 9 commits into from
Jun 17, 2021

Conversation

alexwilcox9
Copy link
Contributor

Resolves #11722

I'll mark this no longer a draft when I have tests and documentation in place.
Also do I need the schema migration functions? I added them as all the other desktop virtualization resources have one but I wasn't sure if this is needed for a brand new resource?

Thanks

@ghost ghost added size/XL labels Jun 6, 2021
@ghost ghost added size/XXL and removed size/XL labels Jun 6, 2021
@SebRosander
Copy link
Contributor

@alexwilcox9 do you know when you will have time to finish this off? Have a use-case for this and I'm eager to get it into the provider and don't want to supersede your work by opening yet another PR for this :)

@alexwilcox9
Copy link
Contributor Author

@SebRosander hopefully won't be too long now, just added some tests and they are passing which is a good start
Just as a heads up I'm not looking to cover off MSIX applications in this PR as that needs an MSIX package resource created as well

$ TF_ACC=1 go test -v -timeout=2h ./azurerm/internal/services/desktopvirtualization/virtual_desktop_application_resource_test.go
2021/06/15 17:50:37 [DEBUG] not using binary driver name, it's no longer needed
2021/06/15 17:50:37 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccVirtualDesktopApplication_basic
=== PAUSE TestAccVirtualDesktopApplication_basic
=== RUN   TestAccVirtualDesktopApplication_complete
=== PAUSE TestAccVirtualDesktopApplication_complete
=== RUN   TestAccVirtualDesktopApplication_update
=== PAUSE TestAccVirtualDesktopApplication_update
=== RUN   TestAccVirtualDesktopApplication_requiresImport
=== PAUSE TestAccVirtualDesktopApplication_requiresImport
=== CONT  TestAccVirtualDesktopApplication_basic
=== CONT  TestAccVirtualDesktopApplication_requiresImport
=== CONT  TestAccVirtualDesktopApplication_complete
=== CONT  TestAccVirtualDesktopApplication_update
--- PASS: TestAccVirtualDesktopApplication_complete (105.53s)
--- PASS: TestAccVirtualDesktopApplication_basic (106.64s)
--- PASS: TestAccVirtualDesktopApplication_requiresImport (123.00s)
--- PASS: TestAccVirtualDesktopApplication_update (180.66s)
PASS
ok      command-line-arguments  180.764s

Just got to do the documentation and I'll mark this ready for review

@SebRosander
Copy link
Contributor

@alexwilcox9 Amazing! Great work, really appreciated. No worries about MSIX, we are not there yet.

@alexwilcox9 alexwilcox9 marked this pull request as ready for review June 15, 2021 17:12
@alexwilcox9 alexwilcox9 changed the title Add support for WVD Applications New Resource azurerm_virtual_desktop_application Jun 15, 2021
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.

Thanskk for the PR @alexwilcox9! overall this looks good, i've left some comments inline and no, we don't need a migration for a new resource :) i think this will be good to merge once my comments are addressed and tests pass!

website/docs/r/virtual_desktop_application.html.markdown Outdated Show resolved Hide resolved
website/docs/r/virtual_desktop_application.html.markdown Outdated Show resolved Hide resolved
@katbyte katbyte added this to the v2.64.0 milestone Jun 15, 2021
@alexwilcox9 alexwilcox9 deleted the wvd-application branch June 16, 2021 10:12
@alexwilcox9 alexwilcox9 restored the wvd-application branch June 16, 2021 10:12
@alexwilcox9 alexwilcox9 reopened this Jun 16, 2021
@alexwilcox9 alexwilcox9 requested a review from katbyte June 16, 2021 10:49
@alexwilcox9
Copy link
Contributor Author

Thanks for the review @katbyte I've made the changes you suggested and resolved the linting issue
Tests are still looking good, hopefully this is good to go now

$ TF_ACC=1 go test -v -timeout=2h ./azurerm/internal/services/desktopvirtualization/virtual_desktop_application_resource_test.go 
2021/06/16 11:44:43 [DEBUG] not using binary driver name, it's no longer needed
2021/06/16 11:44:43 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccVirtualDesktopApplication_basic
=== PAUSE TestAccVirtualDesktopApplication_basic
=== RUN   TestAccVirtualDesktopApplication_complete
=== PAUSE TestAccVirtualDesktopApplication_complete
=== RUN   TestAccVirtualDesktopApplication_update
=== PAUSE TestAccVirtualDesktopApplication_update
=== RUN   TestAccVirtualDesktopApplication_requiresImport
=== PAUSE TestAccVirtualDesktopApplication_requiresImport
=== CONT  TestAccVirtualDesktopApplication_basic
=== CONT  TestAccVirtualDesktopApplication_requiresImport
=== CONT  TestAccVirtualDesktopApplication_update
=== CONT  TestAccVirtualDesktopApplication_complete
--- PASS: TestAccVirtualDesktopApplication_complete (108.81s)
--- PASS: TestAccVirtualDesktopApplication_basic (109.07s)
--- PASS: TestAccVirtualDesktopApplication_requiresImport (128.60s)
--- PASS: TestAccVirtualDesktopApplication_update (187.11s)
PASS
ok      command-line-arguments  187.223s

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 @alexwilcox9 - LGTM 🍰

@katbyte katbyte merged commit 074f80b into hashicorp:master Jun 17, 2021
katbyte added a commit that referenced this pull request Jun 17, 2021
@github-actions
Copy link

This functionality has been released in v2.64.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 2021
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.

Support for WVD Applications
3 participants