Commit fe572369 authored by chrissi^'s avatar chrissi^
Browse files

parker: Test if world is reachable

parent f059324c
......@@ -244,3 +244,36 @@ def test_good_running_ipv6_default(target, in_good_running, config):
break
else:
assert False, "No Default route via wireguard found!"
@pytest.mark.running_mode
@pytest.mark.flaky(reruns=20, reruns_delay=10)
def test_good_running_ping_v4_parker(target, in_good_running, config):
command = target.get_driver("ShellDriver")
stdout, _, rc = command.run(
"ping -c 10 -4 gandolf.stratum0.org"
)
for l in stdout:
if "transmitted" in l:
match = re.search(r"(\d+) packets received", l, re.DOTALL)
assert match, "Ping result unparseable"
assert int(match[1]) > 5, "Packetloss is > 50%"
break
else:
assert False, "Ping failed!"
@pytest.mark.running_mode
@pytest.mark.flaky(reruns=20, reruns_delay=10)
def test_good_running_ping_v6_parker(target, in_good_running, config):
command = target.get_driver("ShellDriver")
stdout, _, rc = command.run(
"ping -c 10 -6 gandolf.stratum0.org"
)
for l in stdout:
if "transmitted" in l:
match = re.search(r"(\d+) packets received", l, re.DOTALL)
assert match, "Ping result unparseable"
assert int(match[1]) > 5, "Packetloss is > 50%"
break
else:
assert False, "Ping failed!"
Supports Markdown
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