Commit Graph

465 Commits

Author SHA1 Message Date
fengzero eab7abae38 schema: add file type 2021-12-30 18:12:55 +08:00
fengzero 7607a42299 schema: add attribute, condition
attribute: optional indicates that the field is optional, required
indicates that the filed is required.

condition: when the value of the preceding field is the set value, the
field is displayed.
2021-12-30 18:12:55 +08:00
fengzero fa4724da97 del the test of mqtt in config 2021-12-30 18:12:55 +08:00
eeff 322464c54b Fix memory leak in macro ADAPTER_RESP_CODE 2021-12-30 11:16:44 +08:00
eeff 05f1e19ac0 Change functionality test mqtt broker host to localhost 2021-12-29 17:14:02 +08:00
eeff b1dcbf5efb Enable mqtt functionality tests in CI 2021-12-29 17:14:02 +08:00
eeff f56c32ab39 Move functionality tests python dependencies to requirements.txt 2021-12-29 17:14:02 +08:00
fengzero d4fd6b1848 fix to read the free data when unsubscribing 2021-12-29 17:10:10 +08:00
fengzero e4f947f2d2 install plugin to lib/neuron, install public header to include/neuron 2021-12-29 17:10:10 +08:00
gc87 3d58df133b The emulator supports data points of Chinese ID 2021-12-29 16:52:13 +08:00
eeff 96b6f030aa Add mosquitto broker to CI docker base image 2021-12-29 16:45:24 +08:00
eeff eff9d5937d Reduce modbus tcp functionality tests sleep interval 2021-12-29 15:10:49 +08:00
eeff 291e9c2fc3 Refactor functionality tests
Use [Teardown] section to ensure tests tear down properly
2021-12-29 15:10:49 +08:00
eeff 9972b4045e Refactor functionality tests to import API resources conditionally
1. Add keyword Import Neuron API resource in common.resource, so that
     when robotframework command line set:
     1.1 `--variable neuron_api:http` will test using http api (default)
     1.2 `--variable neuron_api:mqtt` will test using mqtt api
  2. Add keyword Skip If Not Http API in common.resource, so that we
     could run tests only meaningful for http.
  3. Update test suites accordingly
2021-12-29 15:10:49 +08:00
eeff 26d843aa5d Add MQTT library for functionality tests 2021-12-29 15:10:49 +08:00
eeff b64e441114 Add mqtt api functionality tests resource 2021-12-29 15:10:49 +08:00
eeff 96c3bb4ddd Add mqtt function code to functionality tests resource 2021-12-29 15:10:49 +08:00
eeff 32c289c5db Fix mqtt api to return response when request json decode fails 2021-12-28 14:43:10 +08:00
eeff 81d7838656 Fix mqtt api NEU_MQTT_OP_GET_NODES error handling
1. When node type is NEU_NODE_TYPE_UNKNOWN, success vacuously
  2. When node type is invalid, return NEU_ERR_PARAM_IS_WRONG
2021-12-27 22:51:01 +08:00
eeff daee5c2592 Fix mqtt api read function
Fix mqtt plugin to check error code when handling NEU_MQTT_OP_READ,
  so that the plugin could send back an error message.
2021-12-27 22:33:14 +08:00
eeff f41559bd73 Fix mqtt api get node setting
Fix handling of NEU_MQTT_OP_GET_NODE_SETTING to return the setting.
2021-12-22 18:59:27 +08:00
zhanghongtong f3b301272a ci: update target event 2021-12-22 16:07:06 +08:00
eeff bf8079ad18 Refactor functionality tests
1. Refactor group config api tests to use keywords from api resources
  2. Refactor modbus tcp tests to use keywords from api resources
  3. Refactor node api tests to use keywords from api resources
  4. Refactor opcua tests to use keywords from api resources
  5. Refactor tag api tests to use keywords from api resources
2021-12-21 18:56:33 +08:00
eeff a5f78bfdac Refactor functionality tests
1. Refactor http api keywords to be more functional
  2. Move tag compare keywords to common.resource
2021-12-21 18:56:33 +08:00
eeff f99b2363cd Refactor functionality tests
Split neuron.robot into common.resource and api_http.resource
2021-12-21 18:56:33 +08:00
eeff 731a1570c4 Refactor functionality test
Remove grp_config_mqtt_test.robot
2021-12-21 18:56:33 +08:00
eeff 13a65b9056 Refactor functionality tests
Remove node_mqtt_test.robot
2021-12-21 18:56:33 +08:00
eeff 2426daa607 Refactor functionality tests
Remove tag_mqtt_test.robot
2021-12-21 18:56:33 +08:00
eeff 0b5f89f854 Refactor functionality tests
Rename simulator.robot to simulator.resource
2021-12-21 18:56:33 +08:00
eeff 30c1d0f04d Refactor functionality tests
Rename error.robot to error.resource
2021-12-21 18:56:33 +08:00
Parker Liu a7088140ad Fix issue of it sometimes crashed when cycle read datatag in modbus tcp plugin 2.0.0-alpha.1.1 2021-12-17 11:20:39 +08:00
Parker Liu 4241829ce2 Add install step in CMakeLists.txt file for install neuron output files 2021-12-16 15:32:27 +08:00
gc87 e934239b5d MQTT connection state update 2021-12-16 11:52:33 +08:00
zhanghongtong 5907ee1c5a ci: fix upload release asset failed 2.0.0-alpha.1 2021-12-15 17:46:19 +08:00
zhanghongtong 4301e15ba6 ci: fix upload release asset failed 2021-12-15 17:18:50 +08:00
zhanghongtong 6236845c64 ci: fix upload release asset failed 2021-12-15 16:52:37 +08:00
eeff d837ca94bf Fix use-after-free in mqtt api GET_SUBSCRIBE_GROUP_CONFIG 2021-12-14 17:40:58 +08:00
zhanghongtong 1c0de36b62 ci: update release asset 2021-12-14 17:38:46 +08:00
lixiumei 311ae9f674 ft: format 2021-12-13 16:56:31 +08:00
lixiumei 2ec1640eaf Fixing the configuration in the opcua function test 2021-12-13 16:35:22 +08:00
zhanghongtong 446d034868 ci: don't delete artifact when release 2021-12-13 11:44:09 +08:00
gc87 5e69ec99f4 Set mqtt connection parameters through the web UI 2021-12-13 11:31:21 +08:00
gc87 4cfaf3fcd0 Use web UI to set OPC-UA connection parameters 2021-12-13 11:28:09 +08:00
Parker Liu 6de377cc29 Change the send/recv buffer size of mqttc client to 8192 2021-12-11 11:38:17 +08:00
gc87 572bd046cd MQTT-C client buffer size 2048->20480 2021-12-11 11:38:17 +08:00
Parker Liu 606356d6fd Fix issue of sometimes failed to read multiple points in the coil area
* The functional tester "Read multiple points in the coil area"
  sometimes fail, because there is a mistake when writing bit to coil area
  register. I fix this mistake.
2021-12-11 11:01:19 +08:00
Parker Liu f69610ed1e Fix issue of failed write bool and uint8 to opc ua device
* The opc ua plugin hasn't support bool and byte type value, add bool
  and byte type value in function write_request_vector_generate in
  opcua_handle.c file.
* The simulator of opc ua device lack of uint8 type data in register
  area, add uint8 type data in it.
* The function tester of opc ua has a mistake that write a string to a
  bool type value with json, repace it by bool value.
2021-12-10 18:46:00 +08:00
zhanghongtong 0b5dfc17b0 ci: delete artifact when action scuuessfully 2021-12-10 11:43:58 +08:00
lixiumei 268e6b568b Fix auto-code generation header file with #include json/json.h 2021-12-09 19:07:26 +08:00
lixiumei 654ba660d2 Adding functional tests for opcua RW 2021-12-09 19:07:26 +08:00