From ac65b2e59e4e27b005f4541eddd36fe811bb854b Mon Sep 17 00:00:00 2001 From: Romanos Skiadas Date: Wed, 7 Dec 2016 14:11:16 +0200 Subject: 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 --- test/functest/results.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/functest/results.py') 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." -- cgit 1.2.3-korg