diff --git a/internal/service/fsx/ontap_storage_virtual_machine_data_source_test.go b/internal/service/fsx/ontap_storage_virtual_machine_data_source_test.go index d2ddd55be53..a9002e88ae8 100644 --- a/internal/service/fsx/ontap_storage_virtual_machine_data_source_test.go +++ b/internal/service/fsx/ontap_storage_virtual_machine_data_source_test.go @@ -4,6 +4,7 @@ package fsx_test import ( + "fmt" "testing" sdkacctest "github.com/hashicorp/terraform-plugin-testing/helper/acctest" @@ -81,7 +82,7 @@ func TestAccFSxONTAPStorageVirtualMachineDataSource_Filter(t *testing.T) { } func testAccONTAPStorageVirtualMachineDataSourceConfig_Id(rName string) string { - return acctest.ConfigCompose(testAccONTAPStorageVirtualMachineConfig_base(rName), ` + return acctest.ConfigCompose(testAccONTAPStorageVirtualMachineConfig_base(rName), fmt.Sprintf(` resource "aws_fsx_ontap_storage_virtual_machine" "test" { file_system_id = aws_fsx_ontap_file_system.test.id name = %[1]q @@ -94,11 +95,11 @@ resource "aws_fsx_ontap_storage_virtual_machine" "test" { data "aws_fsx_ontap_storage_virtual_machine" "test" { id = aws_fsx_ontap_storage_virtual_machine.test.id } -`) +`, rName)) } func testAccONTAPStorageVirtualMachineDataSourceConfig_Filter(rName string) string { - return acctest.ConfigCompose(testAccONTAPStorageVirtualMachineConfig_base(rName), ` + return acctest.ConfigCompose(testAccONTAPStorageVirtualMachineConfig_base(rName), fmt.Sprintf(` resource "aws_fsx_ontap_storage_virtual_machine" "test" { file_system_id = aws_fsx_ontap_file_system.test.id name = %[1]q @@ -116,5 +117,5 @@ data "aws_fsx_ontap_storage_virtual_machine" "test" { depends_on = [aws_fsx_ontap_storage_virtual_machine.test] } -`) +`, rName)) }