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
(cherry picked from commit e0fd3f9ef1
)
This commit is contained in:
parent
8acbc988ca
commit
cc0fb7fe8a
|
@ -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…
Reference in New Issue