Test Report : TEST-ping_topic_test-20240130083319.xml

  • ping_topic_test

Test Suite: ping_topic_test-20240130083319

Results

Duration3.356 sec
Tests1
Failures0

Tests

ping_topic_test

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

Suite stdout:

[1706603599428] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1706603599428] [INFO] FW-UPD  Initialized
[1706603599429]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7effe41f82c0> (<uclient.hub.HUB object at 0x7effe4b93d10>,)
[1706603599429]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7effe41f82c0> ret: None
[1706603599429]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7effe4462c00> ('<48:3f:da:55:07:5b/status', '-1')
[1706603599429]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7effe4462c00> ret: None
[1706603599429]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7effe4462980> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7effe4b93d10>>,)
[1706603599429]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7effe4462980> ret: None
[1706603599429]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7effe4462ac0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7effe4b93d10>>,)
[1706603599429]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7effe4462ac0> ret: None
[1706603599429] [WARN] HUB  Try to connect without uri-schema
[1706603599429]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7effe4461da0> ('x.ks.ua',)
[1706603600432] [INFO] HUB  Connected
[1706603600432]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effe44625c0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effe4b93d10>>)
[1706603600475]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effe44625c0> ret: None
[1706603600475]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effe44625c0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effe4b93d10>>)
[1706603600519]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effe44625c0> ret: None
[1706603600519] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1706603600519]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effe44625c0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effe4b93d10>>)
[1706603600563]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effe44625c0> ret: None
[1706603600563] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1706603600563]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effe44625c0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effe4b93d10>>)
[1706603600607]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effe44625c0> ret: None
[1706603600607] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1706603600607]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effe44625c0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effe4b93d10>>)
[1706603600652]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effe44625c0> ret: None
[1706603600652] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1706603600652]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effe44625c0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effe4b93d10>>)
[1706603600695]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effe44625c0> ret: None
[1706603600695] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1706603600695]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effe44625c0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effe4b93d10>>)
[1706603600739]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effe44625c0> ret: None
[1706603600739]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7effe4461da0> ret: None
[1706603600740]  [DBG] HUB  Step, state: 0 (next: 1706603601740)
[1706603600740] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1706603600740]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7effe4462480> ('/reg', '48:3f:da:55:07:5b')
[1706603600783]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7effe4462480> ret: None
[1706603600827] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1706603600786 }
[1706603600827] [INFO] HUB  Registration finish, time: 1706603600786
[1706603600827]  [DBG] FW-UPD  enter <function device_base.register at 0x7effe41f87c0> (1706603600,)
[1706603600827] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1706603600
[1706603600827] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1706603600827]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7effe44625c0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7effe4b93d10>>)
[1706603600871]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7effe44625c0> ret: None
[1706603600871]  [DBG] FW-UPD  exit <function device_base.register at 0x7effe41f87c0> ret: None
[1706603601740]  [DBG] HUB  Step, state: 1 (next: 1706603602740)
[1706603601740]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7effe41f9080> ()
[1706603601740]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7effe41f9080> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1706603600}}
[1706603601740] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240129;master;2ef3211e388ad8de8753e73738ad72b1dbe8c3e9", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706603600}}]} }
[1706603601740]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7effe4462480> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240129;master;2ef3211e388ad8de8753e73738ad72b1dbe8c3e9", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706603600}}]}')
[1706603601740]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7effe4462480> ret: None
[1706603602761] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1706603602761] [INFO] HUB  Ping command
[1706603602761] [INFO] HUB  Publish message: { topic: ping, value: OK }
[1706603602761]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7effe4462480> ('<48:3f:da:55:07:5b/ping', 'OK')
[1706603602761]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7effe4462480> ret: None
[1706603602776]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7effe4462840> ()
[1706603602776]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7effe4462840> ret: None
[1706603602777] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-01-30 08:33:21,747 - TEST - INFO - OP take: 1006.939 ms
2024-01-30 08:33:21,754 - TEST - INFO - Connected with result code: 0
2024-01-30 08:33:21,760 - TEST - INFO - OP take: 10.096 ms
2024-01-30 08:33:22,760 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2024-01-30 08:33:22,776 - TEST - INFO - OP take: 10.172 ms
2024-01-30 08:33:22,783 - TEST - WARNING - Disconecting from broker
2024-01-30 08:33:22,789 - TEST - WARNING - Disconecting from broker