Add restFul methods to fix backward compatibility issue
Tacker functional tests and applications using old version of tackerclient might be using post/get/delete/put/list method interfaces provided by Client in their applications. These interfaces were removed in the recent changes [1] because of which tacker tests are failing. Added post/delete/put/get/list methods back to the Client class. [1] : https://review.opendev.org/#/c/679956 Closes-Bug: #1844625 Change-Id: I803298dbc16dea9e58ec2a0a5fe3afe431c8532c
This commit is contained in:
parent
edb7dad611
commit
31b7690858
@ -795,6 +795,26 @@ class Client(object):
|
||||
|
||||
# LegacyClient methods
|
||||
|
||||
def delete(self, action, body=None, headers=None, params=None):
|
||||
return self.legacy_client.delete(action, body=body, headers=headers,
|
||||
params=params)
|
||||
|
||||
def get(self, action, body=None, headers=None, params=None):
|
||||
return self.legacy_client.get(action, body=body, headers=headers,
|
||||
params=params)
|
||||
|
||||
def post(self, action, body=None, headers=None, params=None):
|
||||
return self.legacy_client.post(action, body=body, headers=headers,
|
||||
params=params)
|
||||
|
||||
def put(self, action, body=None, headers=None, params=None):
|
||||
return self.legacy_client.put(action, body=body, headers=headers,
|
||||
params=params)
|
||||
|
||||
def list(self, collection, path, retrieve_all=True, **params):
|
||||
return self.legacy_client.list(collection, path,
|
||||
retrieve_all=retrieve_all, **params)
|
||||
|
||||
def list_extensions(self, **_params):
|
||||
return self.legacy_client.list_extensions(**_params)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user