Skip to content

Commit 03ee34f

Browse files
committed
Remove obsolete test
The current PR no longer support creating from string
1 parent ae973ac commit 03ee34f

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

kubernetes/e2e_test/test_utils.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,6 @@ def test_create_apps_deployment_from_yaml(self):
5959
except ApiException:
6060
continue
6161

62-
def test_create_apps_deployment_from_yaml_string(self):
63-
k8s_client = client.api_client.ApiClient(configuration=self.config)
64-
with open(self.path_prefix + "apps-deployment-2.yaml") as f:
65-
yaml_str = f.read()
66-
67-
utils.create_from_yaml(
68-
k8s_client, yaml_str)
69-
70-
app_api = client.AppsV1beta1Api(k8s_client)
71-
dep = app_api.read_namespaced_deployment(name="nginx-app-2",
72-
namespace="default")
73-
self.assertIsNotNone(dep)
74-
while True:
75-
try:
76-
app_api.delete_namespaced_deployment(
77-
name="nginx-app-2", namespace="default",
78-
body={})
79-
break
80-
except ApiException:
81-
continue
82-
8362
def test_create_apps_deployment_from_yaml_obj(self):
8463
k8s_client = client.api_client.ApiClient(configuration=self.config)
8564
with open(self.path_prefix + "apps-deployment.yaml") as f:

0 commit comments

Comments
 (0)