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_site_recovery_hyperv_replication_policy #20454

Merged
merged 6 commits into from
Feb 20, 2023

Conversation

ziyeqf
Copy link
Contributor

@ziyeqf ziyeqf commented Feb 14, 2023

test

terraform-provider-azurerm ❯ TF_ACC=1 go test -v ./internal/services/recoveryservices -run=TestAccSiteRecoveryReplicationPolicyHyperV_ -timeout=600m
=== RUN   TestAccSiteRecoveryReplicationPolicyHyperV_basic
=== PAUSE TestAccSiteRecoveryReplicationPolicyHyperV_basic
=== RUN   TestAccSiteRecoveryReplicationPolicyHyperV_noSnapshots
=== PAUSE TestAccSiteRecoveryReplicationPolicyHyperV_noSnapshots
=== CONT  TestAccSiteRecoveryReplicationPolicyHyperV_basic
=== CONT  TestAccSiteRecoveryReplicationPolicyHyperV_noSnapshots
--- PASS: TestAccSiteRecoveryReplicationPolicyHyperV_noSnapshots (481.83s)
--- PASS: TestAccSiteRecoveryReplicationPolicyHyperV_basic (492.59s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/recoveryservices      493.819s

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

Thanks @ziyeqf, left some comments in-line, once those are fixed up we can have another look and get this merged!

@ziyeqf ziyeqf changed the title New Resource:azurerm_site_recovery_replication_policy_hyperv New Resource:azurerm_site_recovery_hyperv_replication_policy Feb 15, 2023
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.

Test are failing..

------- Stdout: -------
=== RUN   TestAccSiteRecoveryReplicationPolicyHyperV_basic
=== PAUSE TestAccSiteRecoveryReplicationPolicyHyperV_basic
=== CONT  TestAccSiteRecoveryReplicationPolicyHyperV_basic
    testcase.go:110: Step 1/2 error: Error running pre-apply refresh: exit status 1
        
        Error: Missing required argument
        
          on terraform_plugin_test.tf line 31, in resource "azurerm_site_recovery_hyperv_replication_policy" "test":
          31: resource "azurerm_site_recovery_hyperv_replication_policy" "test" {
        
        The argument "recovery_vault_id" is required, but no definition was found.
        
        Error: Unsupported argument
        
          on terraform_plugin_test.tf line 32, in resource "azurerm_site_recovery_hyperv_replication_policy" "test":
          32:   resource_group_name                                = azurerm_resource_group.test.name
        
        An argument named "resource_group_name" is not expected here.
        
        Error: Unsupported argument
        
          on terraform_plugin_test.tf line 33, in resource "azurerm_site_recovery_hyperv_replication_policy" "test":
          33:   recovery_vault_name                                = azurerm_recovery_services_vault.test.name
        
        An argument named "recovery_vault_name" is not expected here.
--- FAIL: TestAccSiteRecoveryReplicationPolicyHyperV_basic (2.37s)
FAIL

@ziyeqf
Copy link
Contributor Author

ziyeqf commented Feb 17, 2023

@katbyte sorry for that, forgot to update test case...

test after udpate:

terraform-provider-azurerm ❯ TF_ACC=1 go test -v ./internal/services/recoveryservices -run=TestAccSiteRecoveryReplicationPolicyHyperV_ -timeout=600m                 [ tengzh/recovery/hyperv/policy][$][🐹 v1.19.5][⏱ 1m1s][11:21:20]
=== RUN   TestAccSiteRecoveryReplicationPolicyHyperV_basic
=== PAUSE TestAccSiteRecoveryReplicationPolicyHyperV_basic
=== RUN   TestAccSiteRecoveryReplicationPolicyHyperV_noSnapshots
=== PAUSE TestAccSiteRecoveryReplicationPolicyHyperV_noSnapshots
=== CONT  TestAccSiteRecoveryReplicationPolicyHyperV_basic
=== CONT  TestAccSiteRecoveryReplicationPolicyHyperV_noSnapshots
--- PASS: TestAccSiteRecoveryReplicationPolicyHyperV_noSnapshots (474.58s)
--- PASS: TestAccSiteRecoveryReplicationPolicyHyperV_basic (475.15s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/recoveryservices      476.410s

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

Thanks @ziyeqf LGTM 🍀

@stephybun stephybun merged commit 68e0de4 into hashicorp:main Feb 20, 2023
@github-actions github-actions bot added this to the v3.45.0 milestone Feb 20, 2023
stephybun added a commit that referenced this pull request Feb 20, 2023
@github-actions
Copy link

This functionality has been released in v3.45.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 Mar 27, 2023
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