Skip to content

Commit

Permalink
feat: add scan tags api
Browse files Browse the repository at this point in the history
  • Loading branch information
gc87 committed May 20, 2024
1 parent 8927be9 commit ba07160
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/ft/neuron/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,4 +349,9 @@ def mqtt_node_setting(node):
"offline-cache": False, "cache-sync-interval": 100, "host": "broker.emqx.io", "port": 1883, "username": "", "password": "", "ssl": False})

def get_nodes_disable_auth(type):
return requests.get(url=config.BASE_URL + '/api/v2/node', params={"type": type})
return requests.get(url=config.BASE_URL + '/api/v2/node', params={"type": type})


@gen_check
def scan_tags(node, id):
return requests.post(url=config.BASE_URL + "/api/v2/scan/tags", headers={"Authorization": config.default_jwt}, json={"node": node, "id": id})
1 change: 1 addition & 0 deletions tests/ft/neuron/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,6 @@
NEU_ERR_PLUGIN_NOT_SUPPORT_READ_SYNC = 3018
NEU_ERR_PLUGIN_TYPE_NOT_SUPPORT = 3019
NEU_ERR_PLUGIN_TAG_VALUE_OUT_OF_RANGE = 3020
NEU_ERR_PLUGIN_NOT_SUPPORT_SCAN_TAGS = 3021

NEU_ERR_MQTT_SUBSCRIBE_FAILURE = 4010

0 comments on commit ba07160

Please sign in to comment.