Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/aws_backup_selection: Use TypeSet for resources attribute to…
… prevent ordering issues and aws_partition/aws_region data sources in testing to prevent invalid ARN errors Previous output from acceptance testing: ``` --- FAIL: TestAccAwsBackupSelection_withResources (13.48s) testing.go:538: Step 0 error: Error applying: 1 error occurred: * aws_backup_selection.test: 1 error occurred: * aws_backup_selection.test: error creating Backup Selection: InvalidParameterValueException: Invalid ARN: arn:aws:elasticfilesystem:us-east-1:--OMITTED--:file-system/. Expected region is us-west-2 status code: 400, request id: 8c64a59c-7b8c-46de-8e7e-6fa1a7879b3a --- FAIL: TestAccAwsBackupSelection_disappears (13.53s) testing.go:538: Step 0 error: Error applying: 1 error occurred: * aws_backup_selection.test: 1 error occurred: * aws_backup_selection.test: error creating Backup Selection: InvalidParameterValueException: Invalid ARN: arn:aws:ec2:us-east-1:--OMITTED--:volume/. Expected region is us-west-2 status code: 400, request id: bb483272-0b15-4978-88ab-0a5cf2400302 --- FAIL: TestAccAwsBackupSelection_basic (13.60s) testing.go:538: Step 0 error: Error applying: 1 error occurred: * aws_backup_selection.test: 1 error occurred: * aws_backup_selection.test: error creating Backup Selection: InvalidParameterValueException: Invalid ARN: arn:aws:ec2:us-east-1:--OMITTED--:volume/. Expected region is us-west-2 status code: 400, request id: 6e4c8dda-6cc8-4d63-be62-b4b156e4c30b --- FAIL: TestAccAwsBackupSelection_withTags (13.66s) testing.go:538: Step 0 error: Error applying: 1 error occurred: * aws_backup_selection.test: 1 error occurred: * aws_backup_selection.test: error creating Backup Selection: InvalidParameterValueException: Invalid ARN: arn:aws:ec2:us-east-1:--OMITTED--:volume/. Expected region is us-west-2 status code: 400, request id: a1229860-b1f7-4462-9b22-68d46cf62e31 --- FAIL: TestAccAwsBackupSelection_withResources (14.15s) testing.go:538: Step 0 error: After applying this step, the plan was not empty: DIFF: DESTROY/CREATE: aws_backup_selection.test iam_role_arn: "arn:aws:iam::123456789012:role/service-role/AWSBackupDefaultServiceRole" => "arn:aws:iam::187416307283:role/service-role/AWSBackupDefaultServiceRole" name: "tf_acc_test_backup_selection_5994421555613158377" => "tf_acc_test_backup_selection_5994421555613158377" plan_id: "7e69f127-aab4-4217-90cc-437ec8d9e19a" => "7e69f127-aab4-4217-90cc-437ec8d9e19a" resources.#: "2" => "2" resources.0: "arn:aws:ec2:us-west-2:123456789012:volume/" => "arn:aws:elasticfilesystem:us-west-2:123456789012:file-system/" (forces new resource) resources.1: "arn:aws:elasticfilesystem:us-west-2:123456789012:file-system/" => "arn:aws:ec2:us-west-2:123456789012:volume/" (forces new resource) selection_tag.#: "1" => "1" selection_tag.3487478888.key: "foo" => "foo" selection_tag.3487478888.type: "STRINGEQUALS" => "STRINGEQUALS" selection_tag.3487478888.value: "bar" => "bar" ``` Output from acceptance testing: ``` --- PASS: TestAccAwsBackupSelection_withResources (16.55s) --- PASS: TestAccAwsBackupSelection_basic (17.21s) --- PASS: TestAccAwsBackupSelection_disappears (17.70s) --- PASS: TestAccAwsBackupSelection_withTags (17.79s) ```
- Loading branch information