providers/aws: vpc dhcp options
This commit is contained in:
parent
da353c3637
commit
b75d5bb46d
|
@ -0,0 +1,27 @@
|
|||
package aws
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/hashicorp/terraform/helper/resource"
|
||||
)
|
||||
|
||||
func TestAccAWSDHCPOptions_importBasic(t *testing.T) {
|
||||
resourceName := "aws_vpc_dhcp_options.foo"
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
PreCheck: func() { testAccPreCheck(t) },
|
||||
Providers: testAccProviders,
|
||||
Steps: []resource.TestStep{
|
||||
resource.TestStep{
|
||||
Config: testAccDHCPOptionsConfig,
|
||||
},
|
||||
|
||||
resource.TestStep{
|
||||
ResourceName: resourceName,
|
||||
ImportState: true,
|
||||
ImportStateVerify: true,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
|
@ -19,6 +19,9 @@ func resourceAwsVpcDhcpOptions() *schema.Resource {
|
|||
Read: resourceAwsVpcDhcpOptionsRead,
|
||||
Update: resourceAwsVpcDhcpOptionsUpdate,
|
||||
Delete: resourceAwsVpcDhcpOptionsDelete,
|
||||
Importer: &schema.ResourceImporter{
|
||||
State: schema.ImportStatePassthrough,
|
||||
},
|
||||
|
||||
Schema: map[string]*schema.Schema{
|
||||
"domain_name": &schema.Schema{
|
||||
|
|
Loading…
Reference in New Issue