Skip to content

Commit

Permalink
Remove obsolete test
Browse files Browse the repository at this point in the history
The current PR no longer support creating from string
  • Loading branch information
oz123 committed Jul 23, 2019
1 parent 9e40421 commit ab002f7
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions kubernetes/e2e_test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,27 +59,6 @@ def test_create_apps_deployment_from_yaml(self):
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:
Expand Down

0 comments on commit ab002f7

Please sign in to comment.