Test Report : TEST-ping_topic_test-20240210233011.xml

  • ping_topic_test

Test Suite: ping_topic_test-20240210233011

Results

Duration3.359 sec
Tests1
Failures0

Tests

ping_topic_test

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

Suite stdout:

[1707607811683] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1707607811684] [INFO] FW-UPD  Initialized
[1707607811684]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f59bc3945e0> (<uclient.hub.HUB object at 0x7f59bc2111d0>,)
[1707607811684]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f59bc3945e0> ret: None
[1707607811684]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f59bc59ef20> ('<48:3f:da:55:07:5b/status', '-1')
[1707607811684]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f59bc59ef20> ret: None
[1707607811684]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f59bc59eca0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f59bc2111d0>>,)
[1707607811684]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f59bc59eca0> ret: None
[1707607811684]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f59bc59ede0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f59bc2111d0>>,)
[1707607811684]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f59bc59ede0> ret: None
[1707607811684] [WARN] HUB  Try to connect without uri-schema
[1707607811684]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f59bc59e660> ('x.ks.ua',)
[1707607812687] [INFO] HUB  Connected
[1707607812688]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f59bc2111d0>>)
[1707607812731]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ret: None
[1707607812731]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f59bc2111d0>>)
[1707607812775]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ret: None
[1707607812775] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707607812775]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f59bc2111d0>>)
[1707607812819]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ret: None
[1707607812820] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707607812820]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f59bc2111d0>>)
[1707607812864]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ret: None
[1707607812864] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707607812864]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f59bc2111d0>>)
[1707607812907]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ret: None
[1707607812907] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707607812907]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f59bc2111d0>>)
[1707607812951]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ret: None
[1707607812951] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707607812951]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f59bc2111d0>>)
[1707607812995]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ret: None
[1707607812995]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f59bc59e660> ret: None
[1707607812996]  [DBG] HUB  Step, state: 0 (next: 1707607813996)
[1707607812996] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1707607812996]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f59bc59e7a0> ('/reg', '48:3f:da:55:07:5b')
[1707607813039]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f59bc59e7a0> ret: None
[1707607813083] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1707607813041 }
[1707607813083] [INFO] HUB  Registration finish, time: 1707607813041
[1707607813083]  [DBG] FW-UPD  enter <function device_base.register at 0x7f59bc394ae0> (1707607813,)
[1707607813083] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1707607813
[1707607813083] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707607813083]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f59bc2111d0>>)
[1707607813127]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f59bc59e8e0> ret: None
[1707607813127]  [DBG] FW-UPD  exit <function device_base.register at 0x7f59bc394ae0> ret: None
[1707607813996]  [DBG] HUB  Step, state: 1 (next: 1707607814996)
[1707607813996]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f59bc3953a0> ()
[1707607813996]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f59bc3953a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707607813}}
[1707607813996] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707607813}}]} }
[1707607813996]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f59bc59e7a0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707607813}}]}')
[1707607813996]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f59bc59e7a0> ret: None
[1707607815017] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1707607815017] [INFO] HUB  Ping command
[1707607815017] [INFO] HUB  Publish message: { topic: ping, value: OK }
[1707607815017]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f59bc59e7a0> ('<48:3f:da:55:07:5b/ping', 'OK')
[1707607815017]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f59bc59e7a0> ret: None
[1707607815029]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f59bc59eb60> ()
[1707607815030]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f59bc59eb60> ret: None
[1707607815030] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-02-10 23:30:14,004 - TEST - INFO - OP take: 1008.446 ms
2024-02-10 23:30:14,009 - TEST - INFO - Connected with result code: 0
2024-02-10 23:30:14,016 - TEST - INFO - OP take: 10.113 ms
2024-02-10 23:30:15,017 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2024-02-10 23:30:15,029 - TEST - INFO - OP take: 10.148 ms
2024-02-10 23:30:15,036 - TEST - WARNING - Disconecting from broker