summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2016-12-19 15:06:57 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-19 15:06:57 +0000
commit51c2b2d392c31da1e92358e96328105df4754528 (patch)
tree3dbda6d16b89cc33628243ace99d2a7b953720f6
parent2d136f1fac7c5f8b5adf77b1d1bfa80c57e21b29 (diff)
parent84c6a7e3c8f39602eb3da307c97694b81b8c37bd (diff)
Merge "Fix table formatting in testcase 7"
-rw-r--r--sdnvpn/lib/results.py1
-rw-r--r--sdnvpn/test/functest/testcase_7.py6
2 files changed, 3 insertions, 4 deletions
diff --git a/sdnvpn/lib/results.py b/sdnvpn/lib/results.py
index 6c2df11..f665328 100644
--- a/sdnvpn/lib/results.py
+++ b/sdnvpn/lib/results.py
@@ -161,6 +161,7 @@ class Results(object):
def ping_ip_test(self, address):
ping = "ping %s -c 3" % address
testcase_name = "Ping IP %s" % address
+ logger.debug(testcase_name)
exit_code = ft_utils.execute_command(ping)
if exit_code != 0:
diff --git a/sdnvpn/test/functest/testcase_7.py b/sdnvpn/test/functest/testcase_7.py
index d7d840f..c377848 100644
--- a/sdnvpn/test/functest/testcase_7.py
+++ b/sdnvpn/test/functest/testcase_7.py
@@ -132,8 +132,9 @@ def main():
results.get_ping_status(vm_1, vm_2, expected="PASS", timeout=200)
results.add_to_summary(0, "=")
- msg = "Assign a Floating IP to %s" % vm_2.name
+ msg = "Assign a Floating IP to %s and ping it" % vm_2.name
results.record_action(msg)
+ results.add_to_summary(0, '-')
fip = os_utils.create_floating_ip(neutron_client)
fip_added = os_utils.add_floating_ip(nova_client, vm_2.id, fip['fip_addr'])
@@ -142,9 +143,6 @@ def main():
else:
results.add_failure(msg)
- msg = "Ping %s via Floating IP" % vm_2.name
- results.record_action(msg)
- results.add_to_summary(0, "-")
results.ping_ip_test(fip['fip_addr'])
return results.compile_summary()