Test Report : TEST-version_topic_test-20240210233005.xml

  • version_topic_test

Test Suite: version_topic_test-20240210233005

Results

Duration3.365 sec
Tests1
Failures0

Tests

version_topic_test

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

Suite stdout:

[1707607805788] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1707607805789] [INFO] FW-UPD  Initialized
[1707607805789]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f15e4aa05e0> (<uclient.hub.HUB object at 0x7f15e491cf10>,)
[1707607805789]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f15e4aa05e0> ret: None
[1707607805789]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f15e4d1af20> ('<48:3f:da:55:07:5b/status', '-1')
[1707607805789]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f15e4d1af20> ret: None
[1707607805789]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f15e4d1aca0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f15e491cf10>>,)
[1707607805789]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f15e4d1aca0> ret: None
[1707607805789]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f15e4d1ade0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f15e491cf10>>,)
[1707607805789]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f15e4d1ade0> ret: None
[1707607805789] [WARN] HUB  Try to connect without uri-schema
[1707607805789]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f15e4d1a660> ('x.ks.ua',)
[1707607806792] [INFO] HUB  Connected
[1707607806792]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f15e491cf10>>)
[1707607806835]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ret: None
[1707607806835]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f15e491cf10>>)
[1707607806879]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ret: None
[1707607806879] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707607806879]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f15e491cf10>>)
[1707607806923]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ret: None
[1707607806923] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707607806923]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f15e491cf10>>)
[1707607806967]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ret: None
[1707607806967] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707607806967]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f15e491cf10>>)
[1707607807011]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ret: None
[1707607807011] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707607807011]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f15e491cf10>>)
[1707607807055]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ret: None
[1707607807055] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707607807055]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f15e491cf10>>)
[1707607807099]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ret: None
[1707607807099]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f15e4d1a660> ret: None
[1707607807100]  [DBG] HUB  Step, state: 0 (next: 1707607808100)
[1707607807100] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1707607807100]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f15e4d1a7a0> ('/reg', '48:3f:da:55:07:5b')
[1707607807144]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f15e4d1a7a0> ret: None
[1707607807187] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1707607807150 }
[1707607807187] [INFO] HUB  Registration finish, time: 1707607807150
[1707607807187]  [DBG] FW-UPD  enter <function device_base.register at 0x7f15e4aa0ae0> (1707607807,)
[1707607807187] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1707607807
[1707607807187] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707607807187]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f15e491cf10>>)
[1707607807231]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f15e4d1a8e0> ret: None
[1707607807231]  [DBG] FW-UPD  exit <function device_base.register at 0x7f15e4aa0ae0> ret: None
[1707607808100]  [DBG] HUB  Step, state: 1 (next: 1707607809100)
[1707607808100]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f15e4aa13a0> ()
[1707607808100]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f15e4aa13a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707607807}}
[1707607808100] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707607807}}]} }
[1707607808100]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f15e4d1a7a0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707607807}}]}')
[1707607808100]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f15e4d1a7a0> ret: None
[1707607809128] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/version, value: version }
[1707607809129] [INFO] HUB  Publish message: { topic: version, value: R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a }
[1707607809129]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f15e4d1a7a0> ('<48:3f:da:55:07:5b/version', 'R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a')
[1707607809129]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f15e4d1a7a0> ret: None
[1707607809145]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f15e4d1ab60> ()
[1707607809145]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f15e4d1ab60> ret: None
[1707607809145] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-02-10 23:30:08,114 - TEST - INFO - OP take: 1014.032 ms
2024-02-10 23:30:08,119 - TEST - INFO - Connected with result code: 0
2024-02-10 23:30:08,126 - TEST - INFO - OP take: 10.149 ms
2024-02-10 23:30:09,127 - TEST - INFO - [hub] => { 'version' : 'version' }
2024-02-10 23:30:09,144 - TEST - INFO - OP take: 10.14 ms
2024-02-10 23:30:09,151 - TEST - WARNING - Disconecting from broker