Merge "update check_os.sh admin port seds to match public"
[functest.git] / functest / opnfv_tests / features / sdnvpn.py
index 1919a03..10a97e9 100644 (file)
@@ -7,14 +7,14 @@
 #
 # http://www.apache.org/licenses/LICENSE-2.0
 #
-import functest.core.feature_base as base
+import functest.core.feature as base
+from functest.utils.constants import CONST
 
 
-class SdnVpnTests(base.FeatureBase):
+class SdnVpnTests(base.BashFeature):
 
-    def __init__(self):
-        super(SdnVpnTests, self).__init__(project='sdnvpn',
-                                          case='bgpvpn',
-                                          repo='dir_repo_sdnvpn')
-        dir_sfc_functest = '{}/sdnvpn/test/functest'.format(self.repo)
-        self.cmd = 'cd %s && python ./run_tests.py' % dir_sfc_functest
+    def __init__(self, **kwargs):
+        repo = CONST.__getattribute__('dir_repo_sdnvpn')
+        dir_sfc_functest = '{}/sdnvpn/test/functest'.format(repo)
+        kwargs["cmd"] = 'cd %s && python ./run_tests.py' % dir_sfc_functest
+        super(SdnVpnTests, self).__init__(**kwargs)