File tree 1 file changed +0
-21
lines changed 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -59,27 +59,6 @@ def test_create_apps_deployment_from_yaml(self):
59
59
except ApiException :
60
60
continue
61
61
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
-
83
62
def test_create_apps_deployment_from_yaml_obj (self ):
84
63
k8s_client = client .api_client .ApiClient (configuration = self .config )
85
64
with open (self .path_prefix + "apps-deployment.yaml" ) as f :
You can’t perform that action at this time.
0 commit comments