Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
a4b5df22
Commit
a4b5df22
authored
Feb 25, 2014
by
Marek Vavrusa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests-extra: tests for proofs of expanded/unexpanded wildcards below dp
parent
747869b5
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
126 additions
and
83 deletions
+126
-83
tests-extra/data/example.zone
tests-extra/data/example.zone
+1
-0
tests-extra/tests/basic/nsec/data/example.zone.nsec
tests-extra/tests/basic/nsec/data/example.zone.nsec
+39
-38
tests-extra/tests/basic/nsec/test.py
tests-extra/tests/basic/nsec/test.py
+20
-0
tests-extra/tests/basic/nsec3/data/example.zone.nsec3
tests-extra/tests/basic/nsec3/data/example.zone.nsec3
+45
-44
tests-extra/tests/basic/nsec3/test.py
tests-extra/tests/basic/nsec3/test.py
+21
-1
No files found.
tests-extra/data/example.zone
View file @
a4b5df22
...
...
@@ -10,6 +10,7 @@ ns2.b.example. 3600 IN A 192.0.2.8
a.example. 3600 IN NS ns1.a.example.
a.example. 3600 IN NS ns2.a.example.
a.example. 3600 IN DS 57855 5 1 B6DCD485719ADCA18E5F3D48A2331627FDD3636B
*.a.example. 3600 IN A 192.0.2.11
ai.example. 3600 IN A 192.0.2.9
ai.example. 3600 IN HINFO "KLH-10" "ITS"
ai.example. 3600 IN AAAA 2001:db8::f00:baa9
...
...
tests-extra/tests/basic/nsec/data/example.zone.nsec
View file @
a4b5df22
This diff is collapsed.
Click to expand it.
tests-extra/tests/basic/nsec/test.py
View file @
a4b5df22
...
...
@@ -66,6 +66,16 @@ resp = knot.dig("a.to-nxdomain.example", "A", dnssec=True)
resp
.
check
(
rcode
=
"NXDOMAIN"
,
flags
=
"QR AA"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# Wildcard Expansion below delegation point
resp
=
knot
.
dig
(
"a.a.example"
,
"A"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# Wildcard Expansion below delegation point (nodata)
resp
=
knot
.
dig
(
"a.a.example"
,
"AAAA"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# B9. Direct wildcard query (positive)
resp
=
knot
.
dig
(
"*.w.example"
,
"MX"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR AA"
,
eflags
=
"DO"
)
...
...
@@ -76,6 +86,16 @@ resp = knot.dig("*.w.example", "AAAA", dnssec=True)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR AA"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# Direct wildcard query below delegation point (positive)
resp
=
knot
.
dig
(
"*.a.example"
,
"A"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# Direct wildcard query below delegation point (no data)
resp
=
knot
.
dig
(
"*.a.example"
,
"AAAA"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# B11. DS Child Zone No Data Error.
resp
=
knot
.
dig
(
"example"
,
"DS"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR AA"
,
eflags
=
"DO"
)
...
...
tests-extra/tests/basic/nsec3/data/example.zone.nsec3
View file @
a4b5df22
This diff is collapsed.
Click to expand it.
tests-extra/tests/basic/nsec3/test.py
View file @
a4b5df22
...
...
@@ -56,7 +56,7 @@ resp = knot.dig("a.to-apex.example", "SOA", dnssec=True)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR AA"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# Wildcard Expansion to apex (
NODATA
)
# Wildcard Expansion to apex (
no data
)
resp
=
knot
.
dig
(
"a.to-apex.example"
,
"TXT"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR AA"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
...
...
@@ -66,6 +66,16 @@ resp = knot.dig("a.to-nxdomain.example", "A", bufsize=1600, dnssec=True)
resp
.
check
(
rcode
=
"NXDOMAIN"
,
flags
=
"QR AA"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# Wildcard Expansion below delegation point
resp
=
knot
.
dig
(
"a.a.example"
,
"A"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# Wildcard Expansion below delegation point (no data)
resp
=
knot
.
dig
(
"a.a.example"
,
"AAAA"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# B9. Direct wildcard query (positive)
resp
=
knot
.
dig
(
"*.w.example"
,
"MX"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR AA"
,
eflags
=
"DO"
)
...
...
@@ -76,6 +86,16 @@ resp = knot.dig("*.w.example", "AAAA", dnssec=True)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR AA"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# Direct wildcard query below delegation point (positive)
resp
=
knot
.
dig
(
"*.a.example"
,
"A"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# Direct wildcard query below delegation point (no data)
resp
=
knot
.
dig
(
"*.a.example"
,
"AAAA"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR"
,
eflags
=
"DO"
)
resp
.
cmp
(
bind
)
# B11. DS Child Zone No Data Error.
resp
=
knot
.
dig
(
"example"
,
"DS"
,
dnssec
=
True
)
resp
.
check
(
rcode
=
"NOERROR"
,
flags
=
"QR AA"
,
eflags
=
"DO"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment