From 56107fbfd2c991cc00d999fb3b081c979f56db86 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Wed, 7 Jun 2017 16:12:41 +0200 Subject: Adapt SDNVPN Functest test according to new framework - Inherit from TestCase class in Functest - Remove any push to DB method, since Functest takes care of it After this change, we will be able to load this module from Functest and make a python call instead of a bash call. Change-Id: I80bdb7eaac3a2d1f48e32bafa381a42cadb36138 Signed-off-by: jose.lausuch --- sdnvpn/test/functest/testcase_3.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'sdnvpn/test/functest/testcase_3.py') diff --git a/sdnvpn/test/functest/testcase_3.py b/sdnvpn/test/functest/testcase_3.py index 058a270..44e7366 100644 --- a/sdnvpn/test/functest/testcase_3.py +++ b/sdnvpn/test/functest/testcase_3.py @@ -12,7 +12,6 @@ # - Add the functest Quagga as a neighbor # - Verify that the OpenDaylight and gateway Quagga peer -import argparse import logging import os import sys @@ -24,18 +23,11 @@ from sdnvpn.lib import utils as test_utils from sdnvpn.lib import config as sdnvpn_config from sdnvpn.lib.results import Results -COMMON_CONFIG = sdnvpn_config.CommonConfig() -TESTCASE_CONFIG = sdnvpn_config.TestcaseConfig("testcase_3") - -logger = logging.getLogger('sdnvpn-testcase-3') -parser = argparse.ArgumentParser() +logger = logging.getLogger(__name__) -parser.add_argument("-r", "--report", - help="Create json result file", - action="store_true") - -args = parser.parse_args() +COMMON_CONFIG = sdnvpn_config.CommonConfig() +TESTCASE_CONFIG = sdnvpn_config.TestcaseConfig("testcase_3") def main(): -- cgit 1.2.3-korg