Test Report : TEST-ping_topic_test-20240427174100.xml

  • ping_topic_test

Test Suite: ping_topic_test-20240427174100

Results

Duration3.364 sec
Tests1
Failures0

Tests

ping_topic_test

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

Suite stdout:

[1714239660682] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1714239660682] [INFO] FW-UPD  Initialized
[1714239660682]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fbd5fb885e0> (<uclient.hub.HUB object at 0x7fbd6074a7d0>,)
[1714239660682]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fbd5fb885e0> ret: None
[1714239660682]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fbd5fdf6f20> ('<48:3f:da:55:07:5b/status', '-1')
[1714239660682]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fbd5fdf6f20> ret: None
[1714239660682]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fbd5fdf6ca0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fbd6074a7d0>>,)
[1714239660682]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fbd5fdf6ca0> ret: None
[1714239660682]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fbd5fdf6de0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fbd6074a7d0>>,)
[1714239660682]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fbd5fdf6de0> ret: None
[1714239660682] [WARN] HUB  Try to connect without uri-schema
[1714239660682]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fbd5fdf6660> ('x.ks.ua',)
[1714239661686] [INFO] HUB  Connected
[1714239661686]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbd6074a7d0>>)
[1714239661730]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ret: None
[1714239661730]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbd6074a7d0>>)
[1714239661774]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ret: None
[1714239661774] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1714239661774]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbd6074a7d0>>)
[1714239661818]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ret: None
[1714239661818] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1714239661818]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbd6074a7d0>>)
[1714239661862]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ret: None
[1714239661862] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1714239661862]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbd6074a7d0>>)
[1714239661906]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ret: None
[1714239661906] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1714239661906]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbd6074a7d0>>)
[1714239661950]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ret: None
[1714239661950] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1714239661950]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbd6074a7d0>>)
[1714239661995]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ret: None
[1714239661995]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fbd5fdf6660> ret: None
[1714239661996]  [DBG] HUB  Step, state: 0 (next: 1714239662996)
[1714239661996] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1714239661996]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fbd5fdf67a0> ('/reg', '48:3f:da:55:07:5b')
[1714239662040]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fbd5fdf67a0> ret: None
[1714239662082] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1714239662040 }
[1714239662082] [INFO] HUB  Registration finish, time: 1714239662040
[1714239662082]  [DBG] FW-UPD  enter <function device_base.register at 0x7fbd5fb88ae0> (1714239662,)
[1714239662082] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1714239662
[1714239662082] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1714239662082]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbd6074a7d0>>)
[1714239662126]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fbd5fdf68e0> ret: None
[1714239662126]  [DBG] FW-UPD  exit <function device_base.register at 0x7fbd5fb88ae0> ret: None
[1714239662996]  [DBG] HUB  Step, state: 1 (next: 1714239663996)
[1714239662996]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fbd5fb893a0> ()
[1714239662996]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fbd5fb893a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714239662}}
[1714239662996] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240427;master;5bb8fc89dabedc6937b87a53de9f9f8b0e057530", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714239662}}]} }
[1714239662996]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fbd5fdf67a0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240427;master;5bb8fc89dabedc6937b87a53de9f9f8b0e057530", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714239662}}]}')
[1714239662996]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fbd5fdf67a0> ret: None
[1714239664016] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1714239664016] [INFO] HUB  Ping command
[1714239664016] [INFO] HUB  Publish message: { topic: ping, value: OK }
[1714239664016]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fbd5fdf67a0> ('<48:3f:da:55:07:5b/ping', 'OK')
[1714239664016]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fbd5fdf67a0> ret: None
[1714239664030]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fbd5fdf6b60> ()
[1714239664030]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fbd5fdf6b60> ret: None
[1714239664032] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-04-27 17:41:03,002 - TEST - INFO - OP take: 1006.366 ms
2024-04-27 17:41:03,011 - TEST - INFO - Connected with result code: 0
2024-04-27 17:41:03,015 - TEST - INFO - OP take: 10.098 ms
2024-04-27 17:41:04,015 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2024-04-27 17:41:04,030 - TEST - INFO - OP take: 10.163 ms
2024-04-27 17:41:04,038 - TEST - WARNING - Disconecting from broker