summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-03-02 09:04:15 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-03-02 09:11:59 +0100
commit349d25fb43e6a132edd80ce9c44a3982867eb0b7 (patch)
tree7b7b87f62d434e45ccfc8abf3c87fc7243e58148
parent6c768b6740af8d537dc9735b7f36f0e8cc652511 (diff)
Switch to Xtesting
It inherits from xtesting.core.feature [1]. [1] http://xtesting.readthedocs.io/en/latest/apidoc/xtesting.core.feature.html Change-Id: I3d64bce859de7132384b3cf0a6383348cc20b3b1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--requirements.txt1
-rw-r--r--sdnvpn/test/functest/run_sdnvpn_tests.py8
2 files changed, 5 insertions, 4 deletions
diff --git a/requirements.txt b/requirements.txt
index 2fce79e..19546d0 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -12,3 +12,4 @@ python-heatclient>=1.6.1 # Apache-2.0
python-keystoneclient>=3.8.0 # Apache-2.0
python-neutronclient>=6.3.0 # Apache-2.0
python-novaclient>=9.0.0 # Apache-2.0
+xtesting # Apache-2.0
diff --git a/sdnvpn/test/functest/run_sdnvpn_tests.py b/sdnvpn/test/functest/run_sdnvpn_tests.py
index 4f391f2..41bd6a1 100644
--- a/sdnvpn/test/functest/run_sdnvpn_tests.py
+++ b/sdnvpn/test/functest/run_sdnvpn_tests.py
@@ -15,7 +15,7 @@ import sys
import traceback
import yaml
-from functest.core import feature as base
+from xtesting.core import feature
from sdnvpn.lib import config as sdnvpn_config
from sdnvpn.lib import openstack_utils as os_utils
from sdnvpn.lib.gather_logs import gather_logs
@@ -24,7 +24,7 @@ from sdnvpn.lib import utils as test_utils
COMMON_CONFIG = sdnvpn_config.CommonConfig()
-class SdnvpnFunctest(base.Feature):
+class SdnvpnFunctest(feature.Feature):
__logger = logging.getLogger(__name__)
@@ -123,9 +123,9 @@ class SdnvpnFunctest(base.Feature):
if overall_status == "PASS":
self.result = 100
- return base.Feature.EX_OK
+ return feature.Feature.EX_OK
- return base.Feature.EX_RUN_ERROR
+ return feature.Feature.EX_RUN_ERROR
if __name__ == '__main__':