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:
Mohammed Naser 2018-12-07 20:39:35 -05:00 committed by Spyros Trigazis
parent 8acbc988ca
commit cc0fb7fe8a
1 changed files with 1 additions and 1 deletions

View File

@ -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):