Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Knot projects
Knot DNS
Commits
c6b4476f
Commit
c6b4476f
authored
Mar 07, 2017
by
Libor Peltan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: events/soa: retry query after SERVFAIL to avoid hitting AXFR
parent
ffa9cfe1
Pipeline
#2259
passed with stages
in 30 minutes and 36 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tests-extra/tests/events/soa/test.py
tests-extra/tests/events/soa/test.py
+6
-0
No files found.
tests-extra/tests/events/soa/test.py
View file @
c6b4476f
...
...
@@ -4,15 +4,21 @@
from
dnstest.utils
import
*
from
dnstest.test
import
Test
import
dns.rcode
import
random
EXPIRE_SLEEP
=
15
RECHECK_SLEEP
=
0.5
def
test_ok
(
slave
):
resp
=
slave
.
dig
(
"example."
,
"SOA"
)
resp
.
check
(
rcode
=
"NOERROR"
)
t
.
sleep
(
EXPIRE_SLEEP
)
resp
=
slave
.
dig
(
"example."
,
"SOA"
)
if
resp
.
resp
.
rcode
()
==
dns
.
rcode
.
SERVFAIL
:
t
.
sleep
(
RECHECK_SLEEP
)
# retry if we hit the query just in the middle of AXFR
resp
=
slave
.
dig
(
"example."
,
"SOA"
)
resp
.
check
(
rcode
=
"NOERROR"
)
def
test_expired
(
slave
):
...
...
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