Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
23
Issues
23
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
5c77b440
Commit
5c77b440
authored
Apr 24, 2014
by
Lubos Slovak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check also TTLs in unchanged records
parent
8a6bf194
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests-extra/tests/ddns/ttl/test.py
tests-extra/tests/ddns/ttl/test.py
+2
-2
No files found.
tests-extra/tests/ddns/ttl/test.py
View file @
5c77b440
...
...
@@ -22,7 +22,7 @@ up = master.update(zone)
up
.
add
(
"mail.example.com."
,
1000
,
"A"
,
"1.2.3.4"
)
up
.
send
(
"REFUSED"
)
resp
=
master
.
dig
(
"mail.example.com."
,
"A"
)
resp
.
check_record
(
section
=
"answer"
,
rtype
=
"A"
,
rdata
=
"192.0.2.3"
)
resp
.
check_record
(
section
=
"answer"
,
rtype
=
"A"
,
ttl
=
"3600"
,
rdata
=
"192.0.2.3"
)
resp
.
check_record
(
section
=
"answer"
,
rtype
=
"A"
,
nordata
=
"1.2.3.4"
)
# Try to add two RRs belonging to one RRSet, but with different TTLs
...
...
@@ -48,7 +48,7 @@ up.send("NOERROR")
resp
=
master
.
dig
(
"mail.example.com."
,
"ANY"
)
resp
.
check_record
(
section
=
"answer"
,
rtype
=
"A"
,
ttl
=
"1000"
,
rdata
=
"1.2.3.4"
)
resp
.
check_record
(
section
=
"answer"
,
rtype
=
"A"
,
nordata
=
"192.0.2.3"
)
resp
.
check_record
(
section
=
"answer"
,
rtype
=
"AAAA"
,
rdata
=
"2001:db8::3"
)
resp
.
check_record
(
section
=
"answer"
,
rtype
=
"AAAA"
,
ttl
=
"3600"
,
rdata
=
"2001:db8::3"
)
# Some prerequisities for the next test
up
=
master
.
update
(
zone
)
...
...
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