@@ -181,7 +181,7 @@ def test_create_apiservice_from_yaml_with_conflict(self):
181
181
svc = reg_api .read_api_service (
182
182
name = "v1alpha1.wardle.k8s.io" )
183
183
self .assertIsNotNone (svc )
184
- with self .assertRaises (utils .FailToCreateError ) as cm :
184
+ with self .assertRaises (utils .FailToExecuteError ) as cm :
185
185
utils .create_from_yaml (
186
186
k8s_client , "kubernetes/e2e_test/test_yaml/api-service.yaml" )
187
187
exp_error = ('Error from server (Conflict): '
@@ -243,7 +243,7 @@ def test_create_implicit_service_list_from_yaml_with_conflict(self):
243
243
json file that implicitly indicates the kind of individual objects
244
244
"""
245
245
k8s_client = client .api_client .ApiClient (configuration = self .config )
246
- with self .assertRaises (utils .FailToCreateError ):
246
+ with self .assertRaises (utils .FailToExecuteError ):
247
247
utils .create_from_yaml (
248
248
k8s_client , self .path_prefix + "implicit-svclist.json" )
249
249
core_api = client .CoreV1Api (k8s_client )
@@ -320,7 +320,7 @@ def test_create_from_multi_resource_yaml_with_conflict(self):
320
320
svc = core_api .read_namespaced_service (name = "mock-2" ,
321
321
namespace = "default" )
322
322
self .assertIsNotNone (svc )
323
- with self .assertRaises (utils .FailToCreateError ) as cm :
323
+ with self .assertRaises (utils .FailToExecuteError ) as cm :
324
324
utils .create_from_yaml (
325
325
k8s_client , self .path_prefix + "yaml-conflict-multi.yaml" )
326
326
exp_error = ('Error from server (Conflict): {"kind":"Status",'
@@ -345,7 +345,7 @@ def test_create_from_multi_resource_yaml_with_multi_conflicts(self):
345
345
Should raise an exception that contains two error messages.
346
346
"""
347
347
k8s_client = client .api_client .ApiClient (configuration = self .config )
348
- with self .assertRaises (utils .FailToCreateError ) as cm :
348
+ with self .assertRaises (utils .FailToExecuteError ) as cm :
349
349
utils .create_from_yaml (
350
350
k8s_client , self .path_prefix + "triple-nginx.yaml" )
351
351
exp_error = ('Error from server (Conflict): {"kind":"Status",'
0 commit comments