Browse Source

functional: add body for delete_namespaced_service in k8s

The API for delete_namespaced_service requires a body which when
missing will fail the functional tests.

This patch addresses that issue by adding an empty body in order
for the delete to work properly.

Change-Id: I3b4a4bb08f60d9d18368dd3faa84ab1348acb543
Story: #2002589
Task: #28341
changes/12/623612/2
Mohammed Naser 3 years ago
parent
commit
e0fd3f9ef1
  1. 2
      magnum/tests/functional/python_client_base.py

2
magnum/tests/functional/python_client_base.py

@ -517,7 +517,7 @@ class BaseK8sTest(ClusterTest):
self.assertEqual('frontend', resp.metadata.name)
self.assertTrue(resp.status)
resp = self.k8s_api.delete_namespaced_service(name='frontend',
resp = self.k8s_api.delete_namespaced_service(name='frontend', body={},
namespace='default')
def test_replication_controller_apis(self):

Loading…
Cancel
Save