Commit 0d084fb6 authored by Alain Takoudjou's avatar Alain Takoudjou

promise.plugin: fix test ipv6_is_faster failing when ping outside is not possible

parent 766937d4
......@@ -62,7 +62,13 @@ extra_config_dict = {
result = self.getPromiseResult(self.promise_name)
last_message = result['result']['message'].split('\n')[-1]
self.assertEqual(result['result']['failed'], False)
self.assertEqual(last_message, "OK: IPv4 reachable, IPv6 reachable")
#self.assertEqual(last_message, "OK: IPv4 reachable, IPv6 reachable")
# some testnodes cannot ping because they are qemu VM with Nat network, and
# ICMP is disabled. Expected result is "OK: IPv4 reachable, IPv6 reachable"
# but it ICMP is not working, we will have "IPv4 unreachable" in the message
# so we will test only if the ping returned "OK" and if IPv6 was reachable.
self.assertTrue(last_message.startswith("OK:"))
self.assertTrue("IPv6 reachable" in last_message)
def test_ipv4_is_faster(self):
content = self.base_content % {
......
Markdown is supported
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