mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
js_test.go should generate & test zonefile output too (#986)
* js_test.go: Do a zonefile test if $TESTNAME/parse_tests/{zonefile} exists. * Add parse_tests zone files for all the tests that make sense. * js_test.go: Addd the test datafile when displaying failures. * 007-importTransformTTL.js: Was referring to a non-existent domain. * 012-duration.js: Had duplicate DNS records. * 029-dextendsub.js: Move CF-related tests to separate test. * validate.go: Report non-existent domains as an error. * cloudflareProvider.go: newCloudflare should not talk to the API.
This commit is contained in:
3
pkg/js/parse_tests/028-dextend/bar.foo.com.zone
Normal file
3
pkg/js/parse_tests/028-dextend/bar.foo.com.zone
Normal file
@@ -0,0 +1,3 @@
|
||||
$TTL 300
|
||||
@ IN A 10.3.3.3
|
||||
www IN A 10.4.4.4
|
3
pkg/js/parse_tests/028-dextend/foo.com.zone
Normal file
3
pkg/js/parse_tests/028-dextend/foo.com.zone
Normal file
@@ -0,0 +1,3 @@
|
||||
$TTL 300
|
||||
@ IN A 10.1.1.1
|
||||
www IN A 10.2.2.2
|
5
pkg/js/parse_tests/028-dextend/foo.edu.zone
Normal file
5
pkg/js/parse_tests/028-dextend/foo.edu.zone
Normal file
@@ -0,0 +1,5 @@
|
||||
$TTL 300
|
||||
@ IN A 10.5.5.5
|
||||
more1 IN A 10.7.7.7
|
||||
more2 IN A 10.8.8.8
|
||||
www IN A 10.6.6.6
|
Reference in New Issue
Block a user