29 lines
663 B
Go
29 lines
663 B
Go
package openstack
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hashicorp/terraform/helper/resource"
|
|
)
|
|
|
|
func TestAccDNSV2RecordSet_importBasic(t *testing.T) {
|
|
zoneName := randomZoneName()
|
|
resourceName := "openstack_dns_recordset_v2.recordset_1"
|
|
|
|
resource.Test(t, resource.TestCase{
|
|
PreCheck: func() { testAccPreCheckDNSRecordSetV2(t) },
|
|
Providers: testAccProviders,
|
|
CheckDestroy: testAccCheckDNSV2RecordSetDestroy,
|
|
Steps: []resource.TestStep{
|
|
resource.TestStep{
|
|
Config: testAccDNSV2RecordSet_basic(zoneName),
|
|
},
|
|
resource.TestStep{
|
|
ResourceName: resourceName,
|
|
ImportState: true,
|
|
ImportStateVerify: true,
|
|
},
|
|
},
|
|
})
|
|
}
|