Skip to content

Commit

Permalink
Fix test to include the region attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Yaron Yarimi <yaron.yarimi@env0.com>
  • Loading branch information
yaronya committed Jan 4, 2024
1 parent f4443e3 commit 8b05dc2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/service/efs/replication_configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func TestAccEFSReplicationConfiguration_existingDestination(t *testing.T) {
CheckDestroy: acctest.CheckWithProviders(testAccCheckReplicationConfigurationDestroyWithProvider(ctx), &providers),
Steps: []resource.TestStep{
{
Config: testAccReplicationConfigurationConfig_existingDestination(),
Config: testAccReplicationConfigurationConfig_existingDestination(acctest.Region()),
Check: resource.ComposeAggregateTestCheckFunc(
testAccCheckReplicationConfigurationExists(ctx, resourceName),
resource.TestCheckResourceAttrSet(resourceName, "creation_time"),
Expand Down Expand Up @@ -221,7 +221,7 @@ resource "aws_efs_replication_configuration" "test" {
`, region)
}

func testAccReplicationConfigurationConfig_existingDestination() string {
func testAccReplicationConfigurationConfig_existingDestination(region string) string {
return fmt.Sprintf(`
resource "aws_efs_file_system" "source" {}
Expand All @@ -232,9 +232,10 @@ resource "aws_efs_replication_configuration" "test" {
destination {
file_system_id = aws_efs_file_system.destination.id
region = %[1]q
}
}
`)
`, region)
}

func testAccReplicationConfigurationConfig_full(region string) string {
Expand Down

0 comments on commit 8b05dc2

Please sign in to comment.