Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tlimoncelli committed Dec 27, 2024
1 parent cffde5c commit cb48444
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 25 deletions.
10 changes: 5 additions & 5 deletions pkg/js/parse_tests/017-txt.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
D("foo.com", "none",
TXT("a", "simple"),
TXT("b", "ws at end "),
TXT("c", ["one"]),
TXT("d", ["bonie", "clyde"]),
TXT("e", ["straw", "wood", "brick"]),
TXT("a", "simple"),
TXT("b", "ws at end "),
TXT("c", ["one"]),
TXT("d", ["bonie", "clyde"]),
TXT("e", ["straw", "wood", "brick"]),
);
6 changes: 3 additions & 3 deletions pkg/js/parse_tests/018-dkim.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
D("foo.com", "none",
TXT("dkimtest2",
DKIM("this string is 255 bytes long.hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnKZogtjOlHoeY8iZ5o5brlPOsj/a2Q9Bopu1kHxlxrdw7tZVL9FzUMngiIYGrl8dbP7Rvk7TLMoxHxVkRZPBtIpsKIab/gOUoPLQVYbrAmzyguHYBwAApi3H/pvjUsK8+XF0dKY17AR96lokAPqvfBaUb+DSx8zNw2hrYWYVqvCtnxHUGEUhT1bTlEZBptH3jthis is the remainder. it is 156 bytes long.mOhl2JmbsFKy+RoMTwbkk0/meRvcEFWLHkr4MSgbnie6OpQvM4Y51+kO6DUVr3rwjrdVO9wpFt+n/hdQ92TNif17RMJtE5AGaQ6BN3yJQIDAQAB;"),
),
TXT("dkimtest2",
DKIM("this string is 255 bytes long.hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnKZogtjOlHoeY8iZ5o5brlPOsj/a2Q9Bopu1kHxlxrdw7tZVL9FzUMngiIYGrl8dbP7Rvk7TLMoxHxVkRZPBtIpsKIab/gOUoPLQVYbrAmzyguHYBwAApi3H/pvjUsK8+XF0dKY17AR96lokAPqvfBaUb+DSx8zNw2hrYWYVqvCtnxHUGEUhT1bTlEZBptH3jthis is the remainder. it is 156 bytes long.mOhl2JmbsFKy+RoMTwbkk0/meRvcEFWLHkr4MSgbnie6OpQvM4Y51+kO6DUVr3rwjrdVO9wpFt+n/hdQ92TNif17RMJtE5AGaQ6BN3yJQIDAQAB;"),
),
);
10 changes: 5 additions & 5 deletions pkg/js/parse_tests/021-srv.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
D("foo.com", "none",
SRV('_ntp._udp', 1, 100, 123, 'one.foo.com.'),
SRV('_ntp._udp', 2, 100, 123, 'two'),
SRV('_ntp._udp', 3, 100, 123, 'localhost'),
SRV('_ntp._udp', 4, 100, 123, 'three.example.com.'),
SRV('_ntp._udp', 0, 0, 1, 'zeros'),
SRV('_ntp._udp', 1, 100, 123, 'one.foo.com.'),
SRV('_ntp._udp', 2, 100, 123, 'two'),
SRV('_ntp._udp', 3, 100, 123, 'localhost'),
SRV('_ntp._udp', 4, 100, 123, 'three.example.com.'),
SRV('_ntp._udp', 0, 0, 1, 'zeros'),
);
2 changes: 1 addition & 1 deletion pkg/js/parse_tests/023-ignored-glob-records.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
D("foo.com", "none",
IGNORE("\\*.testignore"),
IGNORE("\\*.testignore"),
);
14 changes: 8 additions & 6 deletions pkg/js/parse_tests/032-reverseip.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,23 @@ D(REV('1.2.3.0/24'), REGISTRAR, DnsProvider(BIND),
}),
);
D_EXTEND(REV("1.2.3.4"),
PTR("4", "silly.example.com."),
PTR("4", "silly.example.com."),
);
D_EXTEND(REV("1.2.3.5"),
PTR("1.2.3.5", "willy.example.com."),
PTR("1.2.3.5", "willy.example.com."),
);
D_EXTEND(REV("1.2.3.6"),
PTR(REV("1.2.3.6"), "billy.example.com."),
PTR(REV("1.2.3.6"), "billy.example.com."),
);

D_EXTEND(REV("1.2.3.0/24"),
PTR("7", "my.example.com."),
PTR("7", "my.example.com."),
);
D_EXTEND(REV("1.2.3.0/24"),
PTR("1.2.3.8", "fair.example.com."),
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" }),
PTR(REV("1.2.3.9/32"), "lady.example.com.", {
skip_fqdn_check: "true"
}),
);
4 changes: 2 additions & 2 deletions pkg/js/parse_tests/033-revextend.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ var BIND = NewDnsProvider('bind', 'BIND');

// Delegating reverse zones
D(REV('1.3.0.0/16'), REGISTRAR,
DnsProvider(BIND),
DnsProvider(BIND),
NS(REV('1.3.1.0/24'), "ns1.example.com."),
);
D_EXTEND(REV("1.3.2.0/24"),
NS(REV("1.3.2.0/24"), "ns2.example.org."),
NS(REV("1.3.2.0/24"), "ns2.example.org."),
);
6 changes: 3 additions & 3 deletions pkg/js/parse_tests/044-ensureabsent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
D("example.com", "none",
A("normal", "1.1.1.1"),
A("helper", "2.2.2.2", ENSURE_ABSENT_REC()),
//ENSURE_ABSENT(A("wrapped", "3.3.3.3")),
A("normal", "1.1.1.1"),
A("helper", "2.2.2.2", ENSURE_ABSENT_REC()),
//ENSURE_ABSENT(A("wrapped", "3.3.3.3")),
);

0 comments on commit cb48444

Please sign in to comment.