Skip to content

Commit

Permalink
r/aws_globalaccelerator_endpoint_group: Add '_disappears' acceptance …
Browse files Browse the repository at this point in the history
…test (hashicorp#13527, hashicorp#13826).

Acceptance test output:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAwsGlobalAcceleratorEndpointGroup_disappears'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsGlobalAcceleratorEndpointGroup_disappears -timeout 120m
=== RUN   TestAccAwsGlobalAcceleratorEndpointGroup_disappears
=== PAUSE TestAccAwsGlobalAcceleratorEndpointGroup_disappears
=== CONT  TestAccAwsGlobalAcceleratorEndpointGroup_disappears
--- PASS: TestAccAwsGlobalAcceleratorEndpointGroup_disappears (191.83s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	191.883s
  • Loading branch information
ewbankkit committed Aug 21, 2020
1 parent fe4ef66 commit 0c49a06
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions aws/resource_aws_globalaccelerator_endpoint_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,27 @@ func TestAccAwsGlobalAcceleratorEndpointGroup_basic(t *testing.T) {
})
}

func TestAccAwsGlobalAcceleratorEndpointGroup_disappears(t *testing.T) {
resourceName := "aws_globalaccelerator_endpoint_group.test"
rName := acctest.RandomWithPrefix("tf-acc-test")

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckGlobalAcceleratorEndpointGroupDestroy,
Steps: []resource.TestStep{
{
Config: testAccGlobalAcceleratorEndpointGroupConfigBasic(rName),
Check: resource.ComposeTestCheckFunc(
testAccCheckGlobalAcceleratorEndpointGroupExists(resourceName),
testAccCheckResourceDisappears(testAccProvider, resourceAwsGlobalAcceleratorEndpointGroup(), resourceName),
),
ExpectNonEmptyPlan: true,
},
},
})
}

func TestAccAwsGlobalAcceleratorEndpointGroup_ALBEndpoint_ClientIP(t *testing.T) {
var vpc ec2.Vpc
resourceName := "aws_globalaccelerator_endpoint_group.test"
Expand Down

0 comments on commit 0c49a06

Please sign in to comment.