Test Report : TEST-ping_topic_test-20231102152649.xml

  • ping_topic_test

Test Suite: ping_topic_test-20231102152649

Results

Duration3.371 sec
Tests1
Failures0

Tests

ping_topic_test

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

Suite stdout:

[1698938809698] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1698938809699] [INFO] FW-UPD  Initialized
[1698938809699]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f30919400e0> (<uclient.hub.HUB object at 0x7f30917b8610>,)
[1698938809699]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f30919400e0> ret: None
[1698938809699]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f3091b4a8e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f30917b8610>>,)
[1698938809699]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f3091b4a8e0> ret: None
[1698938809699]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f3091b4aa20> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f30917b8610>>,)
[1698938809699]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f3091b4aa20> ret: None
[1698938809699]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f3091b49da0> ('x.ks.ua', 1883)
[1698938810707] [INFO] HUB  Connected
[1698938810707]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f3091b4a520> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f30917b8610>>)
[1698938810748]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f3091b4a520> ret: None
[1698938810748]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f3091b4a520> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f30917b8610>>)
[1698938810792]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f3091b4a520> ret: None
[1698938810792] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1698938810792]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f3091b4a520> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f30917b8610>>)
[1698938810836]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f3091b4a520> ret: None
[1698938810837] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1698938810837]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f3091b4a520> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f30917b8610>>)
[1698938810880]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f3091b4a520> ret: None
[1698938810880] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1698938810880]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f3091b4a520> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f30917b8610>>)
[1698938810924]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f3091b4a520> ret: None
[1698938810924] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1698938810924]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f3091b4a520> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f30917b8610>>)
[1698938810968]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f3091b4a520> ret: None
[1698938810968] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1698938810968]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f3091b4a520> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f30917b8610>>)
[1698938811012]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f3091b4a520> ret: None
[1698938811012]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f3091b49da0> ret: None
[1698938811013]  [DBG] HUB  Step, state: 0 (next: 1698938812013)
[1698938811013] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1698938811013]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f3091b4a3e0> ('/reg', '48:3f:da:55:07:5b')
[1698938811058]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f3091b4a3e0> ret: None
[1698938811100] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1698938811058 }
[1698938811100] [INFO] HUB  Registration finish, time: 1698938811058
[1698938811100]  [DBG] FW-UPD  enter <function device_base.register at 0x7f30919405e0> (1698938811,)
[1698938811100] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1698938811
[1698938811100] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1698938811100]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f3091b4a520> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f30917b8610>>)
[1698938811145]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f3091b4a520> ret: None
[1698938811145]  [DBG] FW-UPD  exit <function device_base.register at 0x7f30919405e0> ret: None
[1698938812013]  [DBG] HUB  Step, state: 1 (next: 1698938813013)
[1698938812013]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f3091940ea0> ()
[1698938812013]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f3091940ea0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1698938811}}
[1698938812013] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231102;master;f37bdeed0cc654c9dd8bdd7b30ba0d2ebff97aba", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1698938811}}]} }
[1698938812013]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f3091b4a3e0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231102;master;f37bdeed0cc654c9dd8bdd7b30ba0d2ebff97aba", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1698938811}}]}')
[1698938812013]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f3091b4a3e0> ret: None
[1698938813034] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1698938813034] [INFO] HUB  Ping command
[1698938813034] [INFO] HUB  Publish message: { topic: ping, value: OK }
[1698938813034]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f3091b4a3e0> ('<48:3f:da:55:07:5b/ping', 'OK')
[1698938813034]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f3091b4a3e0> ret: None
[1698938813048]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f3091b4a7a0> ()
[1698938813050]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f3091b4a7a0> ret: None
[1698938813050] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-02 15:26:52,019 - TEST - INFO - OP take: 1005.975 ms
2023-11-02 15:26:52,024 - TEST - INFO - Connected with result code: 0
2023-11-02 15:26:52,032 - TEST - INFO - OP take: 10.093 ms
2023-11-02 15:26:53,033 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2023-11-02 15:26:53,048 - TEST - INFO - OP take: 10.245 ms
2023-11-02 15:26:53,057 - TEST - WARNING - Disconecting from broker
2023-11-02 15:26:53,073 - TEST - WARNING - Disconecting from broker