1
0
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:
Tom Limoncelli
2020-12-03 09:33:39 -05:00
committed by GitHub
parent 6443a31ca8
commit 063d550816
51 changed files with 337 additions and 69 deletions

View File

@ -0,0 +1,10 @@
$TTL 300
1 IN PTR foo.example.com.
2 IN PTR bar.example.com.
3 IN PTR baz.example.com.
4 IN PTR silly.example.com.
5 IN PTR willy.example.com.
6 IN PTR billy.example.com.
7 IN PTR my.example.com.
8 IN PTR fair.example.com.
9 IN PTR lady.example.com.