summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomsou <soth@intracom-telecom.com>2017-05-25 09:42:15 +0000
committertomsou <soth@intracom-telecom.com>2017-05-25 09:46:05 +0000
commit4d3ffb74c7c896f9a7784fe2e8f0c934d3dabe95 (patch)
treef4e469c546c9ee457cf80fbfc126ebe7bf724ca5
parentf27dee492379404be1570c37a2c76bdbe234abc4 (diff)
Fix fail of pinging a floating IP- testcase8
-Raise the upper bound for ping action JIRA: SDNVPN-154 Change-Id: Ifadf58f551f706a90cc17b0b1f8d05718e4908f9 Signed-off-by: tomsou <soth@intracom-telecom.com>
-rw-r--r--sdnvpn/lib/results.py2
-rw-r--r--sdnvpn/test/functest/testcase_8.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/sdnvpn/lib/results.py b/sdnvpn/lib/results.py
index aa8dfa6..679284e 100644
--- a/sdnvpn/lib/results.py
+++ b/sdnvpn/lib/results.py
@@ -165,7 +165,7 @@ class Results(object):
break
def ping_ip_test(self, address):
- ping = "ping %s -c 3" % address
+ ping = "ping %s -c 10" % address
testcase_name = "Ping IP %s" % address
logger.debug(testcase_name)
exit_code = ft_utils.execute_command(ping)
diff --git a/sdnvpn/test/functest/testcase_8.py b/sdnvpn/test/functest/testcase_8.py
index eca08ec..d1e34ed 100644
--- a/sdnvpn/test/functest/testcase_8.py
+++ b/sdnvpn/test/functest/testcase_8.py
@@ -144,6 +144,7 @@ def main():
else:
results.add_failure(msg)
+ results.add_to_summary(0, "=")
results.record_action("Ping %s via Floating IP" % vm_1.name)
results.add_to_summary(0, "-")
results.ping_ip_test(fip['fip_addr'])