Merge "Add client datasource action API for action-execution-interface"

This commit is contained in:
Jenkins 2015-04-22 21:37:30 +00:00 committed by Gerrit Code Review
commit 36abcef3ec
1 changed files with 6 additions and 0 deletions

View File

@ -167,6 +167,12 @@ class Client(object):
self.datasource_path % datasource)
return body
def execute_datasource_action(self, service_name, action, body):
uri = "?action=%s" % (action)
resp, body = self.httpclient.post(
(self.datasource_path % service_name) + str(uri), body=body)
return body
def list_drivers(self):
resp, body = self.httpclient.get(self.driver)
return body