summaryrefslogtreecommitdiffstats
path: root/test/functest/results.py
diff options
context:
space:
mode:
authorRomanos Skiadas <rski@intracom-telecom.com>2016-12-07 14:11:16 +0200
committerRomanos Skiadas <rski@intracom-telecom.com>2016-12-13 15:35:52 +0200
commitac65b2e59e4e27b005f4541eddd36fe811bb854b (patch)
treec7ffd4fb744b48d838f78e515a9fec84c4c38835 /test/functest/results.py
parente01762afb78c7c4938ce16d52b7f47fdbb4ed4dc (diff)
Testcase for router/FloatingIP & net assoc mutual exclusivity
A testcase for ODL Bug 6962, testing whether a subnet with a router can be network associated: - Create two VMs, each in a subnet with a router - Network assoc the two networks in a VPN iRT=eRT - Try to ping from one VM to the other - Assign a floating IP to a VM - Ping it JIRA: SDNVPN-88 Change-Id: I464f62b8bba55bc5d162071406637f6be846f223 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
Diffstat (limited to 'test/functest/results.py')
-rw-r--r--test/functest/results.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functest/results.py b/test/functest/results.py
index 37dfc24..66e399e 100644
--- a/test/functest/results.py
+++ b/test/functest/results.py
@@ -10,6 +10,7 @@
import time
import functest.utils.functest_logger as ft_logger
+import functest.utils.functest_utils as ft_utils
logger = ft_logger.Logger("sdnvpn-results").getLogger()
@@ -161,6 +162,16 @@ class Results(object):
self.add_failure(test_case_name)
break
+ def ping_ip_test(self, address):
+ ping = "ping %s -c 3" % address
+ testcase_name = "Ping IP %s" % address
+ exit_code = ft_utils.execute_command(ping)
+
+ if exit_code != 0:
+ self.add_failure(testcase_name)
+ else:
+ self.add_success(testcase_name)
+
def compile_summary(self, SUCCESS_CRITERIA):
success_message = "All the subtests have passed."
failure_message = "One or more subtests have failed."