providers/aws: route53 delegation set import
This commit is contained in:
parent
801d342496
commit
4967f3ff08
|
@ -0,0 +1,28 @@
|
||||||
|
package aws
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/hashicorp/terraform/helper/resource"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestAccAWSRoute53DelegationSet_importBasic(t *testing.T) {
|
||||||
|
resourceName := "aws_route53_delegation_set.test"
|
||||||
|
|
||||||
|
resource.Test(t, resource.TestCase{
|
||||||
|
PreCheck: func() { testAccPreCheck(t) },
|
||||||
|
Providers: testAccProviders,
|
||||||
|
Steps: []resource.TestStep{
|
||||||
|
resource.TestStep{
|
||||||
|
Config: testAccRoute53DelegationSetConfig,
|
||||||
|
},
|
||||||
|
|
||||||
|
resource.TestStep{
|
||||||
|
ResourceName: resourceName,
|
||||||
|
ImportState: true,
|
||||||
|
ImportStateVerify: true,
|
||||||
|
ImportStateVerifyIgnore: []string{"reference_name"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
|
@ -17,6 +17,9 @@ func resourceAwsRoute53DelegationSet() *schema.Resource {
|
||||||
Create: resourceAwsRoute53DelegationSetCreate,
|
Create: resourceAwsRoute53DelegationSetCreate,
|
||||||
Read: resourceAwsRoute53DelegationSetRead,
|
Read: resourceAwsRoute53DelegationSetRead,
|
||||||
Delete: resourceAwsRoute53DelegationSetDelete,
|
Delete: resourceAwsRoute53DelegationSetDelete,
|
||||||
|
Importer: &schema.ResourceImporter{
|
||||||
|
State: schema.ImportStatePassthrough,
|
||||||
|
},
|
||||||
|
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
"reference_name": &schema.Schema{
|
"reference_name": &schema.Schema{
|
||||||
|
|
Loading…
Reference in New Issue