Skip to content

Commit

Permalink
tests/resource/aws_rds_cluster: Remove aws_s3_bucket region argument …
Browse files Browse the repository at this point in the history
…from TestAccAWSRDSCluster_s3Restore

Reference: #14127

Missed during test configuration cleanup after the referenced argument removal. Fixes the initial configuration issue, but does not fix the (still) broken test which is presumably something to do with the backup file or engine version.

Previously:

```
--- FAIL: TestAccAWSRDSCluster_s3Restore (0.99s)
testing.go:684: Step 0 error: config is invalid: "region": this field cannot be set
```

Output from acceptance testing:

```
=== CONT  TestAccAWSRDSCluster_s3Restore
    TestAccAWSRDSCluster_s3Restore: testing.go:684: Step 0 error: errors during apply:

        Error: Error waiting for RDS Cluster state to be "available": unexpected state 'migration-failed', wanted target 'available'. last error: %!s(<nil>)
```
  • Loading branch information
bflad committed Jul 21, 2020
1 parent d9f833b commit 97e5bb1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions aws/resource_aws_rds_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2265,11 +2265,8 @@ data "aws_availability_zones" "available" {
}
}
data "aws_region" "current" {}
resource "aws_s3_bucket" "xtrabackup" {
bucket = %[1]q
region = "${data.aws_region.current.name}"
}
resource "aws_s3_bucket_object" "xtrabackup_db" {
Expand Down

0 comments on commit 97e5bb1

Please sign in to comment.