From ab002f760d76e37ea6a808035555837923be9bb5 Mon Sep 17 00:00:00 2001 From: Oz N Tiram Date: Tue, 25 Jun 2019 22:31:41 +0200 Subject: [PATCH] Remove obsolete test The current PR no longer support creating from string --- kubernetes/e2e_test/test_utils.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/kubernetes/e2e_test/test_utils.py b/kubernetes/e2e_test/test_utils.py index c393ba9f5..ca0f63912 100644 --- a/kubernetes/e2e_test/test_utils.py +++ b/kubernetes/e2e_test/test_utils.py @@ -59,27 +59,6 @@ class TestUtils(unittest.TestCase): except ApiException: continue - def test_create_apps_deployment_from_yaml_string(self): - k8s_client = client.api_client.ApiClient(configuration=self.config) - with open(self.path_prefix + "apps-deployment-2.yaml") as f: - yaml_str = f.read() - - utils.create_from_yaml( - k8s_client, yaml_str) - - app_api = client.AppsV1beta1Api(k8s_client) - dep = app_api.read_namespaced_deployment(name="nginx-app-2", - namespace="default") - self.assertIsNotNone(dep) - while True: - try: - app_api.delete_namespaced_deployment( - name="nginx-app-2", namespace="default", - body={}) - break - except ApiException: - continue - def test_create_apps_deployment_from_yaml_obj(self): k8s_client = client.api_client.ApiClient(configuration=self.config) with open(self.path_prefix + "apps-deployment.yaml") as f: