summaryrefslogtreecommitdiffstats
path: root/stor4nfv_tests/stor4nfv_k8s.py
diff options
context:
space:
mode:
authorQiaowei Ren <qiaowei.ren@intel.com>2018-03-20 13:44:22 +0800
committerQiaowei Ren <qiaowei.ren@intel.com>2018-03-21 19:57:49 +0800
commita0d67adf3f8c6f2a869fd2440c0b862860e1479d (patch)
tree339303b18fb4d758d07a4075f73081b056624950 /stor4nfv_tests/stor4nfv_k8s.py
parent80a855170e1488eeb8cc0833ffba2b1938c327ac (diff)
Add k8s test case
Change-Id: I7ef6fd6aa31fae47cca446d31b6b54d13454df9c Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
Diffstat (limited to 'stor4nfv_tests/stor4nfv_k8s.py')
-rw-r--r--stor4nfv_tests/stor4nfv_k8s.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/stor4nfv_tests/stor4nfv_k8s.py b/stor4nfv_tests/stor4nfv_k8s.py
new file mode 100644
index 0000000..541cf36
--- /dev/null
+++ b/stor4nfv_tests/stor4nfv_k8s.py
@@ -0,0 +1,26 @@
+#!/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)
+ self.check_envs()
+ self.cmd = ['/src/k8s.io/kubernetes/cluster/validate-cluster.sh']