Skip to content

Commit

Permalink
disappears
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Jul 20, 2020
1 parent 2a18ac8 commit 64d2b9a
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions aws/resource_aws_fsx_windows_file_system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func TestAccAWSFsxWindowsFileSystem_disappears(t *testing.T) {
Config: testAccAwsFsxWindowsFileSystemConfigSubnetIds1(),
Check: resource.ComposeTestCheckFunc(
testAccCheckFsxWindowsFileSystemExists(resourceName, &filesystem),
testAccCheckFsxWindowsFileSystemDisappears(&filesystem),
testAccCheckResourceDisappears(testAccProvider, resourceAwsFsxWindowsFileSystem(), resourceName),
),
ExpectNonEmptyPlan: true,
},
Expand Down Expand Up @@ -659,24 +659,6 @@ func testAccCheckFsxWindowsFileSystemDestroy(s *terraform.State) error {
return nil
}

func testAccCheckFsxWindowsFileSystemDisappears(filesystem *fsx.FileSystem) resource.TestCheckFunc {
return func(s *terraform.State) error {
conn := testAccProvider.Meta().(*AWSClient).fsxconn

input := &fsx.DeleteFileSystemInput{
FileSystemId: filesystem.FileSystemId,
}

_, err := conn.DeleteFileSystem(input)

if err != nil {
return err
}

return waitForFsxFileSystemDeletion(conn, aws.StringValue(filesystem.FileSystemId), 30*time.Minute)
}
}

func testAccCheckFsxWindowsFileSystemNotRecreated(i, j *fsx.FileSystem) resource.TestCheckFunc {
return func(s *terraform.State) error {
if aws.StringValue(i.FileSystemId) != aws.StringValue(j.FileSystemId) {
Expand Down

0 comments on commit 64d2b9a

Please sign in to comment.