Test Report : TEST-ping_topic_test-20231112203151.xml

  • ping_topic_test

Test Suite: ping_topic_test-20231112203151

Results

Duration3.364 sec
Tests1
Failures0

Tests

ping_topic_test

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

Suite stdout:

[1699821111719] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1699821111720] [INFO] FW-UPD  Initialized
[1699821111720]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f911e4e02c0> (<uclient.hub.HUB object at 0x7f911e358a50>,)
[1699821111720]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f911e4e02c0> ret: None
[1699821111720]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f911e752c00> ('<48:3f:da:55:07:5b/status', '-1')
[1699821111720]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f911e752c00> ret: None
[1699821111720]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f911e752980> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f911e358a50>>,)
[1699821111720]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f911e752980> ret: None
[1699821111720]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f911e752ac0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f911e358a50>>,)
[1699821111720]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f911e752ac0> ret: None
[1699821111720]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f911e751da0> ('x.ks.ua', 1883)
[1699821112724] [INFO] HUB  Connected
[1699821112724]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f911e7525c0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f911e358a50>>)
[1699821112768]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f911e7525c0> ret: None
[1699821112768]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f911e7525c0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f911e358a50>>)
[1699821112812]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f911e7525c0> ret: None
[1699821112812] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1699821112812]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f911e7525c0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f911e358a50>>)
[1699821112856]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f911e7525c0> ret: None
[1699821112856] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1699821112856]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f911e7525c0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f911e358a50>>)
[1699821112900]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f911e7525c0> ret: None
[1699821112900] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1699821112900]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f911e7525c0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f911e358a50>>)
[1699821112944]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f911e7525c0> ret: None
[1699821112945] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1699821112945]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f911e7525c0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f911e358a50>>)
[1699821112988]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f911e7525c0> ret: None
[1699821112988] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1699821112988]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f911e7525c0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f911e358a50>>)
[1699821113032]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f911e7525c0> ret: None
[1699821113032]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f911e751da0> ret: None
[1699821113033]  [DBG] HUB  Step, state: 0 (next: 1699821114033)
[1699821113033] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1699821113033]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f911e752480> ('/reg', '48:3f:da:55:07:5b')
[1699821113077]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f911e752480> ret: None
[1699821113120] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1699821113078 }
[1699821113120] [INFO] HUB  Registration finish, time: 1699821113078
[1699821113120]  [DBG] FW-UPD  enter <function device_base.register at 0x7f911e4e07c0> (1699821113,)
[1699821113120] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1699821113
[1699821113120] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1699821113120]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f911e7525c0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f911e358a50>>)
[1699821113165]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f911e7525c0> ret: None
[1699821113165]  [DBG] FW-UPD  exit <function device_base.register at 0x7f911e4e07c0> ret: None
[1699821114033]  [DBG] HUB  Step, state: 1 (next: 1699821115033)
[1699821114033]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f911e4e1080> ()
[1699821114033]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f911e4e1080> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1699821113}}
[1699821114033] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231112;master;ad086b669325bee6ce018858acdd31cd9dd85e70", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699821113}}]} }
[1699821114033]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f911e752480> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231112;master;ad086b669325bee6ce018858acdd31cd9dd85e70", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699821113}}]}')
[1699821114033]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f911e752480> ret: None
[1699821115056] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1699821115057] [INFO] HUB  Ping command
[1699821115057] [INFO] HUB  Publish message: { topic: ping, value: OK }
[1699821115057]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f911e752480> ('<48:3f:da:55:07:5b/ping', 'OK')
[1699821115057]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f911e752480> ret: None
[1699821115070]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f911e752840> ()
[1699821115070]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f911e752840> ret: None
[1699821115071] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-12 20:31:54,042 - TEST - INFO - OP take: 1008.963 ms
2023-11-12 20:31:54,049 - TEST - INFO - Connected with result code: 0
2023-11-12 20:31:54,055 - TEST - INFO - OP take: 10.184 ms
2023-11-12 20:31:55,056 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2023-11-12 20:31:55,069 - TEST - INFO - OP take: 10.267 ms
2023-11-12 20:31:55,077 - TEST - WARNING - Disconecting from broker