Test Report : TEST-ping_topic_test-20231119212832.xml

  • ping_topic_test

Test Suite: ping_topic_test-20231119212832

Results

Duration3.358 sec
Tests1
Failures0

Tests

ping_topic_test

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

Suite stdout:

[1700429312215] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1700429312216] [INFO] FW-UPD  Initialized
[1700429312216]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f5d815442c0> (<uclient.hub.HUB object at 0x7f5d82112650>,)
[1700429312216]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f5d815442c0> ret: None
[1700429312216]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f5d8174ec00> ('<48:3f:da:55:07:5b/status', '-1')
[1700429312216]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f5d8174ec00> ret: None
[1700429312216]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f5d8174e980> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f5d82112650>>,)
[1700429312216]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f5d8174e980> ret: None
[1700429312216]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f5d8174eac0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f5d82112650>>,)
[1700429312216]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f5d8174eac0> ret: None
[1700429312216]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f5d8174dda0> ('x.ks.ua', 1883)
[1700429313220] [INFO] HUB  Connected
[1700429313220]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5d82112650>>)
[1700429313264]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ret: None
[1700429313264]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5d82112650>>)
[1700429313308]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ret: None
[1700429313308] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700429313308]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5d82112650>>)
[1700429313352]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ret: None
[1700429313352] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700429313352]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5d82112650>>)
[1700429313396]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ret: None
[1700429313396] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700429313396]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5d82112650>>)
[1700429313440]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ret: None
[1700429313441] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700429313441]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5d82112650>>)
[1700429313484]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ret: None
[1700429313484] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700429313484]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5d82112650>>)
[1700429313528]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ret: None
[1700429313528]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f5d8174dda0> ret: None
[1700429313530]  [DBG] HUB  Step, state: 0 (next: 1700429314529)
[1700429313530] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1700429313530]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f5d8174e480> ('/reg', '48:3f:da:55:07:5b')
[1700429313574]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f5d8174e480> ret: None
[1700429313616] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1700429313574 }
[1700429313616] [INFO] HUB  Registration finish, time: 1700429313574
[1700429313616]  [DBG] FW-UPD  enter <function device_base.register at 0x7f5d815447c0> (1700429313,)
[1700429313616] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1700429313
[1700429313616] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700429313616]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5d82112650>>)
[1700429313660]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5d8174e5c0> ret: None
[1700429313660]  [DBG] FW-UPD  exit <function device_base.register at 0x7f5d815447c0> ret: None
[1700429314529]  [DBG] HUB  Step, state: 1 (next: 1700429315529)
[1700429314529]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f5d81545080> ()
[1700429314529]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f5d81545080> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700429313}}
[1700429314529] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700429313}}]} }
[1700429314529]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f5d8174e480> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700429313}}]}')
[1700429314529]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f5d8174e480> ret: None
[1700429315549] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1700429315549] [INFO] HUB  Ping command
[1700429315549] [INFO] HUB  Publish message: { topic: ping, value: OK }
[1700429315549]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f5d8174e480> ('<48:3f:da:55:07:5b/ping', 'OK')
[1700429315550]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f5d8174e480> ret: None
[1700429315565]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f5d8174e840> ()
[1700429315565]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f5d8174e840> ret: None
[1700429315566] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-19 21:28:34,535 - TEST - INFO - OP take: 1004.986 ms
2023-11-19 21:28:34,544 - TEST - INFO - Connected with result code: 0
2023-11-19 21:28:34,548 - TEST - INFO - OP take: 10.069 ms
2023-11-19 21:28:35,548 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2023-11-19 21:28:35,564 - TEST - INFO - OP take: 10.144 ms
2023-11-19 21:28:35,572 - TEST - WARNING - Disconecting from broker