terry-xiaoyu
9e1f1b22c3
Fix typo
2019-09-20 21:35:02 +08:00
terry-xiaoyu
1decab9369
Fix channel crash before CONNECT
2019-09-20 21:30:18 +08:00
zhouzb
db1cf4469b
Fix crash
2019-09-20 20:27:08 +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
Feng Lee
a9daa3c821
Fix the merge conflicts
2019-09-20 16:38:02 +08:00
Feng Lee
45eee42c76
Remove the emqx_protocol module and use 'conninfo' to store the MQTT CONNECT fields ( #2914 )
...
* Use 'peerhost' to replace 'peername'
* Add more functions
* Export type 'opts/0'
* Use 'peerhost' to replace 'peername'
* Add function 'get_caps/3'
* Rename 'get|set_property' fuctions to 'get|set'
* Improve the 'open_session/3' API
* Remove the function 'update_expiry_interval/2'
* Rewrite the 'presence' extended module
* Update the 'attrs/1' and 'handle_timeout/3' functions
* Update test cases
* Rewrite the test cases for extended modules
* Add test cases for 'reason/1'
* Remove the default value of 'headers' field
* Add function 'get_flags/1' for test
* Add test case 't_undefined_headers'
* Add test cases for emqx_ctl module
* 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'
* Fix the type specs for cmd usage
2019-09-20 16:21:39 +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
terry-xiaoyu
bd33441720
Fix the type specs for cmd usage
2019-09-20 14:55:11 +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
3d6b96d321
Add function 'get_flags/1' for test
2019-09-19 11:19:10 +08:00
Feng Lee
2ed9e9480e
Remove the default value of 'headers' field
2019-09-19 11:18:04 +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
1d429dad8d
Update the 'attrs/1' and 'handle_timeout/3' functions
2019-09-18 20:01:22 +08:00
Feng Lee
981afd38e3
Rewrite the 'presence' extended module
2019-09-18 19:58:12 +08:00
Feng Lee
8404fce6a6
Remove the function 'update_expiry_interval/2'
2019-09-18 19:49:34 +08:00
Feng Lee
a313d1c722
Improve the 'open_session/3' API
2019-09-18 19:48:55 +08:00
Feng Lee
94c324d7a3
Rename 'get|set_property' fuctions to 'get|set'
2019-09-18 19:47:44 +08:00
Feng Lee
cc79802d6c
Add function 'get_caps/3'
2019-09-18 19:46:18 +08:00
Feng Lee
ad7e0ae436
Use 'peerhost' to replace 'peername'
2019-09-18 19:44:28 +08:00
Feng Lee
c8acd55afa
Export type 'opts/0'
2019-09-18 19:19:42 +08:00
Feng Lee
50f392b295
Add more functions
2019-09-18 19:18:56 +08:00
Feng Lee
00f3a2f939
Use 'peerhost' to replace 'peername'
2019-09-18 19:17:30 +08:00
turtleDeng
0174e2774c
Merge pull request #2906 from emqx/develop
...
Fix test cases
2019-09-16 20:32:21 +08:00
turtled
46659854da
Fix test cases
2019-09-16 20:25:19 +08:00
zhanghongtong
dc95786168
Merge remote-tracking branch 'origin/develop'
2019-09-16 18:56:50 +08:00
zhouzb
decdce2ae2
Fix unused variable
2019-09-16 18:54:34 +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
600cd11f1f
Rename connection to conninfo
2019-09-16 17:22:50 +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
Shawn
59309e6c11
Add print and usage APIs for CLI ( #2893 )
2019-09-12 09:35:05 +08:00