File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments