summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomanos Skiadas <rski@intracom-telecom.com>2016-12-14 14:55:14 +0200
committerRomanos Skiadas <rski@intracom-telecom.com>2016-12-16 14:56:57 +0200
commit84c6a7e3c8f39602eb3da307c97694b81b8c37bd (patch)
treefecbc7de4d1c9a7dfc64db5332c68097de2668bd
parent89ce471643c0cbaf41cac0e6995e754b2169889b (diff)
Fix table formatting in testcase 7
Not enough '-' Change-Id: Ia90a678cdf7022cbdbafb1d42531e7aaff716c2c Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
-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 66e399e..5bddb06 100644
--- a/sdnvpn/lib/results.py
+++ b/sdnvpn/lib/results.py
@@ -165,6 +165,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 fa50888..af4f644 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(TESTCASE_CONFIG.success_criteria)