mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
test: add ft get hardware token api
This commit is contained in:
@@ -27,6 +27,11 @@ def change_password(new_password, user='admin', old_password='0000', jwt=config.
|
||||
return requests.post(url=config.BASE_URL + '/api/v2/password', headers={"Authorization": jwt}, json={"name": user, "old_pass": old_password, "new_pass": new_password})
|
||||
|
||||
|
||||
@gen_check
|
||||
def get_hwtoken(jwt=config.default_jwt):
|
||||
return requests.get(url=config.BASE_URL + '/api/v2/hwtoken', headers={"Authorization": jwt})
|
||||
|
||||
|
||||
@gen_check
|
||||
def get_license(jwt=config.default_jwt):
|
||||
return requests.get(url=config.BASE_URL + '/api/v2/license', headers={"Authorization": jwt})
|
||||
|
||||
Reference in New Issue
Block a user