Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Apr 12, 2023
1 parent e12cada commit c5fac0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/rds/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4319,14 +4319,15 @@ resource "aws_rds_cluster" "test" {
}

func testAccClusterConfig_SnapshotID_preferredMaintenanceWindow(rName, preferredMaintenanceWindow string) string {
// This config will never need the version updated. Use as a model for changing the other
// tests.
return fmt.Sprintf(`
data "aws_rds_engine_version" "test" {
engine = "aurora-mysql"
}
resource "aws_rds_cluster" "source" {
cluster_identifier = "%[1]s-source"
engine = "aurora-mysql"
master_password = "barbarbarbar"
master_username = "foo"
skip_final_snapshot = true
Expand All @@ -4340,7 +4341,6 @@ resource "aws_db_cluster_snapshot" "test" {
resource "aws_rds_cluster" "test" {
cluster_identifier = %[1]q
engine = "aurora-mysql"
preferred_maintenance_window = %[2]q
skip_final_snapshot = true
snapshot_identifier = aws_db_cluster_snapshot.test.id
Expand Down

0 comments on commit c5fac0d

Please sign in to comment.