Test Report : TEST-version_topic_test-20240407050356.xml

  • version_topic_test

Test Suite: version_topic_test-20240407050356

Results

Duration3.358 sec
Tests1
Failures0

Tests

version_topic_test

Test case:test
Outcome:Passed
Duration:3.358 sec
FailedNone
None

Suite stdout:

[1712466236918] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1712466236919] [INFO] FW-UPD  Initialized
[1712466236919]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fda519145e0> (<uclient.hub.HUB object at 0x7fda517906d0>,)
[1712466236919]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fda519145e0> ret: None
[1712466236919]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fda51b92f20> ('<48:3f:da:55:07:5b/status', '-1')
[1712466236919]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fda51b92f20> ret: None
[1712466236919]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fda51b92ca0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fda517906d0>>,)
[1712466236919]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fda51b92ca0> ret: None
[1712466236919]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fda51b92de0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fda517906d0>>,)
[1712466236919]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fda51b92de0> ret: None
[1712466236919] [WARN] HUB  Try to connect without uri-schema
[1712466236919]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fda51b92660> ('x.ks.ua',)
[1712466237923] [INFO] HUB  Connected
[1712466237923]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fda51b928e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fda517906d0>>)
[1712466237966]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fda51b928e0> ret: None
[1712466237966]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fda51b928e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fda517906d0>>)
[1712466238010]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fda51b928e0> ret: None
[1712466238010] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1712466238010]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fda51b928e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fda517906d0>>)
[1712466238054]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fda51b928e0> ret: None
[1712466238054] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1712466238054]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fda51b928e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fda517906d0>>)
[1712466238098]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fda51b928e0> ret: None
[1712466238098] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1712466238098]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fda51b928e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fda517906d0>>)
[1712466238142]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fda51b928e0> ret: None
[1712466238142] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1712466238142]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fda51b928e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fda517906d0>>)
[1712466238186]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fda51b928e0> ret: None
[1712466238186] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1712466238186]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fda51b928e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fda517906d0>>)
[1712466238230]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fda51b928e0> ret: None
[1712466238230]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fda51b92660> ret: None
[1712466238231]  [DBG] HUB  Step, state: 0 (next: 1712466239231)
[1712466238231] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1712466238231]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fda51b927a0> ('/reg', '48:3f:da:55:07:5b')
[1712466238274]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fda51b927a0> ret: None
[1712466238318] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1712466238276 }
[1712466238318] [INFO] HUB  Registration finish, time: 1712466238276
[1712466238318]  [DBG] FW-UPD  enter <function device_base.register at 0x7fda51914ae0> (1712466238,)
[1712466238318] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1712466238
[1712466238318] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1712466238318]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fda51b928e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fda517906d0>>)
[1712466238362]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fda51b928e0> ret: None
[1712466238362]  [DBG] FW-UPD  exit <function device_base.register at 0x7fda51914ae0> ret: None
[1712466239231]  [DBG] HUB  Step, state: 1 (next: 1712466240231)
[1712466239231]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fda519153a0> ()
[1712466239231]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fda519153a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1712466238}}
[1712466239231] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240407;master;fc74d869358fa60643af852fcb85137b7a1f5f15", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1712466238}}]} }
[1712466239231]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fda51b927a0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240407;master;fc74d869358fa60643af852fcb85137b7a1f5f15", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1712466238}}]}')
[1712466239231]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fda51b927a0> ret: None
[1712466240259] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/version, value: version }
[1712466240259] [INFO] HUB  Publish message: { topic: version, value: R240407;master;fc74d869358fa60643af852fcb85137b7a1f5f15 }
[1712466240259]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fda51b927a0> ('<48:3f:da:55:07:5b/version', 'R240407;master;fc74d869358fa60643af852fcb85137b7a1f5f15')
[1712466240259]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fda51b927a0> ret: None
[1712466240268]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fda51b92b60> ()
[1712466240268]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fda51b92b60> ret: None
[1712466240270] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-04-07 05:03:59,241 - TEST - INFO - OP take: 1009.673 ms
2024-04-07 05:03:59,250 - TEST - INFO - Connected with result code: 0
2024-04-07 05:03:59,254 - TEST - INFO - OP take: 10.123 ms
2024-04-07 05:04:00,255 - TEST - INFO - [hub] => { 'version' : 'version' }
2024-04-07 05:04:00,267 - TEST - INFO - OP take: 10.129 ms
2024-04-07 05:04:00,269 - TEST - WARNING - Disconecting from broker