2016-06-27 15:44:28 +02: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 17:12:41 +01:00
|
|
|
{
|
2016-06-27 15:44:28 +02:00
|
|
|
Config: testAccAwsVpnConnectionConfig,
|
|
|
|
},
|
2016-11-07 17:12:41 +01:00
|
|
|
{
|
2016-06-27 15:44:28 +02:00
|
|
|
ResourceName: resourceName,
|
|
|
|
ImportState: true,
|
|
|
|
ImportStateVerify: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|