Test Report : TEST-user_list_test-20231119212744.xml
Test Suite: user_list_test-20231119212744
Results
| Duration | 3.449 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_list_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.449 sec |
| Failed | None |
None
Suite stdout:
[1700429264148] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1700429264148] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7ff8b927fba0> (<uclient.hub.HUB object at 0x7ff8b85bf7d0>,)
[1700429264148] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7ff8b927fba0> ret: None
[1700429264148] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7ff8b87522a0> ('<48:3f:da:55:07:5b/status', '-1')
[1700429264148] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7ff8b87522a0> ret: None
[1700429264148] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7ff8b8752520> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7ff8b85bf7d0>>,)
[1700429264148] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7ff8b8752520> ret: None
[1700429264148] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7ff8b87523e0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7ff8b85bf7d0>>,)
[1700429264148] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7ff8b87523e0> ret: None
[1700429264148] [DBG] MQTT enter <function mqtt_transport.connect at 0x7ff8b8752b60> ('x.ks.ua', 1883)
[1700429265153] [INFO] HUB Connected
[1700429265153] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff8b87528e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8b85bf7d0>>)
[1700429265196] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff8b87528e0> ret: None
[1700429265196] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff8b87528e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8b85bf7d0>>)
[1700429265241] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff8b87528e0> ret: None
[1700429265241] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700429265241] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff8b87528e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8b85bf7d0>>)
[1700429265284] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff8b87528e0> ret: None
[1700429265284] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700429265284] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff8b87528e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8b85bf7d0>>)
[1700429265328] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff8b87528e0> ret: None
[1700429265329] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700429265329] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff8b87528e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8b85bf7d0>>)
[1700429265372] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff8b87528e0> ret: None
[1700429265372] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700429265372] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff8b87528e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8b85bf7d0>>)
[1700429265416] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff8b87528e0> ret: None
[1700429265416] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700429265416] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff8b87528e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8b85bf7d0>>)
[1700429265460] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff8b87528e0> ret: None
[1700429265461] [DBG] MQTT exit <function mqtt_transport.connect at 0x7ff8b8752b60> ret: None
[1700429265462] [DBG] HUB Step, state: 0 (next: 1700429266462)
[1700429265462] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1700429265462] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff8b8752a20> ('/reg', '48:3f:da:55:07:5b')
[1700429265504] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff8b8752a20> ret: None
[1700429265548] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1700429265509 }
[1700429265548] [INFO] HUB Registration finish, time: 1700429265509
[1700429265548] [DBG] DEV-3996365522 enter <function device_base.register at 0x7ff8b92a00e0> (1700429265,)
[1700429265548] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1700429265
[1700429265548] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700429265548] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff8b87528e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8b85bf7d0>>)
[1700429265592] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff8b87528e0> ret: None
[1700429265592] [DBG] DEV-3996365522 exit <function device_base.register at 0x7ff8b92a00e0> ret: None
[1700429266462] [DBG] HUB Step, state: 1 (next: 1700429267462)
[1700429266462] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7ff8b92a09a0> ()
[1700429266462] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7ff8b92a09a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700429265}}
[1700429266462] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700429265}}]} }
[1700429266462] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff8b8752a20> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700429265}}]}')
[1700429266462] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff8b8752a20> ret: None
[1700429266481] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1700429266482] [INFO] DEV-3996365522 User created. User count: 1
[1700429266482] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1700429266482] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff8b8752a20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1700429266482] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff8b8752a20> ret: None
[1700429267541] [INFO] HUB Message: {topic: >user/dev, value: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY= }
[1700429267541] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff8b8752a20> ('<user/dev', '48:3f:da:55:07:5b/3996365522')
[1700429267541] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff8b8752a20> ret: None
[1700429267585] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7ff8b8752660> ()
[1700429267586] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7ff8b8752660> ret: None
[1700429267586] [WARN] HUB Disconecting from broker
Suite stderr:
2023-11-19 21:27:46,467 - TEST - INFO - OP take: 1004.939 ms
2023-11-19 21:27:46,476 - TEST - INFO - Connected with result code: 0
2023-11-19 21:27:46,480 - TEST - INFO - OP take: 10.07 ms
2023-11-19 21:27:46,480 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2023-11-19 21:27:46,481 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2023-11-19 21:27:46,532 - TEST - INFO - OP take: 50.77 ms
2023-11-19 21:27:46,533 - TEST - INFO - User created: "OK"
2023-11-19 21:27:47,539 - TEST - INFO - User-ID hash: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY=
2023-11-19 21:27:47,585 - TEST - INFO - OP take: 40.605 ms
2023-11-19 21:27:47,585 - TEST - INFO - ===> Found device: 48:3f:da:55:07:5b/3996365522
2023-11-19 21:27:47,586 - TEST - WARNING - Disconecting from broker