Test Report : TEST-version_topic_test-20231126190433.xml

  • version_topic_test

Test Suite: version_topic_test-20231126190433

Results

Duration3.354 sec
Tests1
Failures0

Tests

version_topic_test

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

Suite stdout:

[1701025473979] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1701025473979] [INFO] FW-UPD  Initialized
[1701025473979]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f7ccc0942c0> (<uclient.hub.HUB object at 0x7f7ccbf08e90>,)
[1701025473979]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f7ccc0942c0> ret: None
[1701025473979]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f7ccc30ec00> ('<48:3f:da:55:07:5b/status', '-1')
[1701025473979]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f7ccc30ec00> ret: None
[1701025473979]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f7ccc30e980> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f7ccbf08e90>>,)
[1701025473979]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f7ccc30e980> ret: None
[1701025473979]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f7ccc30eac0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f7ccbf08e90>>,)
[1701025473979]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f7ccc30eac0> ret: None
[1701025473979] [WARN] HUB  Try to connect without uri-schema
[1701025473979]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f7ccc30dda0> ('x.ks.ua',)
[1701025474983] [INFO] HUB  Connected
[1701025474983]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7ccbf08e90>>)
[1701025475027]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ret: None
[1701025475027]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7ccbf08e90>>)
[1701025475071]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ret: None
[1701025475071] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1701025475071]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7ccbf08e90>>)
[1701025475115]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ret: None
[1701025475115] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1701025475115]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7ccbf08e90>>)
[1701025475159]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ret: None
[1701025475159] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1701025475159]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7ccbf08e90>>)
[1701025475203]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ret: None
[1701025475203] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1701025475203]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7ccbf08e90>>)
[1701025475247]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ret: None
[1701025475247] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1701025475247]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7ccbf08e90>>)
[1701025475291]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ret: None
[1701025475291]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f7ccc30dda0> ret: None
[1701025475292]  [DBG] HUB  Step, state: 0 (next: 1701025476292)
[1701025475292] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1701025475292]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f7ccc30e480> ('/reg', '48:3f:da:55:07:5b')
[1701025475336]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f7ccc30e480> ret: None
[1701025475379] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1701025475337 }
[1701025475379] [INFO] HUB  Registration finish, time: 1701025475337
[1701025475379]  [DBG] FW-UPD  enter <function device_base.register at 0x7f7ccc0947c0> (1701025475,)
[1701025475379] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1701025475
[1701025475379] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1701025475379]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f7ccbf08e90>>)
[1701025475423]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f7ccc30e5c0> ret: None
[1701025475423]  [DBG] FW-UPD  exit <function device_base.register at 0x7f7ccc0947c0> ret: None
[1701025476292]  [DBG] HUB  Step, state: 1 (next: 1701025477292)
[1701025476292]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f7ccc095080> ()
[1701025476292]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f7ccc095080> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1701025475}}
[1701025476292] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231126;master;d3e04e489d5bbf002244999aaf54b970400edf00", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1701025475}}]} }
[1701025476292]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f7ccc30e480> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231126;master;d3e04e489d5bbf002244999aaf54b970400edf00", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1701025475}}]}')
[1701025476292]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f7ccc30e480> ret: None
[1701025477311] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/version, value: version }
[1701025477311] [INFO] HUB  Publish message: { topic: version, value: R231126;master;d3e04e489d5bbf002244999aaf54b970400edf00 }
[1701025477312]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f7ccc30e480> ('<48:3f:da:55:07:5b/version', 'R231126;master;d3e04e489d5bbf002244999aaf54b970400edf00')
[1701025477312]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f7ccc30e480> ret: None
[1701025477325]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f7ccc30e840> ()
[1701025477325]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f7ccc30e840> ret: None
[1701025477326] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-26 19:04:36,297 - TEST - INFO - OP take: 1004.649 ms
2023-11-26 19:04:36,306 - TEST - INFO - Connected with result code: 0
2023-11-26 19:04:36,310 - TEST - INFO - OP take: 10.098 ms
2023-11-26 19:04:37,310 - TEST - INFO - [hub] => { 'version' : 'version' }
2023-11-26 19:04:37,324 - TEST - INFO - OP take: 10.124 ms
2023-11-26 19:04:37,331 - TEST - WARNING - Disconecting from broker