Skip to content
Snippets Groups Projects
Commit 11dab12f authored by Marek Vavruša's avatar Marek Vavruša
Browse files

tests/integration: do not match address if not exists (workaround)

this is a workaround, as the server may not support stub zones.
in that case it may ask a different root server than we have in
configuration
parent 40d4f768
Branches
Tags
No related merge requests found
......@@ -238,6 +238,10 @@ class Scenario:
step_id = 0
if self.current_step is not None:
step_id = self.current_step.id
# Unknown address, select any match
# TODO: workaround until the server supports stub zones
if address not in [rng.address for rng in self.ranges]:
address = None
# Find current valid query response range
for rng in self.ranges:
if rng.eligible(step_id, address):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment