summaryrefslogtreecommitdiffstats
path: root/stor4nfv_tests/stor4nfv_k8s.py
blob: 541cf36c6493b352ff30a994ea8f3fdebc9e92e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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']