Merge pull request #14593 from hashicorp/jbardin/dns-acc-tests

convert dns tests back to acceptance tests
This commit is contained in:
James Bardin 2017-05-17 15:57:09 -04:00 committed by GitHub
commit 25a71d9a56
2 changed files with 10 additions and 10 deletions

View File

@ -43,7 +43,7 @@ func TestAccDataDnsARecordSet_Basic(t *testing.T) {
for _, test := range tests {
recordName := fmt.Sprintf("data.dns_a_record_set.%s", test.DataSourceName)
resource.UnitTest(t, resource.TestCase{
resource.Test(t, resource.TestCase{
Providers: testAccProviders,
Steps: []resource.TestStep{
resource.TestStep{

View File

@ -3,7 +3,7 @@ package dns
import (
"testing"
r "github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/helper/resource"
)
func TestAccDnsCnameRecordSet_Basic(t *testing.T) {
@ -24,19 +24,19 @@ func TestAccDnsCnameRecordSet_Basic(t *testing.T) {
}
for _, test := range tests {
r.UnitTest(t, r.TestCase{
resource.Test(t, resource.TestCase{
Providers: testAccProviders,
Steps: []r.TestStep{
r.TestStep{
Steps: []resource.TestStep{
resource.TestStep{
Config: test.DataSourceBlock,
Check: r.ComposeTestCheckFunc(
r.TestCheckResourceAttr("data.dns_cname_record_set.foo", "cname", test.Expected),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("data.dns_cname_record_set.foo", "cname", test.Expected),
),
},
r.TestStep{
resource.TestStep{
Config: test.DataSourceBlock,
Check: r.ComposeTestCheckFunc(
r.TestCheckResourceAttr("data.dns_cname_record_set.foo", "id", test.Host),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("data.dns_cname_record_set.foo", "id", test.Host),
),
},
},