Test Report : TEST-ping_topic_test-20231210170110.xml

  • ping_topic_test

Test Suite: ping_topic_test-20231210170110

Results

Duration3.365 sec
Tests1
Failures0

Tests

ping_topic_test

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

Suite stdout:

[1702227670179] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1702227670179] [INFO] FW-UPD  Initialized
[1702227670179]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fcd6bcc82c0> (<uclient.hub.HUB object at 0x7fcd6c663d10>,)
[1702227670179]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fcd6bcc82c0> ret: None
[1702227670180]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fcd6bf32c00> ('<48:3f:da:55:07:5b/status', '-1')
[1702227670180]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fcd6bf32c00> ret: None
[1702227670180]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fcd6bf32980> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fcd6c663d10>>,)
[1702227670180]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fcd6bf32980> ret: None
[1702227670180]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fcd6bf32ac0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fcd6c663d10>>,)
[1702227670180]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fcd6bf32ac0> ret: None
[1702227670180] [WARN] HUB  Try to connect without uri-schema
[1702227670180]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fcd6bf31da0> ('x.ks.ua',)
[1702227671183] [INFO] HUB  Connected
[1702227671183]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd6c663d10>>)
[1702227671227]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ret: None
[1702227671227]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd6c663d10>>)
[1702227671271]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ret: None
[1702227671271] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1702227671271]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd6c663d10>>)
[1702227671315]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ret: None
[1702227671315] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1702227671315]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd6c663d10>>)
[1702227671359]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ret: None
[1702227671359] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1702227671359]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd6c663d10>>)
[1702227671403]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ret: None
[1702227671403] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1702227671403]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd6c663d10>>)
[1702227671447]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ret: None
[1702227671447] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1702227671447]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd6c663d10>>)
[1702227671491]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ret: None
[1702227671491]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fcd6bf31da0> ret: None
[1702227671492]  [DBG] HUB  Step, state: 0 (next: 1702227672492)
[1702227671492] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1702227671492]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fcd6bf32480> ('/reg', '48:3f:da:55:07:5b')
[1702227671536]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fcd6bf32480> ret: None
[1702227671579] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1702227671537 }
[1702227671579] [INFO] HUB  Registration finish, time: 1702227671537
[1702227671579]  [DBG] FW-UPD  enter <function device_base.register at 0x7fcd6bcc87c0> (1702227671,)
[1702227671579] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1702227671
[1702227671579] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1702227671579]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd6c663d10>>)
[1702227671623]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd6bf325c0> ret: None
[1702227671623]  [DBG] FW-UPD  exit <function device_base.register at 0x7fcd6bcc87c0> ret: None
[1702227672492]  [DBG] HUB  Step, state: 1 (next: 1702227673492)
[1702227672492]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fcd6bcc9080> ()
[1702227672492]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fcd6bcc9080> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1702227671}}
[1702227672492] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231210;master;e46d1687d9b13615140f1b18b85d3462da1a4742", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1702227671}}]} }
[1702227672492]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fcd6bf32480> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231210;master;e46d1687d9b13615140f1b18b85d3462da1a4742", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1702227671}}]}')
[1702227672492]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fcd6bf32480> ret: None
[1702227673515] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1702227673515] [INFO] HUB  Ping command
[1702227673515] [INFO] HUB  Publish message: { topic: ping, value: OK }
[1702227673515]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fcd6bf32480> ('<48:3f:da:55:07:5b/ping', 'OK')
[1702227673515]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fcd6bf32480> ret: None
[1702227673527]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fcd6bf32840> ()
[1702227673527]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fcd6bf32840> ret: None
[1702227673528] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-12-10 17:01:12,501 - TEST - INFO - OP take: 1008.607 ms
2023-12-10 17:01:12,508 - TEST - INFO - Connected with result code: 0
2023-12-10 17:01:12,513 - TEST - INFO - OP take: 10.114 ms
2023-12-10 17:01:13,514 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2023-12-10 17:01:13,527 - TEST - INFO - OP take: 10.131 ms
2023-12-10 17:01:13,534 - TEST - WARNING - Disconecting from broker
2023-12-10 17:01:13,544 - TEST - WARNING - Disconecting from broker