Test Report : TEST-ping_topic_test-20240331122745.xml
Test Suite: ping_topic_test-20240331122745
Results
| Duration | 3.356 sec |
| Tests | 1 |
| Failures | 0 |
Tests
ping_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.356 sec |
| Failed | None |
None
Suite stdout:
[1711888065159] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1711888065159] [INFO] FW-UPD Initialized
[1711888065160] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f6412fcc5e0> (<uclient.hub.HUB object at 0x7f6412fdbd10>,)
[1711888065160] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f6412fcc5e0> ret: None
[1711888065160] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f641323af20> ('<48:3f:da:55:07:5b/status', '-1')
[1711888065160] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f641323af20> ret: None
[1711888065160] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f641323aca0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f6412fdbd10>>,)
[1711888065160] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f641323aca0> ret: None
[1711888065160] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f641323ade0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f6412fdbd10>>,)
[1711888065160] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f641323ade0> ret: None
[1711888065160] [WARN] HUB Try to connect without uri-schema
[1711888065160] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f641323a660> ('x.ks.ua',)
[1711888066163] [INFO] HUB Connected
[1711888066163] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f641323a8e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6412fdbd10>>)
[1711888066206] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f641323a8e0> ret: None
[1711888066206] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f641323a8e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6412fdbd10>>)
[1711888066250] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f641323a8e0> ret: None
[1711888066250] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711888066250] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f641323a8e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6412fdbd10>>)
[1711888066294] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f641323a8e0> ret: None
[1711888066294] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711888066294] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f641323a8e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6412fdbd10>>)
[1711888066338] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f641323a8e0> ret: None
[1711888066338] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711888066338] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f641323a8e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6412fdbd10>>)
[1711888066382] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f641323a8e0> ret: None
[1711888066382] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711888066382] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f641323a8e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6412fdbd10>>)
[1711888066426] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f641323a8e0> ret: None
[1711888066426] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711888066426] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f641323a8e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6412fdbd10>>)
[1711888066470] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f641323a8e0> ret: None
[1711888066472] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f641323a660> ret: None
[1711888066473] [DBG] HUB Step, state: 0 (next: 1711888067473)
[1711888066473] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1711888066473] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f641323a7a0> ('/reg', '48:3f:da:55:07:5b')
[1711888066514] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f641323a7a0> ret: None
[1711888066558] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1711888066517 }
[1711888066558] [INFO] HUB Registration finish, time: 1711888066517
[1711888066558] [DBG] FW-UPD enter <function device_base.register at 0x7f6412fccae0> (1711888066,)
[1711888066558] [INFO] FW-UPD Device 3996365522 registration on the server @ 1711888066
[1711888066558] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711888066558] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f641323a8e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6412fdbd10>>)
[1711888066602] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f641323a8e0> ret: None
[1711888066602] [DBG] FW-UPD exit <function device_base.register at 0x7f6412fccae0> ret: None
[1711888067473] [DBG] HUB Step, state: 1 (next: 1711888068473)
[1711888067473] [DBG] FW-UPD enter <function device_base.info_req at 0x7f6412fcd3a0> ()
[1711888067473] [DBG] FW-UPD exit <function device_base.info_req at 0x7f6412fcd3a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711888066}}
[1711888067473] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711888066}}]} }
[1711888067473] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f641323a7a0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711888066}}]}')
[1711888067473] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f641323a7a0> ret: None
[1711888068505] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1711888068505] [INFO] HUB Ping command
[1711888068505] [INFO] HUB Publish message: { topic: ping, value: OK }
[1711888068505] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f641323a7a0> ('<48:3f:da:55:07:5b/ping', 'OK')
[1711888068505] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f641323a7a0> ret: None
[1711888068515] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f641323ab60> ()
[1711888068515] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f641323ab60> ret: None
[1711888068516] [WARN] HUB Disconecting from broker
Suite stderr:
2024-03-31 12:27:47,482 - TEST - INFO - OP take: 1009.044 ms
2024-03-31 12:27:47,497 - TEST - INFO - Connected with result code: 0
2024-03-31 12:27:47,502 - TEST - INFO - OP take: 10.103 ms
2024-03-31 12:27:48,503 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2024-03-31 12:27:48,514 - TEST - INFO - OP take: 10.474 ms
2024-03-31 12:27:48,515 - TEST - WARNING - Disconecting from broker