dnscontrol/pkg/js/parse_tests/032-reverseip.js
Tom Limoncelli 063d550816
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.
2020-12-03 09:33:39 -05:00

15 lines
712 B
JavaScript

var REGISTRAR = NewRegistrar('none', 'NONE'); // No registrar.
var BIND = NewDnsProvider('bind', 'BIND');
D(REV('1.2.3.0/24'), REGISTRAR, DnsProvider(BIND),
PTR("1", 'foo.example.com.'),
PTR("1.2.3.2", 'bar.example.com.'),
PTR(REV("1.2.3.3"), 'baz.example.com.', {skip_fqdn_check:"true"})
);
D_EXTEND(REV("1.2.3.4"), PTR("4", "silly.example.com."))
D_EXTEND(REV("1.2.3.5"), PTR("1.2.3.5", "willy.example.com."))
D_EXTEND(REV("1.2.3.6"), PTR(REV("1.2.3.6"), "billy.example.com."))
D_EXTEND(REV("1.2.3.0/24"), PTR("7", "my.example.com."))
D_EXTEND(REV("1.2.3.0/24"), PTR("1.2.3.8", "fair.example.com."))
D_EXTEND(REV("1.2.3.0/24"), PTR(REV("1.2.3.9/32"), "lady.example.com.", {skip_fqdn_check:"true"}))