Add tests for client registration
Fix missing tests for client registration Change-Id: Ic74038fc15c22ab81dd77547be4048033c131623changes/36/296436/1
parent
0fb98abd05
commit
4565febd97
|
@ -29,8 +29,11 @@ class RegistrationManager(object):
|
|||
|
||||
def __init__(self, client):
|
||||
self.client = client
|
||||
self.endpoint = self.client.endpoint + 'clients/'
|
||||
self.headers = {'X-Auth-Token': client.token}
|
||||
self.endpoint = self.client.endpoint + '/v1/clients/'
|
||||
|
||||
@property
|
||||
def headers(self):
|
||||
return {'X-Auth-Token': self.client.auth_token}
|
||||
|
||||
def create(self, client_info):
|
||||
r = requests.post(self.endpoint,
|
||||
|
|
Loading…
Reference in New Issue