Test Report : TEST-ping_topic_test-20240120190458.xml

  • ping_topic_test

Test Suite: ping_topic_test-20240120190458

Results

Duration3.356 sec
Tests1
Failures0

Tests

ping_topic_test

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

Suite stdout:

[1705777498417] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1705777498417] [INFO] FW-UPD  Initialized
[1705777498417]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fb1da8a42c0> (<uclient.hub.HUB object at 0x7fb1da718dd0>,)
[1705777498417]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fb1da8a42c0> ret: None
[1705777498417]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fb1dab0ec00> ('<48:3f:da:55:07:5b/status', '-1')
[1705777498417]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fb1dab0ec00> ret: None
[1705777498417]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fb1dab0e980> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fb1da718dd0>>,)
[1705777498417]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fb1dab0e980> ret: None
[1705777498417]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fb1dab0eac0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fb1da718dd0>>,)
[1705777498417]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fb1dab0eac0> ret: None
[1705777498417] [WARN] HUB  Try to connect without uri-schema
[1705777498417]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fb1dab0dda0> ('x.ks.ua',)
[1705777499420] [INFO] HUB  Connected
[1705777499420]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb1da718dd0>>)
[1705777499465]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ret: None
[1705777499465]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb1da718dd0>>)
[1705777499507]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ret: None
[1705777499507] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1705777499507]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb1da718dd0>>)
[1705777499551]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ret: None
[1705777499551] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1705777499551]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb1da718dd0>>)
[1705777499595]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ret: None
[1705777499595] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1705777499595]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb1da718dd0>>)
[1705777499639]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ret: None
[1705777499639] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1705777499639]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb1da718dd0>>)
[1705777499683]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ret: None
[1705777499683] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1705777499683]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb1da718dd0>>)
[1705777499727]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ret: None
[1705777499727]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fb1dab0dda0> ret: None
[1705777499728]  [DBG] HUB  Step, state: 0 (next: 1705777500728)
[1705777499728] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1705777499728]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb1dab0e480> ('/reg', '48:3f:da:55:07:5b')
[1705777499772]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb1dab0e480> ret: None
[1705777499815] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1705777499773 }
[1705777499815] [INFO] HUB  Registration finish, time: 1705777499773
[1705777499815]  [DBG] FW-UPD  enter <function device_base.register at 0x7fb1da8a47c0> (1705777499,)
[1705777499815] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1705777499
[1705777499815] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1705777499815]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb1da718dd0>>)
[1705777499859]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb1dab0e5c0> ret: None
[1705777499859]  [DBG] FW-UPD  exit <function device_base.register at 0x7fb1da8a47c0> ret: None
[1705777500728]  [DBG] HUB  Step, state: 1 (next: 1705777501728)
[1705777500728]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fb1da8a5080> ()
[1705777500728]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fb1da8a5080> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1705777499}}
[1705777500728] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240120;master;8222f96dd73c289fcc6652c68753a172c6033809", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1705777499}}]} }
[1705777500728]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb1dab0e480> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240120;master;8222f96dd73c289fcc6652c68753a172c6033809", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1705777499}}]}')
[1705777500728]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb1dab0e480> ret: None
[1705777501746] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1705777501746] [INFO] HUB  Ping command
[1705777501746] [INFO] HUB  Publish message: { topic: ping, value: OK }
[1705777501746]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb1dab0e480> ('<48:3f:da:55:07:5b/ping', 'OK')
[1705777501746]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb1dab0e480> ret: None
[1705777501750]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fb1dab0e840> ()
[1705777501750]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fb1dab0e840> ret: None
[1705777501752] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-01-20 19:05:00,733 - TEST - INFO - OP take: 1004.681 ms
2024-01-20 19:05:00,737 - TEST - INFO - Connected with result code: 0
2024-01-20 19:05:00,745 - TEST - INFO - OP take: 10.093 ms
2024-01-20 19:05:01,745 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2024-01-20 19:05:01,749 - TEST - INFO - OP take: 0.005 ms
2024-01-20 19:05:01,757 - TEST - WARNING - Disconecting from broker