summaryrefslogtreecommitdiffstats
path: root/sdnvpn/test/functest/testcase_1.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2017-06-07 16:12:41 +0200
committerThomas Sounapoglou <tomsou82@gmail.com>2017-09-04 11:20:14 +0300
commit56107fbfd2c991cc00d999fb3b081c979f56db86 (patch)
tree9d18b2ab64ffedc7ad1455264321da256d2b2f63 /sdnvpn/test/functest/testcase_1.py
parentfbbc9af8629f7521561ef16ed13484175ec2d723 (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_1.py')
-rw-r--r--sdnvpn/test/functest/testcase_1.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/sdnvpn/test/functest/testcase_1.py b/sdnvpn/test/functest/testcase_1.py
index 540fe9a..fc45143 100644
--- a/sdnvpn/test/functest/testcase_1.py
+++ b/sdnvpn/test/functest/testcase_1.py
@@ -8,7 +8,6 @@
# http://www.apache.org/licenses/LICENSE-2.0
#
-import argparse
import logging
import sys
@@ -18,15 +17,7 @@ from sdnvpn.lib import config as sdnvpn_config
from sdnvpn.lib import utils as test_utils
from sdnvpn.lib.results import Results
-parser = argparse.ArgumentParser()
-
-parser.add_argument("-r", "--report",
- help="Create json result file",
- action="store_true")
-
-args = parser.parse_args()
-
-logger = logging.getLogger('sdnvpn-testcase-1')
+logger = logging.getLogger(__name__)
COMMON_CONFIG = sdnvpn_config.CommonConfig()
TESTCASE_CONFIG = sdnvpn_config.TestcaseConfig('testcase_1')