Test Report : TEST-ping_topic_test-20231108215413.xml
Test Suite: ping_topic_test-20231108215413
Results
| Duration | 3.351 sec |
| Tests | 1 |
| Failures | 0 |
Tests
ping_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.351 sec |
| Failed | None |
None
Suite stdout:
[1699480453135] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1699480453136] [INFO] FW-UPD Initialized
[1699480453136] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f18c75fc2c0> (<uclient.hub.HUB object at 0x7f18c7474b50>,)
[1699480453136] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f18c75fc2c0> ret: None
[1699480453136] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f18c786ec00> ('<48:3f:da:55:07:5b/status', '-1')
[1699480453136] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f18c786ec00> ret: None
[1699480453136] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f18c786e980> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f18c7474b50>>,)
[1699480453136] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f18c786e980> ret: None
[1699480453136] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f18c786eac0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f18c7474b50>>,)
[1699480453136] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f18c786eac0> ret: None
[1699480453136] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f18c786dda0> ('x.ks.ua', 1883)
[1699480454139] [INFO] HUB Connected
[1699480454139] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f18c786e5c0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f18c7474b50>>)
[1699480454180] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f18c786e5c0> ret: None
[1699480454180] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f18c786e5c0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f18c7474b50>>)
[1699480454224] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f18c786e5c0> ret: None
[1699480454224] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1699480454224] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f18c786e5c0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f18c7474b50>>)
[1699480454268] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f18c786e5c0> ret: None
[1699480454269] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1699480454269] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f18c786e5c0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f18c7474b50>>)
[1699480454312] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f18c786e5c0> ret: None
[1699480454313] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1699480454313] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f18c786e5c0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f18c7474b50>>)
[1699480454356] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f18c786e5c0> ret: None
[1699480454356] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1699480454356] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f18c786e5c0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f18c7474b50>>)
[1699480454400] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f18c786e5c0> ret: None
[1699480454400] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1699480454400] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f18c786e5c0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f18c7474b50>>)
[1699480454444] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f18c786e5c0> ret: None
[1699480454444] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f18c786dda0> ret: None
[1699480454445] [DBG] HUB Step, state: 0 (next: 1699480455445)
[1699480454445] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1699480454445] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f18c786e480> ('/reg', '48:3f:da:55:07:5b')
[1699480454488] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f18c786e480> ret: None
[1699480454532] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1699480454490 }
[1699480454532] [INFO] HUB Registration finish, time: 1699480454490
[1699480454532] [DBG] FW-UPD enter <function device_base.register at 0x7f18c75fc7c0> (1699480454,)
[1699480454532] [INFO] FW-UPD Device 3996365522 registration on the server @ 1699480454
[1699480454532] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1699480454532] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f18c786e5c0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f18c7474b50>>)
[1699480454576] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f18c786e5c0> ret: None
[1699480454576] [DBG] FW-UPD exit <function device_base.register at 0x7f18c75fc7c0> ret: None
[1699480455445] [DBG] HUB Step, state: 1 (next: 1699480456445)
[1699480455445] [DBG] FW-UPD enter <function device_base.info_req at 0x7f18c75fd080> ()
[1699480455445] [DBG] FW-UPD exit <function device_base.info_req at 0x7f18c75fd080> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1699480454}}
[1699480455445] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231108;master;41227627d69a88d88bb532de6fc4a842fc1a2e9c", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699480454}}]} }
[1699480455445] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f18c786e480> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231108;master;41227627d69a88d88bb532de6fc4a842fc1a2e9c", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699480454}}]}')
[1699480455445] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f18c786e480> ret: None
[1699480456469] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1699480456469] [INFO] HUB Ping command
[1699480456469] [INFO] HUB Publish message: { topic: ping, value: OK }
[1699480456469] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f18c786e480> ('<48:3f:da:55:07:5b/ping', 'OK')
[1699480456469] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f18c786e480> ret: None
[1699480456479] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f18c786e840> ()
[1699480456479] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f18c786e840> ret: None
[1699480456479] [WARN] HUB Disconecting from broker
Suite stderr:
2023-11-08 21:54:15,454 - TEST - INFO - OP take: 1009.252 ms
2023-11-08 21:54:15,463 - TEST - INFO - Connected with result code: 0
2023-11-08 21:54:15,467 - TEST - INFO - OP take: 10.102 ms
2023-11-08 21:54:16,468 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2023-11-08 21:54:16,478 - TEST - INFO - OP take: 10.099 ms
2023-11-08 21:54:16,485 - TEST - WARNING - Disconecting from broker