providers/aws: working on id-only tests, no bugs found in these

resources
This commit is contained in:
Mitchell Hashimoto 2016-04-20 12:10:26 -07:00
parent 8d8cec3b57
commit 60103c083a
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
3 changed files with 17 additions and 10 deletions

View File

@ -28,6 +28,7 @@ func TestAccAWSSubnet_basic(t *testing.T) {
resource.Test(t, resource.TestCase{ resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) }, PreCheck: func() { testAccPreCheck(t) },
IDRefreshName: "aws_subnet.foo",
Providers: testAccProviders, Providers: testAccProviders,
CheckDestroy: testAccCheckSubnetDestroy, CheckDestroy: testAccCheckSubnetDestroy,
Steps: []resource.TestStep{ Steps: []resource.TestStep{

View File

@ -15,6 +15,10 @@ func TestAccAWSDHCPOptionsAssociation_basic(t *testing.T) {
resource.Test(t, resource.TestCase{ resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) }, PreCheck: func() { testAccPreCheck(t) },
DisableIDRefresh: true,
IDRefreshName: "aws_vpc_dhcp_options_association.foo",
Providers: testAccProviders, Providers: testAccProviders,
CheckDestroy: testAccCheckDHCPOptionsAssociationDestroy, CheckDestroy: testAccCheckDHCPOptionsAssociationDestroy,
Steps: []resource.TestStep{ Steps: []resource.TestStep{

View File

@ -17,6 +17,7 @@ func TestAccAWSVpcEndpoint_basic(t *testing.T) {
resource.Test(t, resource.TestCase{ resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) }, PreCheck: func() { testAccPreCheck(t) },
IDRefreshName: "aws_vpc_endpoint.second-private-s3",
Providers: testAccProviders, Providers: testAccProviders,
CheckDestroy: testAccCheckVpcEndpointDestroy, CheckDestroy: testAccCheckVpcEndpointDestroy,
Steps: []resource.TestStep{ Steps: []resource.TestStep{
@ -36,6 +37,7 @@ func TestAccAWSVpcEndpoint_withRouteTableAndPolicy(t *testing.T) {
resource.Test(t, resource.TestCase{ resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) }, PreCheck: func() { testAccPreCheck(t) },
IDRefreshName: "aws_vpc_endpoint.second-private-s3",
Providers: testAccProviders, Providers: testAccProviders,
CheckDestroy: testAccCheckVpcEndpointDestroy, CheckDestroy: testAccCheckVpcEndpointDestroy,
Steps: []resource.TestStep{ Steps: []resource.TestStep{