Test Report : TEST-ping_topic_test-20240211155327.xml
Test Suite: ping_topic_test-20240211155327
Results
| Duration | 3.357 sec |
| Tests | 1 |
| Failures | 0 |
Tests
ping_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.357 sec |
| Failed | None |
None
Suite stdout:
[1707666807762] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1707666807762] [INFO] FW-UPD Initialized
[1707666807762] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f458a1bc5e0> (<uclient.hub.HUB object at 0x7f458a0391d0>,)
[1707666807762] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f458a1bc5e0> ret: None
[1707666807762] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f458a3c6f20> ('<48:3f:da:55:07:5b/status', '-1')
[1707666807762] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f458a3c6f20> ret: None
[1707666807762] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f458a3c6ca0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f458a0391d0>>,)
[1707666807762] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f458a3c6ca0> ret: None
[1707666807762] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f458a3c6de0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f458a0391d0>>,)
[1707666807762] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f458a3c6de0> ret: None
[1707666807762] [WARN] HUB Try to connect without uri-schema
[1707666807762] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f458a3c6660> ('x.ks.ua',)
[1707666808768] [INFO] HUB Connected
[1707666808768] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f458a3c68e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f458a0391d0>>)
[1707666808811] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f458a3c68e0> ret: None
[1707666808811] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f458a3c68e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f458a0391d0>>)
[1707666808855] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f458a3c68e0> ret: None
[1707666808855] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707666808855] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f458a3c68e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f458a0391d0>>)
[1707666808899] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f458a3c68e0> ret: None
[1707666808900] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707666808900] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f458a3c68e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f458a0391d0>>)
[1707666808943] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f458a3c68e0> ret: None
[1707666808943] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707666808943] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f458a3c68e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f458a0391d0>>)
[1707666808987] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f458a3c68e0> ret: None
[1707666808987] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707666808987] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f458a3c68e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f458a0391d0>>)
[1707666809031] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f458a3c68e0> ret: None
[1707666809032] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707666809032] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f458a3c68e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f458a0391d0>>)
[1707666809075] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f458a3c68e0> ret: None
[1707666809075] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f458a3c6660> ret: None
[1707666809076] [DBG] HUB Step, state: 0 (next: 1707666810076)
[1707666809076] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1707666809076] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f458a3c67a0> ('/reg', '48:3f:da:55:07:5b')
[1707666809119] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f458a3c67a0> ret: None
[1707666809163] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1707666809122 }
[1707666809163] [INFO] HUB Registration finish, time: 1707666809122
[1707666809163] [DBG] FW-UPD enter <function device_base.register at 0x7f458a1bcae0> (1707666809,)
[1707666809163] [INFO] FW-UPD Device 3996365522 registration on the server @ 1707666809
[1707666809163] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707666809163] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f458a3c68e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f458a0391d0>>)
[1707666809207] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f458a3c68e0> ret: None
[1707666809207] [DBG] FW-UPD exit <function device_base.register at 0x7f458a1bcae0> ret: None
[1707666810076] [DBG] HUB Step, state: 1 (next: 1707666811076)
[1707666810076] [DBG] FW-UPD enter <function device_base.info_req at 0x7f458a1bd3a0> ()
[1707666810076] [DBG] FW-UPD exit <function device_base.info_req at 0x7f458a1bd3a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707666809}}
[1707666810076] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240211;master;c7a377ab91e966dd8ef50ec839bbd0cd5f178bbe", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707666809}}]} }
[1707666810076] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f458a3c67a0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240211;master;c7a377ab91e966dd8ef50ec839bbd0cd5f178bbe", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707666809}}]}')
[1707666810076] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f458a3c67a0> ret: None
[1707666811096] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1707666811096] [INFO] HUB Ping command
[1707666811096] [INFO] HUB Publish message: { topic: ping, value: OK }
[1707666811097] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f458a3c67a0> ('<48:3f:da:55:07:5b/ping', 'OK')
[1707666811097] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f458a3c67a0> ret: None
[1707666811111] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f458a3c6b60> ()
[1707666811111] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f458a3c6b60> ret: None
[1707666811112] [WARN] HUB Disconecting from broker
Suite stderr:
2024-02-11 15:53:30,081 - TEST - INFO - OP take: 1005.41 ms
2024-02-11 15:53:30,088 - TEST - INFO - Connected with result code: 0
2024-02-11 15:53:30,094 - TEST - INFO - OP take: 10.103 ms
2024-02-11 15:53:31,095 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2024-02-11 15:53:31,111 - TEST - INFO - OP take: 10.085 ms
2024-02-11 15:53:31,117 - TEST - WARNING - Disconecting from broker