Remove obsolete test
The current PR no longer support creating from string
This commit is contained in:
parent
9e40421bcc
commit
ab002f760d
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user