Created
January 28, 2021 00:00
-
-
Save MitchDrage/c4dfcc2bb095ae287719d464c8c3ff97 to your computer and use it in GitHub Desktop.
azurerm_recoveryservices acctests failing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mitch@workstation:/mnt/c/Users/mitch/go/terraform-provider-azurerm$ make acctests SERVICE='recoveryservices' | |
==> 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 -v ./azurerm/internal/services/recoveryservices/ -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc" | |
=== RUN TestAccBackupProtectionContainerStorageAccount_basic | |
=== PAUSE TestAccBackupProtectionContainerStorageAccount_basic | |
=== RUN TestAccBackupProtectionPolicyFileShare_basicDaily | |
=== PAUSE TestAccBackupProtectionPolicyFileShare_basicDaily | |
=== RUN TestAccBackupProtectionPolicyFileShare_requiresImport | |
=== PAUSE TestAccBackupProtectionPolicyFileShare_requiresImport | |
=== RUN TestAccBackupProtectionPolicyFileShare_updateDaily | |
=== PAUSE TestAccBackupProtectionPolicyFileShare_updateDaily | |
=== RUN TestAccDataSourceBackupPolicyVm_basic | |
=== PAUSE TestAccDataSourceBackupPolicyVm_basic | |
=== RUN TestAccBackupProtectionPolicyVM_basicDaily | |
=== PAUSE TestAccBackupProtectionPolicyVM_basicDaily | |
=== RUN TestAccBackupProtectionPolicyVM_withInstantRestoreRetentionRangeUpdate | |
=== PAUSE TestAccBackupProtectionPolicyVM_withInstantRestoreRetentionRangeUpdate | |
=== RUN TestAccBackupProtectionPolicyVM_requiresImport | |
=== PAUSE TestAccBackupProtectionPolicyVM_requiresImport | |
=== RUN TestAccBackupProtectionPolicyVM_basicWeekly | |
=== PAUSE TestAccBackupProtectionPolicyVM_basicWeekly | |
=== RUN TestAccBackupProtectionPolicyVM_completeDaily | |
=== PAUSE TestAccBackupProtectionPolicyVM_completeDaily | |
=== RUN TestAccBackupProtectionPolicyVM_completeWeekly | |
=== PAUSE TestAccBackupProtectionPolicyVM_completeWeekly | |
=== RUN TestAccBackupProtectionPolicyVM_updateDaily | |
=== PAUSE TestAccBackupProtectionPolicyVM_updateDaily | |
=== RUN TestAccBackupProtectionPolicyVM_updateWeekly | |
=== PAUSE TestAccBackupProtectionPolicyVM_updateWeekly | |
=== RUN TestAccBackupProtectionPolicyVM_updateDailyToWeekly | |
=== PAUSE TestAccBackupProtectionPolicyVM_updateDailyToWeekly | |
=== RUN TestAccBackupProtectionPolicyVM_updateWeeklyToDaily | |
=== PAUSE TestAccBackupProtectionPolicyVM_updateWeeklyToDaily | |
=== RUN TestAccBackupProtectionPolicyVM_updateWeeklyToPartial | |
=== PAUSE TestAccBackupProtectionPolicyVM_updateWeeklyToPartial | |
=== RUN TestAccBackupProtectedFileShare_basic | |
=== PAUSE TestAccBackupProtectedFileShare_basic | |
=== RUN TestAccBackupProtectedFileShare_multiple | |
=== PAUSE TestAccBackupProtectedFileShare_multiple | |
=== RUN TestAccBackupProtectedFileShare_requiresImport | |
=== PAUSE TestAccBackupProtectedFileShare_requiresImport | |
=== RUN TestAccBackupProtectedFileShare_updateBackupPolicyId | |
=== PAUSE TestAccBackupProtectedFileShare_updateBackupPolicyId | |
=== RUN TestAccBackupProtectedVm_basic | |
=== PAUSE TestAccBackupProtectedVm_basic | |
=== RUN TestAccBackupProtectedVm_requiresImport | |
=== PAUSE TestAccBackupProtectedVm_requiresImport | |
=== RUN TestAccBackupProtectedVm_separateResourceGroups | |
=== PAUSE TestAccBackupProtectedVm_separateResourceGroups | |
=== RUN TestAccBackupProtectedVm_updateBackupPolicyId | |
=== PAUSE TestAccBackupProtectedVm_updateBackupPolicyId | |
=== RUN TestAccDataSourceAzureRMRecoveryServicesVault_basic | |
=== PAUSE TestAccDataSourceAzureRMRecoveryServicesVault_basic | |
=== RUN TestAccRecoveryServicesVault_basic | |
=== PAUSE TestAccRecoveryServicesVault_basic | |
=== RUN TestAccRecoveryServicesVault_complete | |
=== PAUSE TestAccRecoveryServicesVault_complete | |
=== RUN TestAccRecoveryServicesVault_update | |
=== PAUSE TestAccRecoveryServicesVault_update | |
=== RUN TestAccRecoveryServicesVault_requiresImport | |
=== PAUSE TestAccRecoveryServicesVault_requiresImport | |
=== RUN TestAccRecoveryServicesVault_basicWithIdentity | |
=== PAUSE TestAccRecoveryServicesVault_basicWithIdentity | |
=== RUN TestAccSiteRecoveryFabric_basic | |
=== PAUSE TestAccSiteRecoveryFabric_basic | |
=== RUN TestAccSiteRecoveryNetworkMapping_basic | |
=== PAUSE TestAccSiteRecoveryNetworkMapping_basic | |
=== RUN TestAccSiteRecoveryProtectionContainerMapping_basic | |
=== PAUSE TestAccSiteRecoveryProtectionContainerMapping_basic | |
=== RUN TestAccSiteRecoveryProtectionContainer_basic | |
=== PAUSE TestAccSiteRecoveryProtectionContainer_basic | |
=== RUN TestAccSiteRecoveryReplicatedVm_basic | |
=== PAUSE TestAccSiteRecoveryReplicatedVm_basic | |
=== RUN TestAccSiteRecoveryReplicationPolicy_basic | |
=== PAUSE TestAccSiteRecoveryReplicationPolicy_basic | |
=== CONT TestAccBackupProtectionContainerStorageAccount_basic | |
=== CONT TestAccBackupProtectedFileShare_updateBackupPolicyId | |
=== CONT TestAccBackupProtectionPolicyVM_completeWeekly | |
=== CONT TestAccBackupProtectionPolicyVM_basicDaily | |
=== CONT TestAccBackupProtectedFileShare_requiresImport | |
=== CONT TestAccBackupProtectionPolicyVM_completeDaily | |
=== CONT TestAccBackupProtectionPolicyVM_basicWeekly | |
=== CONT TestAccBackupProtectionPolicyVM_requiresImport | |
testing.go:677: Step 1, expected error: | |
config is invalid: 3 problems: | |
- Reference to undeclared resource: A managed resource "azurerm_backup_policy_vm" "test" has not been declared in the root module. | |
- Reference to undeclared resource: A managed resource "azurerm_backup_policy_vm" "test" has not been declared in the root module. | |
- Reference to undeclared resource: A managed resource "azurerm_backup_policy_vm" "test" has not been declared in the root module. | |
To match: | |
to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_backup_policy_vm" for more information. | |
testing.go:745: Error destroying resource! WARNING: Dangling resources | |
may exist. The full state and error is shown below. | |
Error: config is invalid: 3 problems: | |
- Reference to undeclared resource: A managed resource "azurerm_backup_policy_vm" "test" has not been declared in the root module. | |
- Reference to undeclared resource: A managed resource "azurerm_backup_policy_vm" "test" has not been declared in the root module. | |
- Reference to undeclared resource: A managed resource "azurerm_backup_policy_vm" "test" has not been declared in the root module. | |
State: azurerm_backup_policy_vm.test: | |
ID = /subscriptions/a3f995fb-c54d-4677-b252-9a47dee59894/resourceGroups/acctestRG-backup-210128085934572994/providers/Microsoft.RecoveryServices/vaults/acctest-210128085934572994/backupPolicies/acctest-210128085934572994 | |
provider = provider.azurerm | |
backup.# = 1 | |
backup.0.frequency = Daily | |
backup.0.time = 23:00 | |
backup.0.weekdays.# = 0 | |
instant_restore_retention_days = 2 | |
name = acctest-210128085934572994 | |
recovery_vault_name = acctest-210128085934572994 | |
resource_group_name = acctestRG-backup-210128085934572994 | |
retention_daily.# = 1 | |
retention_daily.0.count = 10 | |
retention_monthly.# = 0 | |
retention_weekly.# = 0 | |
retention_yearly.# = 0 | |
tags.% = 0 | |
timezone = UTC | |
Dependencies: | |
azurerm_recovery_services_vault.test | |
azurerm_resource_group.test | |
azurerm_recovery_services_vault.test: | |
ID = /subscriptions/a3f995fb-c54d-4677-b252-9a47dee59894/resourceGroups/acctestRG-backup-210128085934572994/providers/Microsoft.RecoveryServices/vaults/acctest-210128085934572994 | |
provider = provider.azurerm | |
identity.# = 0 | |
location = eastus | |
name = acctest-210128085934572994 | |
resource_group_name = acctestRG-backup-210128085934572994 | |
sku = Standard | |
soft_delete_enabled = false | |
tags.% = 0 | |
Dependencies: | |
azurerm_resource_group.test | |
azurerm_resource_group.test: | |
ID = /subscriptions/a3f995fb-c54d-4677-b252-9a47dee59894/resourceGroups/acctestRG-backup-210128085934572994 | |
provider = provider.azurerm | |
location = eastus | |
name = acctestRG-backup-210128085934572994 | |
tags.% = 0 | |
--- FAIL: TestAccBackupProtectionPolicyVM_requiresImport (71.51s) | |
=== CONT TestAccBackupProtectionPolicyVM_withInstantRestoreRetentionRangeUpdate | |
--- PASS: TestAccBackupProtectionPolicyVM_completeWeekly (164.34s) | |
=== CONT TestAccRecoveryServicesVault_requiresImport | |
--- PASS: TestAccBackupProtectionPolicyVM_basicDaily (164.34s) | |
=== CONT TestAccSiteRecoveryReplicationPolicy_basic | |
--- PASS: TestAccBackupProtectionPolicyVM_completeDaily (164.46s) | |
=== CONT TestAccSiteRecoveryReplicatedVm_basic | |
--- PASS: TestAccBackupProtectionPolicyVM_basicWeekly (164.51s) | |
=== CONT TestAccSiteRecoveryProtectionContainer_basic | |
testing.go:684: Step 0 error: errors during apply: | |
Error: Error checking for presence of existing site recovery fabric acctest-fabric-210128085934575979 (vault acctest-vault-210128085934575979): siterecovery.ReplicationFabricsClient#Get: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="The resource with ID 1496101568983257153 isn't registered with the service." Details=[{"activityId":"c08ac086-2e65-2161-b068-918be0cf3096","clientRequestId":"f1f0d8ed-eca9-42f2-bbf6-f19d69cb1667","code":"SubscriptionIdNotRegisteredWithSrs","message":"The resource with ID 1496101568983257153 isn't registered with the service.","possibleCauses":"The operation failed due to an internal error.","recommendedAction":"Retry the last action. If the issue persists, contact Support."}] | |
on /tmp/tf-test306335779/main.tf line 20: | |
(source code not available) | |
=== CONT TestAccSiteRecoveryReplicationPolicy_basic | |
testing.go:684: Step 0 error: errors during apply: | |
Error: Error checking for presence of existing site recovery replication policy acctest-policy-210128085934573146: siterecovery.ReplicationPoliciesClient#Get: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="The resource with ID 3763789874264380731 isn't registered with the service." Details=[{"activityId":"c08ac086-2e65-2161-b068-918be0cf3096","clientRequestId":"25171c10-6033-4f27-b846-946c1713cd13","code":"SubscriptionIdNotRegisteredWithSrs","message":"The resource with ID 3763789874264380731 isn't registered with the service.","possibleCauses":"The operation failed due to an internal error.","recommendedAction":"Retry the last action. If the issue persists, contact Support."}] | |
on /tmp/tf-test585322761/main.tf line 20: | |
(source code not available) | |
=== CONT TestAccSiteRecoveryReplicatedVm_basic | |
testing.go:684: Step 0 error: errors during apply: | |
Error: Error checking for presence of existing site recovery fabric acctest-fabric1-210128085934570025 (vault acctest-vault-210128085934570025): siterecovery.ReplicationFabricsClient#Get: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="The resource with ID 4674852554049101870 isn't registered with the service." Details=[{"activityId":"c08ac086-2e65-2161-b068-918be0cf3096","clientRequestId":"6706d3c7-3e4b-4528-ae5a-5df18735feeb","code":"SubscriptionIdNotRegisteredWithSrs","message":"The resource with ID 4674852554049101870 isn't registered with the service.","possibleCauses":"The operation failed due to an internal error.","recommendedAction":"Retry the last action. If the issue persists, contact Support."}] | |
on /tmp/tf-test116331220/main.tf line 25: | |
(source code not available) | |
Error: Error checking for presence of existing site recovery replication policy acctest-policy-210128085934570025: siterecovery.ReplicationPoliciesClient#Get: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="The resource with ID 4674852554049101870 isn't registered with the service." Details=[{"activityId":"c08ac086-2e65-2161-b068-918be0cf3096","clientRequestId":"248d2f33-0dcd-4890-9f2d-2ea5506ccc52","code":"SubscriptionIdNotRegisteredWithSrs","message":"The resource with ID 4674852554049101870 isn't registered with the service.","possibleCauses":"The operation failed due to an internal error.","recommendedAction":"Retry the last action. If the issue persists, contact Support."}] | |
on /tmp/tf-test116331220/main.tf line 54: | |
(source code not available) | |
--- FAIL: TestAccSiteRecoveryProtectionContainer_basic (108.01s) | |
=== CONT TestAccSiteRecoveryProtectionContainerMapping_basic | |
--- FAIL: TestAccSiteRecoveryReplicationPolicy_basic (108.34s) | |
=== CONT TestAccSiteRecoveryNetworkMapping_basic | |
--- FAIL: TestAccSiteRecoveryReplicatedVm_basic (121.82s) | |
=== CONT TestAccRecoveryServicesVault_basicWithIdentity | |
--- PASS: TestAccRecoveryServicesVault_requiresImport (149.40s) | |
=== CONT TestAccBackupProtectionPolicyVM_updateWeeklyToDaily | |
--- PASS: TestAccBackupProtectionPolicyVM_withInstantRestoreRetentionRangeUpdate (326.42s) | |
=== CONT TestAccBackupProtectedFileShare_multiple | |
--- PASS: TestAccRecoveryServicesVault_basicWithIdentity (132.47s) | |
=== CONT TestAccBackupProtectedFileShare_basic | |
--- PASS: TestAccBackupProtectionContainerStorageAccount_basic (426.74s) | |
=== CONT TestAccBackupProtectionPolicyVM_updateWeeklyToPartial | |
--- PASS: TestAccBackupProtectionPolicyVM_updateWeeklyToDaily (222.25s) | |
=== CONT TestAccDataSourceAzureRMRecoveryServicesVault_basic | |
--- PASS: TestAccBackupProtectedFileShare_requiresImport (581.47s) | |
=== CONT TestAccRecoveryServicesVault_update | |
--- PASS: TestAccBackupProtectionPolicyVM_updateWeeklyToPartial (218.49s) | |
=== CONT TestAccRecoveryServicesVault_complete | |
--- PASS: TestAccDataSourceAzureRMRecoveryServicesVault_basic (132.12s) | |
=== CONT TestAccRecoveryServicesVault_basic | |
--- PASS: TestAccBackupProtectedFileShare_updateBackupPolicyId (668.99s) | |
=== CONT TestAccSiteRecoveryFabric_basic | |
--- PASS: TestAccSiteRecoveryNetworkMapping_basic (499.74s) | |
=== CONT TestAccBackupProtectionPolicyFileShare_updateDaily | |
--- PASS: TestAccRecoveryServicesVault_complete (127.74s) | |
=== CONT TestAccDataSourceBackupPolicyVm_basic | |
--- PASS: TestAccRecoveryServicesVault_basic (132.23s) | |
=== CONT TestAccBackupProtectedVm_separateResourceGroups | |
--- PASS: TestAccRecoveryServicesVault_update (218.88s) | |
=== CONT TestAccBackupProtectedVm_requiresImport | |
--- PASS: TestAccBackupProtectedFileShare_basic (474.79s) | |
=== CONT TestAccBackupProtectedVm_updateBackupPolicyId | |
testing.go:684: Step 0 error: /tmp/tf-test238935057/main.tf:139,1-50: Duplicate resource "azurerm_recovery_services_vault" configuration; A azurerm_recovery_services_vault resource named "test" was already declared at /tmp/tf-test238935057/main.tf:114,1-50. Resource names must be unique per type in each module., and 2 other diagnostic(s) | |
--- FAIL: TestAccBackupProtectedVm_updateBackupPolicyId (0.00s) | |
=== CONT TestAccBackupProtectedVm_basic | |
--- PASS: TestAccSiteRecoveryProtectionContainerMapping_basic (621.62s) | |
=== CONT TestAccBackupProtectionPolicyVM_updateWeekly | |
--- PASS: TestAccBackupProtectedFileShare_multiple (496.60s) | |
=== CONT TestAccBackupProtectionPolicyVM_updateDaily | |
--- PASS: TestAccSiteRecoveryFabric_basic (262.60s) | |
=== CONT TestAccBackupProtectionPolicyVM_updateDailyToWeekly | |
testing.go:684: Step 0 error: errors during apply: | |
Error: A resource with the ID "/subscriptions/a3f995fb-c54d-4677-b252-9a47dee59894/resourceGroups/acctestRG-backup-210128085934577907" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_resource_group" for more information. | |
on /tmp/tf-test153722575/main.tf line 7: | |
(source code not available) | |
--- FAIL: TestAccBackupProtectionPolicyVM_updateDailyToWeekly (10.23s) | |
=== CONT TestAccBackupProtectionPolicyFileShare_requiresImport | |
--- PASS: TestAccDataSourceBackupPolicyVm_basic (169.45s) | |
=== CONT TestAccBackupProtectionPolicyFileShare_basicDaily | |
--- PASS: TestAccBackupProtectionPolicyFileShare_updateDaily (218.57s) | |
--- PASS: TestAccBackupProtectionPolicyFileShare_basicDaily (153.42s) | |
--- PASS: TestAccBackupProtectionPolicyVM_updateWeekly (209.50s) | |
--- PASS: TestAccBackupProtectionPolicyFileShare_requiresImport (167.42s) | |
--- PASS: TestAccBackupProtectionPolicyVM_updateDaily (215.06s) | |
--- PASS: TestAccBackupProtectedVm_requiresImport (520.41s) | |
--- PASS: TestAccBackupProtectedVm_separateResourceGroups (561.06s) | |
--- PASS: TestAccBackupProtectedVm_basic (577.84s) | |
FAIL | |
FAIL github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/recoveryservices 1471.457s | |
FAIL | |
make: *** [GNUmakefile:107: acctests] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment