Test Report : TEST-version_topic_test-20231112203145.xml

  • version_topic_test

Test Suite: version_topic_test-20231112203145

Results

Duration3.344 sec
Tests1
Failures0

Tests

version_topic_test

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

Suite stdout:

[1699821105950] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1699821105951] [INFO] FW-UPD  Initialized
[1699821105951]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f85a2a402c0> (<uclient.hub.HUB object at 0x7f85a28b88d0>,)
[1699821105951]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f85a2a402c0> ret: None
[1699821105951]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f85a2cbac00> ('<48:3f:da:55:07:5b/status', '-1')
[1699821105951]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f85a2cbac00> ret: None
[1699821105951]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f85a2cba980> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f85a28b88d0>>,)
[1699821105951]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f85a2cba980> ret: None
[1699821105951]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f85a2cbaac0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f85a28b88d0>>,)
[1699821105951]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f85a2cbaac0> ret: None
[1699821105951]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f85a2cb9da0> ('x.ks.ua', 1883)
[1699821106954] [INFO] HUB  Connected
[1699821106954]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f85a28b88d0>>)
[1699821106996]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ret: None
[1699821106996]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f85a28b88d0>>)
[1699821107040]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ret: None
[1699821107040] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1699821107040]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f85a28b88d0>>)
[1699821107086]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ret: None
[1699821107086] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1699821107086]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f85a28b88d0>>)
[1699821107128]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ret: None
[1699821107128] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1699821107128]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f85a28b88d0>>)
[1699821107172]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ret: None
[1699821107173] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1699821107173]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f85a28b88d0>>)
[1699821107216]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ret: None
[1699821107217] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1699821107217]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f85a28b88d0>>)
[1699821107260]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ret: None
[1699821107260]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f85a2cb9da0> ret: None
[1699821107262]  [DBG] HUB  Step, state: 0 (next: 1699821108262)
[1699821107262] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1699821107262]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f85a2cba480> ('/reg', '48:3f:da:55:07:5b')
[1699821107305]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f85a2cba480> ret: None
[1699821107348] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1699821107309 }
[1699821107348] [INFO] HUB  Registration finish, time: 1699821107309
[1699821107348]  [DBG] FW-UPD  enter <function device_base.register at 0x7f85a2a407c0> (1699821107,)
[1699821107348] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1699821107
[1699821107348] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1699821107348]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f85a28b88d0>>)
[1699821107392]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f85a2cba5c0> ret: None
[1699821107392]  [DBG] FW-UPD  exit <function device_base.register at 0x7f85a2a407c0> ret: None
[1699821108262]  [DBG] HUB  Step, state: 1 (next: 1699821109262)
[1699821108262]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f85a2a41080> ()
[1699821108262]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f85a2a41080> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1699821107}}
[1699821108262] [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": 1699821107}}]} }
[1699821108262]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f85a2cba480> ('/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": 1699821107}}]}')
[1699821108262]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f85a2cba480> ret: None
[1699821109283] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/version, value: version }
[1699821109283] [INFO] HUB  Publish message: { topic: version, value: R231112;master;ad086b669325bee6ce018858acdd31cd9dd85e70 }
[1699821109284]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f85a2cba480> ('<48:3f:da:55:07:5b/version', 'R231112;master;ad086b669325bee6ce018858acdd31cd9dd85e70')
[1699821109284]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f85a2cba480> ret: None
[1699821109293]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f85a2cba840> ()
[1699821109293]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f85a2cba840> ret: None
[1699821109297] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-12 20:31:48,268 - TEST - INFO - OP take: 1005.665 ms
2023-11-12 20:31:48,278 - TEST - INFO - Connected with result code: 0
2023-11-12 20:31:48,281 - TEST - INFO - OP take: 10.07 ms
2023-11-12 20:31:49,281 - TEST - INFO - [hub] => { 'version' : 'version' }
2023-11-12 20:31:49,293 - TEST - INFO - OP take: 10.12 ms
2023-11-12 20:31:49,294 - TEST - WARNING - Disconecting from broker
2023-11-12 20:31:49,294 - TEST - WARNING - Disconecting from broker