Commit Graph
42 Commits
Author SHA1 Message Date
eeff 3cb02d3414 Fix functionality tests to remove persistence data 2022-01-14 18:48:03 +08:00
eeff 409188351f Fix functionality tests to remove persistence data 2022-01-14 18:47:44 +08:00
gc87 258f0a828a Remove the libplugin-opcua project 2022-01-12 11:11:36 +08:00
eeff 2928a7a46a Fix mqtt functionality tests CI
1. Make mosquitto more verbose
  2. Sleep for 1 second in mqtt LOGIN keyword
2021-12-31 18:43:43 +08:00
eeff 1b4d373b9c Fix mqtt functionality tests CI
1. Start the mosquitto broker
  2. Change the mqtt client version to 3.1.1
2021-12-31 16:39:57 +08:00
eeff d23311447e Fix mqtt functionality tests CI 2021-12-31 11:04:17 +08:00
eeff 05f1e19ac0 Change functionality test mqtt broker host to localhost 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
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 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
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
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
lixiumei 654ba660d2 Adding functional tests for opcua RW 2021-12-09 19:07:26 +08:00
eeff 476317cfcc Fix node API functionality test
1. Fix test for GET unknown node type
  1. Add test for GET invalid node type
2021-12-08 14:39:33 +08:00
lixiumei 373aa2f167 Improve modbus tcp function test 2021-12-06 14:34:23 +08:00
Parker Liu de2588fedc Add a function test for read input reg area as int16 2021-12-02 14:31:59 +08:00
lixiumei fe4896d319 Add login and logout function test 2021-12-02 14:17:01 +08:00
lixiumei e477e8d184 Fix http error code 2021-12-01 16:59:02 +08:00
lixiumei 6a824a6e8c API function text add JWT 2021-11-29 18:16:50 +08:00
fengzero fd07e7fd5c ft: modbus tcp read/write
modbus tcp server simulator
2021-11-29 12:17:33 +08:00
fengzero 6a7297cc5a ft: Add node state/ctl case 2021-11-24 18:03:04 +08:00
fengzero 25898eb99c ft: Add modbus/opcua rw and mqtt test cases 2021-11-24 14:49:21 +08:00
fengzero f839095692 api: node supports updating name 2021-11-24 14:49:21 +08:00
fengzero fbb004e0b3 return the correct node according to the node type 2021-11-24 14:49:21 +08:00
fengzero 3ed6f842ec refactor http error response
use the state of the adapter as the running state of the plugin
2021-11-24 14:49:21 +08:00
fengzero 2daa9f03e8 Add function test for tag, node state, node ctl and
subscribe/unsubscribe
2021-11-18 16:24:13 +08:00
fengzero 2ce448e2a4 add function test for group config api 2021-11-09 17:59:52 +08:00
fengzero 7aa611a2e8 Add node-related functional tests
api response the corresponding error code
2021-11-09 17:59:52 +08:00
fengzero 82f8f4b736 ci: function test 2021-09-30 15:08:24 +08:00