diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-08-30 22:43:13 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-08-31 10:02:52 +0200 |
commit | 4a3c47e4d729c14aaeff29fcfb09799b3441ff13 (patch) | |
tree | eb3e9307d23a591d0f8d9d2edcfdfd57feea8513 /functest_kubernetes/test_k8stest.py | |
parent | 00fa87c3ce28c226a90fc8b91bae948b79180085 (diff) |
Remove useless env vars
In OPNFV context, provider is always local.
Change-Id: Ieb51153bedfec34c0a3dfba9705b0b2afcebb8c2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest_kubernetes/test_k8stest.py')
-rw-r--r-- | functest_kubernetes/test_k8stest.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/functest_kubernetes/test_k8stest.py b/functest_kubernetes/test_k8stest.py index c9faf35d..b03bb6dc 100644 --- a/functest_kubernetes/test_k8stest.py +++ b/functest_kubernetes/test_k8stest.py @@ -32,23 +32,6 @@ class K8sTests(unittest.TestCase): self.k8stesting = k8stest.K8sTesting() - def _test_no_env_var(self, var): - del os.environ[var] - with self.assertRaises(Exception): - k8stest.K8sTesting().check_envs() - - def test_no_deploy_scenario(self): - self._test_no_env_var("DEPLOY_SCENARIO") - - def test_no_kube_master_ip(self): - self._test_no_env_var("KUBE_MASTER_IP") - - def test_no_kube_master_url(self): - self._test_no_env_var("KUBE_MASTER_URL") - - def test_no_kubernetes_provider(self): - self._test_no_env_var("KUBERNETES_PROVIDER") - @mock.patch('functest_kubernetes.k8stest.os.path.isfile', return_value=False) def test_run_missing_config_file(self, mock_func): |