diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2017-06-07 16:12:41 +0200 |
---|---|---|
committer | Thomas Sounapoglou <tomsou82@gmail.com> | 2017-09-04 11:20:14 +0300 |
commit | 56107fbfd2c991cc00d999fb3b081c979f56db86 (patch) | |
tree | 9d18b2ab64ffedc7ad1455264321da256d2b2f63 /sdnvpn/test/functest/testcase_3.py | |
parent | fbbc9af8629f7521561ef16ed13484175ec2d723 (diff) |
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 <jose.lausuch@ericsson.com>
Diffstat (limited to 'sdnvpn/test/functest/testcase_3.py')
-rw-r--r-- | sdnvpn/test/functest/testcase_3.py | 14 |
1 files changed, 3 insertions, 11 deletions
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(): |