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
This commit is contained in:
parent
82ecc3e962
commit
72e2aad20e
@ -517,7 +517,7 @@ class BaseK8sTest(ClusterTest):
|
|||||||
self.assertEqual('frontend', resp.metadata.name)
|
self.assertEqual('frontend', resp.metadata.name)
|
||||||
self.assertTrue(resp.status)
|
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')
|
namespace='default')
|
||||||
|
|
||||||
def test_replication_controller_apis(self):
|
def test_replication_controller_apis(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user