diff options
Diffstat (limited to 'stor4nfv_tests')
-rw-r--r-- | stor4nfv_tests/__init__.py | 0 | ||||
-rw-r--r-- | stor4nfv_tests/stor4nfv_k8s.py | 31 | ||||
-rw-r--r-- | stor4nfv_tests/stor4nfv_os.py | 25 |
3 files changed, 56 insertions, 0 deletions
diff --git a/stor4nfv_tests/__init__.py b/stor4nfv_tests/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/stor4nfv_tests/__init__.py diff --git a/stor4nfv_tests/stor4nfv_k8s.py b/stor4nfv_tests/stor4nfv_k8s.py new file mode 100644 index 0000000..bbc600e --- /dev/null +++ b/stor4nfv_tests/stor4nfv_k8s.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python +# +# Copyright (c) 2018 All rights reserved +# This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# + +import sys +import os +import subprocess + +import functest_kubernetes.k8stest as k8stest + + +class K8sStor4nfvTest(k8stest.K8sTesting): + + """Stor4NFV Kubernetes test suite""" + def __init__(self, **kwargs): + if "case_name" not in kwargs: + kwargs.get("case_name", 'stor4nfv_k8s') + super(K8sStor4nfvTest, self).__init__(**kwargs) + + def run_kubetest(self): + success = True + if success: + self.result = 100 + elif failure: + self.result = 0 diff --git a/stor4nfv_tests/stor4nfv_os.py b/stor4nfv_tests/stor4nfv_os.py new file mode 100644 index 0000000..1c4a099 --- /dev/null +++ b/stor4nfv_tests/stor4nfv_os.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +# +# Copyright (c) 2018 All rights reserved +# This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# + +import sys +import os +import logging + +from xtesting.core import feature + +logger = logging.getLogger(__name__) + + +class OsStor4nfvTest(feature.Feature): + + def execute(self): + logger.info("Stor4NFV OpenStack test suite") + self.result = 100 + return feature.Feature.EX_OK |