mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
test: add ft test case for empty mqtt subscription topic
This commit is contained in:
@@ -95,3 +95,5 @@ ${NEU_ERR_PLUGIN_NOT_FOUND} 3014
|
||||
${NEU_ERR_PLUGIN_DEVICE_NOT_RESPONSE} 3015
|
||||
${NEU_ERR_PLUGIN_NOT_SUPPORT_TEMPLATE} 3016
|
||||
${NEU_ERR_PLUGIN_NOT_SUPPORT_WRITE_TAGS} 3017
|
||||
|
||||
${NEU_ERR_MQTT_SUBSCRIBE_FAILURE} 4010
|
||||
|
||||
@@ -45,6 +45,14 @@ North APP subscribe multiple nonexistent groups, it should fail.
|
||||
Check Response Status ${res} 404
|
||||
Check Error Code ${res} ${NEU_ERR_GROUP_NOT_EXIST}
|
||||
|
||||
North MQTT APP subscribe with empty topic, it should fail.
|
||||
${g1} = Evaluate {"driver": "modbus-node", "group": "group1", "params":{"topic":""}}
|
||||
|
||||
${res}= Subscribe Groups mqtt ${g1}
|
||||
|
||||
Check Response Status ${res} 200
|
||||
Check Error Code ${res} ${NEU_ERR_MQTT_SUBSCRIBE_FAILURE}
|
||||
|
||||
North APP subscribe multiple groups, it should return success
|
||||
Add Group modbus-node group1 1000
|
||||
Add Group modbus-node group2 1000
|
||||
|
||||
Reference in New Issue
Block a user