Test Report : TEST-user_list_test-20240202134545.xml
Test Suite: user_list_test-20240202134545
Results
| Duration | 3.452 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_list_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.452 sec |
| Failed | None |
None
Suite stdout:
[1706881545752] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1706881545752] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7fe656d87ba0> (<uclient.hub.HUB object at 0x7fe6562c6a10>,)
[1706881545752] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7fe656d87ba0> ret: None
[1706881545752] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7fe65625a2a0> ('<48:3f:da:55:07:5b/status', '-1')
[1706881545752] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7fe65625a2a0> ret: None
[1706881545752] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7fe65625a520> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fe6562c6a10>>,)
[1706881545752] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7fe65625a520> ret: None
[1706881545752] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7fe65625a3e0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fe6562c6a10>>,)
[1706881545752] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7fe65625a3e0> ret: None
[1706881545752] [WARN] HUB Try to connect without uri-schema
[1706881545752] [DBG] MQTT enter <function mqtt_transport.connect at 0x7fe65625ab60> ('x.ks.ua',)
[1706881546756] [INFO] HUB Connected
[1706881546756] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe65625a8e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe6562c6a10>>)
[1706881546799] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe65625a8e0> ret: None
[1706881546799] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe65625a8e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe6562c6a10>>)
[1706881546843] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe65625a8e0> ret: None
[1706881546843] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1706881546843] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe65625a8e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe6562c6a10>>)
[1706881546887] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe65625a8e0> ret: None
[1706881546887] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1706881546887] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe65625a8e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe6562c6a10>>)
[1706881546931] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe65625a8e0> ret: None
[1706881546931] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1706881546931] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe65625a8e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe6562c6a10>>)
[1706881546975] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe65625a8e0> ret: None
[1706881546975] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1706881546975] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe65625a8e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe6562c6a10>>)
[1706881547019] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe65625a8e0> ret: None
[1706881547019] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1706881547019] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe65625a8e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe6562c6a10>>)
[1706881547063] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe65625a8e0> ret: None
[1706881547063] [DBG] MQTT exit <function mqtt_transport.connect at 0x7fe65625ab60> ret: None
[1706881547064] [DBG] HUB Step, state: 0 (next: 1706881548064)
[1706881547064] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1706881547064] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe65625aa20> ('/reg', '48:3f:da:55:07:5b')
[1706881547107] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe65625aa20> ret: None
[1706881547151] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1706881547111 }
[1706881547151] [INFO] HUB Registration finish, time: 1706881547111
[1706881547151] [DBG] DEV-3996365522 enter <function device_base.register at 0x7fe656da80e0> (1706881547,)
[1706881547151] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1706881547
[1706881547151] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1706881547151] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe65625a8e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe6562c6a10>>)
[1706881547195] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe65625a8e0> ret: None
[1706881547195] [DBG] DEV-3996365522 exit <function device_base.register at 0x7fe656da80e0> ret: None
[1706881548064] [DBG] HUB Step, state: 1 (next: 1706881549064)
[1706881548064] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7fe656da89a0> ()
[1706881548064] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7fe656da89a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1706881547}}
[1706881548064] [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": 1706881547}}]} }
[1706881548064] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe65625aa20> ('/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": 1706881547}}]}')
[1706881548064] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe65625aa20> ret: None
[1706881548084] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1706881548085] [INFO] DEV-3996365522 User created. User count: 1
[1706881548085] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1706881548085] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe65625aa20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1706881548085] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe65625aa20> ret: None
[1706881549135] [INFO] HUB Message: {topic: >user/dev, value: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY= }
[1706881549135] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe65625aa20> ('<user/dev', '48:3f:da:55:07:5b/3996365522')
[1706881549135] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe65625aa20> ret: None
[1706881549190] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7fe65625a660> ()
[1706881549191] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7fe65625a660> ret: None
[1706881549192] [WARN] HUB Disconecting from broker
Suite stderr:
2024-02-02 13:45:48,070 - TEST - INFO - OP take: 1005.825 ms
2024-02-02 13:45:48,075 - TEST - INFO - Connected with result code: 0
2024-02-02 13:45:48,082 - TEST - INFO - OP take: 10.154 ms
2024-02-02 13:45:48,082 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-02-02 13:45:48,083 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-02-02 13:45:48,131 - TEST - INFO - OP take: 40.541 ms
2024-02-02 13:45:48,132 - TEST - INFO - User created: "OK"
2024-02-02 13:45:49,134 - TEST - INFO - User-ID hash: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY=
2024-02-02 13:45:49,188 - TEST - INFO - OP take: 50.646 ms
2024-02-02 13:45:49,189 - TEST - INFO - ===> Found device: 48:3f:da:55:07:5b/3996365522
2024-02-02 13:45:49,198 - TEST - WARNING - Disconecting from broker