Feng Lee
20ddd498fc
Rename the 'client_id' field to 'clientid'
2019-09-24 17:06:25 +08:00
JianBo He
26e1d3bcef
Fix emqx_cm_SUITE failed
2019-09-21 16:22:33 +08:00
terry-xiaoyu
18b401d5fc
Fix testcases for new object field protocol
2019-09-21 13:50:18 +08:00
terry-xiaoyu
eb0826ef3f
Fix testcases for new object field protocol
2019-09-21 12:37:08 +08:00
Feng Lee
d945ee4972
Add test cases for new/1, all/0 functions
2019-09-20 23:25:19 +08:00
Feng Lee
699fea4869
Sleep 100 milliseconds
2019-09-20 22:42:33 +08:00
tigercl
b72a82e50b
Merge pull request #2919 from emqx/fix-test-cases
...
Add 'unregister_channel/1' function and test cases
2019-09-20 19:57:47 +08:00
Feng Lee
d0a8086d73
Add 'unregister_channel/1' function and test cases
2019-09-20 19:42:59 +08:00
terry-xiaoyu
a108f292c2
Ensure expiry_interval expired in testcase
2019-09-20 19:26:56 +08:00
terry-xiaoyu
2c07fc310e
Unload meck before testcase ends
2019-09-20 19:15:35 +08:00
terry-xiaoyu
3a39442a1c
Update testcases for session module
2019-09-20 18:50:31 +08:00
zhouzb
fd455e57eb
Fix the test case 't_mod_presence'
2019-09-20 18:38:28 +08:00
terry-xiaoyu
4d214fb6e2
Fix session not saved after maybe_resume_session
2019-09-20 18:28:44 +08:00
zhouzb
f0a1ffc3b1
Fix test case
2019-09-20 17:58:31 +08:00
Feng Lee
6aac73f51f
Fix the test case 't_handle_disconnect'
2019-09-20 16:48:21 +08:00
terry-xiaoyu
b5c9def06a
Add testcases for print and usage
2019-09-20 16:18:24 +08:00
Feng Lee
1a3261b186
Merge branch 'develop' into remove-protocol-module
2019-09-20 16:17:44 +08:00
zhouzb
24bfaa768d
Call emqx_flapping:detect and generate alarm when flapping is detected
2019-09-20 15:01:51 +08:00
zhouzb
a9dd94b2b5
Improve mechanism of waiting for session to expire
2019-09-20 15:01:51 +08:00
Feng Lee
3202ed2392
Improve the 'channel' module and add more test cases
...
- Rename the 'Client' field to 'ClientInfo'
- Remove the 'expiry_interval' from session record
- Add more test cases for emqx_zone module
- Add more test cases for emqx_banned module
- Add more test cases for emqx_message module
- Remove 'sockname', 'conn_mod' fields from type 'client'
2019-09-20 14:38:16 +08:00
Feng Lee
81e2f47126
Add test cases for emqx_ctl module
2019-09-20 13:47:05 +08:00
Feng Lee
8ecc9ab88a
Add test case 't_undefined_headers'
2019-09-19 11:53:29 +08:00
Feng Lee
65cb9dbf38
Add test cases for 'reason/1'
2019-09-19 11:16:13 +08:00
Feng Lee
3705f4f929
Rewrite the test cases for extended modules
2019-09-19 11:04:29 +08:00
Feng Lee
c067a43990
Update test cases
2019-09-19 06:06:25 +08:00
Feng Lee
ad7e0ae436
Use 'peerhost' to replace 'peername'
2019-09-18 19:44:28 +08:00
Feng Lee
00f3a2f939
Use 'peerhost' to replace 'peername'
2019-09-18 19:17:30 +08:00
turtled
46659854da
Fix test cases
2019-09-16 20:25:19 +08:00
zhouzb
0c7c720018
Add delay in test case
2019-09-16 17:51:36 +08:00
zhouzb
e35eaa97b3
Fix test case
2019-09-16 17:36:22 +08:00
zhouzb
1667cbd359
Fix test cases
2019-09-16 16:05:06 +08:00
tigercl
fc553b8cee
Merge pull request #2803 from emqx/fix_msg_expiry
...
Fix Message-Expiry-Interval not working
2019-09-16 14:45:22 +08:00
Feng Lee
4764a7707c
Rewrite the emqx_packet module and improve channel pipeline ( #2903 )
...
Add use_username_as_clientid/1 function and Improve function 'pipeline/3'
2019-09-16 14:17:36 +08:00
Feng Lee
681ae511a8
Introduce the 'strict_mode' option and validate MQTT header ( #2898 )
...
Introduce the 'strict_mode' option and validate MQTT header
2019-09-16 14:02:31 +08:00
tigercl
35822ff97a
Fix handling for MQTT spec ( #2892 )
...
Fix invalid QoS and protocol name, fix handling for Topic-Alias-Maximum and Maximum-Packet-Size, and send DISCONNECT Packet to client when the session is taken over
2019-09-16 13:51:50 +08:00
Feng Lee
594153c0fb
Merge branch 'boot' into develop
2019-09-10 16:26:20 +08:00
Feng Lee
a3daa533e7
Add a test case for the new flapping module
2019-09-10 16:20:56 +08:00
Feng Lee
88321fe6fe
Remove the emqx_config module
...
- Remove the emqx_config module
- Move get_env/1, get_env/2 to emqx module
2019-09-09 10:18:10 +08:00
Feng Lee
6eedcb0eda
Add test cases for emqx_boot module
2019-09-06 19:17:31 +08:00
Feng Lee
7175e4a74c
Set 'boot_modules' when starting emqx apps.
2019-09-06 17:36:34 +08:00
terry-xiaoyu
983973c841
Fix set_chan_stats incorrect
2019-09-05 15:59:18 +08:00
Feng Lee
4ba92b6a3b
Fix test case 't_handle_deliver'
2019-09-05 15:02:20 +08:00
Feng Lee
847375d2fb
Improve connection and channel modules ( #2860 )
...
Improve the connection and channel modules
2019-09-05 14:17:15 +08:00
Feng Lee
62f0f0ccbc
Add more test cases for 'emqx_misc' module
2019-08-28 14:29:44 +08:00
GilbertWong
0e9647b601
Delete useless include lib
2019-08-28 11:19:51 +08:00
GilbertWong
783e29d6f7
Add test case for emqx_mod_rewrite
2019-08-28 11:19:51 +08:00
terry-xiaoyu
6352f9e2dc
Update testcase emqx_channel:handle_out
2019-08-23 15:20:25 +08:00
tigercl
ebc1bd77a9
Send the will message immediately when the network connection is closed by the client ( #2834 )
...
Send the will message immediately when the network connection is closed by the client
2019-08-23 14:41:52 +08:00
Feng Lee
c69a2b1b48
Ensure session expiration ( #2825 )
...
Ensure session expiration
2019-08-23 09:35:29 +08:00
Feng Lee
8b03371a4a
Improve the keepalive, connection, channel and session modules ( #2813 )
2019-08-22 16:38:25 +08:00
tigercl
201428279b
Merge pull request #2817 from emqx/test_emqx_config
...
Remove redundant code and add test case
2019-08-22 16:13:50 +08:00
GilbertWong
3f20bcf58f
Relace emqx_client with emqtt
2019-08-22 14:27:29 +08:00
zhouzb
94c56b5e31
Remove redundant code and add test case
2019-08-21 14:12:34 +08:00
Feng Lee
ae33b6037e
Fix the test suites.
2019-08-17 14:39:04 +08:00
Feng Lee
52b2f31ced
Merge branch 'improve-channel-design-again' into develop
2019-08-17 14:09:26 +08:00
Feng Lee
f26505d40a
Implement session takeover and resumption.
...
- Implement session takeover
- Remove `init_proc_mng_policy/1' from emqx_misc module
- Remove `conn_proc_mng_policy/1' from emqx_misc module
- Add `emqx_oom' module to monitor OOM of channel process
2019-08-17 13:37:48 +08:00
tigercl
c1fd5f89f1
Make codes compliance with mqtt protocol specifications ( #2790 )
...
* Make codes compliance with mqtt protocol specifications
* Fix test case
* Remove emqx_protocol:puback/4
2019-08-17 09:15:43 +08:00
terry-xiaoyu
fa1adf5cfb
Fix Message-Expiry-Interval not working
2019-08-16 18:27:22 +08:00
tigercl
2e26cd244a
Improve test coverage ( #2799 )
...
* Improve test coverage
* Improve test coverage for emqx_cm
* Improve test coverage for emqx_cm_registry
* Fix emqx_client_SUITE
2019-08-16 18:25:49 +08:00
Feng Lee
d63eccd8b8
Add test cases for emqx_keepalive module ( #2784 )
...
* Improve the keepalive module
2019-08-16 18:24:39 +08:00
JianBo He
acf54509f5
Add emqx_plugins module test case ( #2801 )
2019-08-16 18:21:51 +08:00
Gilbert
79744af681
Wrapper proper test cases into common test cases ( #2785 )
...
* Wrapper proper test cases into common test cases
* Improve test cases for reason code module (#2789 )
* Split 3 proper tests into 3 ct cases
* Improve test cases for client, rpc and request-response
* Add psk suites to increase coverage
* Add sys test cases
2019-08-16 18:07:12 +08:00
JianBo He
8e401968f2
Add testcase for emqx_mod_sup
2019-08-16 17:48:37 +08:00
Shawn
b2ddcb26e2
Testcase logf ( #2800 )
...
* Add test cases for logger formatter
* Remove the unregister API
2019-08-16 15:11:38 +08:00
Feng Lee
444972968f
Improve emqx_mqtt_props module and add test cases
2019-08-12 14:29:38 +08:00
terry-xiaoyu
0c24bfd78c
Make emqx_tracer more reliable
2019-08-09 19:59:39 +08:00
周子博
07fcc152e2
Fix test cases
2019-08-09 19:56:42 +08:00
GilbertWong
b5aebb19b9
Fix stats test cases
2019-08-09 16:51:28 +08:00
GilbertWong
26cfc20867
Run test via common test
2019-08-09 16:43:54 +08:00
turtled
91a8dbda56
Fix conflicts
2019-08-09 16:41:11 +08:00
terry-xiaoyu
2fcda7d891
Dirty update testcases for shared_sub
2019-08-09 15:44:29 +08:00
GilbertWong
857b3df93d
Fix the test cases of websocket channel
2019-08-09 15:30:00 +08:00
Feng Lee
a324965240
Add more test cases for emqx_protocol module
2019-08-09 14:29:49 +08:00
周子博
85c33ce81f
Fix test cases
2019-08-09 14:24:05 +08:00
GilbertWong
251f1a7174
Disable flapping test cases
2019-08-09 14:16:50 +08:00
Gilbert
abb4b07665
Add session proper test cases ( #2768 )
...
* Add session proper test cases
* Remove useless mockers
2019-08-09 14:15:34 +08:00
GilbertWong
61ee889113
Fix client bug
2019-08-09 13:40:07 +08:00
Feng Lee
916afc1c74
Add test cases for emqx_protocol module
...
- Add emqx_session:info/2 for unit tests
- Add emqx_protocol:set/3 for unit tests
- Fix the `check_sub/3` of emqx_mqtt_caps
2019-08-09 11:33:52 +08:00
Feng Lee
a2d5b834da
Improve emqx_pmon module and add more test cases
2019-08-08 22:42:45 +08:00
Feng Lee
6513a32d37
Merge pull request #2766 from emqx/improve-mqtt-caps-module
...
Improve mqtt caps module
2019-08-08 22:35:32 +08:00
Feng Lee
bd061415c9
Rewrite the emqx_mqtt_caps module and add test cases
...
- Rename `mqtt_retain_available` to `retain_available`
- Rename `mqtt_wildcard_subscription` to `wildcard_subscription`
- Rename `mqtt_shared_subscription` to `shared_subscription`
- Add `emqx_zone:unset_env/2` API for unit test
2019-08-08 14:11:26 +08:00
Gilbert
96b341fde5
Add proper tests for base62 ( #2761 )
...
* Add proper tests for base62
* Delete useless comment
2019-08-07 09:24:03 +08:00
Feng Lee
4afa02ee48
Update all the test cases
2019-08-06 09:04:37 +08:00
Feng Lee
c4faeab45a
Move test/run_emqx.escript -> scripts/run_emqx.escript
2019-08-03 14:08:20 +08:00
Feng Lee
c8317a230d
Update copyright
2019-08-03 11:43:30 +08:00
GilbertWong
2aa9b2aa4e
Specify mnesia dir for `make run` command
2019-08-03 11:10:25 +08:00
周子博
ef9cbe51eb
Fix conflict
2019-08-02 10:41:46 +08:00
周子博
0cdb0d5591
Remove all dependencies on emqx_client.hrl
2019-08-02 10:20:09 +08:00
Feng Lee
c95a89ed1e
Merge branch 'nchannel' into develop
2019-07-31 14:03:48 +08:00
terry-xiaoyu
b0e2b7db0c
Support inter-node messages via RPC cast
2019-07-27 12:59:07 +08:00
Feng Lee
6b84eb0595
Rewrite the channel, protocol and session modules.
2019-07-22 17:08:53 +08:00
terry-xiaoyu
7472e531b1
Remove log handler for alarms
2019-07-11 13:27:03 +08:00
GilbertWong
234037aee1
Fix will message mechanism for websocket channel
2019-07-11 09:43:52 +08:00
GilbertWong
41dcb4acf2
Delete slave.config
2019-07-11 09:20:38 +08:00
Feng Lee
8c37ea3f38
Fix conflict
2019-07-02 14:02:42 +08:00
周子博
8234b616e5
Fix test case
2019-06-29 12:38:57 +08:00
terry-xiaoyu
96fff39535
Change default logger level to warning
2019-06-28 21:34:21 +08:00
Gilbert
9df6345a6c
Remove bridge functions from emqx ( #2652 )
...
* Remove bridge functions from emqx
2019-06-26 19:33:17 +08:00
Feng Lee
9ee0a4d171
Fix the function_clause error when publishing QoS2 message
2019-06-25 17:35:58 +08:00
Feng Lee
f32a415a83
Merge branch 'channel3'
2019-06-25 15:55:31 +08:00