Skip to content

Commit

Permalink
Fix acceptance test configurations.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jul 19, 2024
1 parent 54c003f commit 282e873
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package fsx_test

import (
"fmt"
"testing"

sdkacctest "github.com/hashicorp/terraform-plugin-testing/helper/acctest"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -116,5 +117,5 @@ data "aws_fsx_ontap_storage_virtual_machine" "test" {
depends_on = [aws_fsx_ontap_storage_virtual_machine.test]
}
`)
`, rName))
}

0 comments on commit 282e873

Please sign in to comment.