@@ -9,16 +9,6 @@ import (
99 "github.com/stretchr/testify/assert"
1010)
1111
12- // To verify DNS records creation
13- var dnsRecordsMap = []map [string ]interface {}{
14- {"name" : "testA" , "type" : "A" , "rdata" : "1.2.3.4" , "ttl" : 3600 },
15- {"name" : "testAAAA" , "type" : "AAAA" , "rdata" : "2001:0db8:0012:0001:3c5e:7354:0000:5db5" },
16- {"name" : "testCNAME" , "type" : "CNAME" , "rdata" : "test.com" },
17- {"name" : "testTXT" , "type" : "TXT" , "rdata" : "textinformation" , "ttl" : 900 },
18- {"name" : "testMX" , "type" : "MX" , "rdata" : "mailserver.test.com" , "preference" : 10 },
19- {"name" : "testSRV" , "type" : "SRV" , "rdata" : "tester.com" , "priority" : 100 , "weight" : 100 , "port" : 8000 , "service" : "_sip" , "protocol" : "udp" },
20- }
21-
2212func TestRunBasicExample (t * testing.T ) {
2313 t .Parallel ()
2414
@@ -64,23 +54,3 @@ func TestRunSpecificZoneExample(t *testing.T) {
6454 assert .Nil (t , err , "This should not have errored" )
6555 assert .NotNil (t , output , "Expected some output" )
6656}
67-
68- func TestRunVpcWithDnsExample (t * testing.T ) {
69- t .Parallel ()
70-
71- options := testhelper .TestOptionsDefaultWithVars (& testhelper.TestOptions {
72- Testing : t ,
73- TerraformDir : vpcWithDnsExampleTerraformDir ,
74- Prefix : "dns-slz" ,
75- ResourceGroup : resourceGroup ,
76- Region : "us-south" ,
77- })
78- options .TerraformVars = map [string ]interface {}{
79- "dns_records" : dnsRecordsMap ,
80- "name" : "test-dns" ,
81- "dns_zone_name" : "slz.com" ,
82- }
83- output , err := options .RunTestConsistency ()
84- assert .Nil (t , err , "This should not have errored" )
85- assert .NotNil (t , output , "Expected some output" )
86- }
0 commit comments