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
17
Merge Requests
17
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
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
Hide 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