2016-06-27 08:44:28 -05:00
|
|
|
package aws
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/hashicorp/terraform/helper/resource"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestAccAWSVpnConnection_importBasic(t *testing.T) {
|
|
|
|
resourceName := "aws_vpn_connection.foo"
|
|
|
|
|
|
|
|
resource.Test(t, resource.TestCase{
|
|
|
|
PreCheck: func() { testAccPreCheck(t) },
|
|
|
|
Providers: testAccProviders,
|
|
|
|
CheckDestroy: testAccAwsVpnConnectionDestroy,
|
|
|
|
Steps: []resource.TestStep{
|
2016-11-07 10:12:41 -06:00
|
|
|
{
|
2016-06-27 08:44:28 -05:00
|
|
|
Config: testAccAwsVpnConnectionConfig,
|
|
|
|
},
|
2016-11-07 10:12:41 -06:00
|
|
|
{
|
2016-06-27 08:44:28 -05:00
|
|
|
ResourceName: resourceName,
|
|
|
|
ImportState: true,
|
|
|
|
ImportStateVerify: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|