Test Report : TEST-version_topic_test-20240331122739.xml

  • version_topic_test

Test Suite: version_topic_test-20240331122739

Results

Duration3.364 sec
Tests1
Failures0

Tests

version_topic_test

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

Suite stdout:

[1711888059582] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1711888059582] [INFO] FW-UPD  Initialized
[1711888059582]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f978a3e45e0> (<uclient.hub.HUB object at 0x7f978a260b50>,)
[1711888059582]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f978a3e45e0> ret: None
[1711888059582]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f978a662f20> ('<48:3f:da:55:07:5b/status', '-1')
[1711888059582]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f978a662f20> ret: None
[1711888059582]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f978a662ca0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f978a260b50>>,)
[1711888059582]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f978a662ca0> ret: None
[1711888059582]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f978a662de0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f978a260b50>>,)
[1711888059582]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f978a662de0> ret: None
[1711888059582] [WARN] HUB  Try to connect without uri-schema
[1711888059582]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f978a662660> ('x.ks.ua',)
[1711888060586] [INFO] HUB  Connected
[1711888060586]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f978a6628e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f978a260b50>>)
[1711888060630]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f978a6628e0> ret: None
[1711888060630]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f978a6628e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f978a260b50>>)
[1711888060674]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f978a6628e0> ret: None
[1711888060675] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711888060675]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f978a6628e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f978a260b50>>)
[1711888060718]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f978a6628e0> ret: None
[1711888060719] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711888060719]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f978a6628e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f978a260b50>>)
[1711888060762]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f978a6628e0> ret: None
[1711888060762] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711888060762]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f978a6628e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f978a260b50>>)
[1711888060806]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f978a6628e0> ret: None
[1711888060806] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711888060806]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f978a6628e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f978a260b50>>)
[1711888060851]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f978a6628e0> ret: None
[1711888060851] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711888060851]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f978a6628e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f978a260b50>>)
[1711888060894]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f978a6628e0> ret: None
[1711888060894]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f978a662660> ret: None
[1711888060895]  [DBG] HUB  Step, state: 0 (next: 1711888061895)
[1711888060896] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1711888060896]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f978a6627a0> ('/reg', '48:3f:da:55:07:5b')
[1711888060942]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f978a6627a0> ret: None
[1711888060986] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1711888060949 }
[1711888060986] [INFO] HUB  Registration finish, time: 1711888060949
[1711888060986]  [DBG] FW-UPD  enter <function device_base.register at 0x7f978a3e4ae0> (1711888060,)
[1711888060986] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1711888060
[1711888060986] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711888060986]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f978a6628e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f978a260b50>>)
[1711888061030]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f978a6628e0> ret: None
[1711888061031]  [DBG] FW-UPD  exit <function device_base.register at 0x7f978a3e4ae0> ret: None
[1711888061895]  [DBG] HUB  Step, state: 1 (next: 1711888062895)
[1711888061895]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f978a3e53a0> ()
[1711888061895]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f978a3e53a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711888060}}
[1711888061895] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711888060}}]} }
[1711888061895]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f978a6627a0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711888060}}]}')
[1711888061895]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f978a6627a0> ret: None
[1711888062915] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/version, value: version }
[1711888062915] [INFO] HUB  Publish message: { topic: version, value: R240331;master;283e2051d299580edb55e5b0202453ee37bd3631 }
[1711888062915]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f978a6627a0> ('<48:3f:da:55:07:5b/version', 'R240331;master;283e2051d299580edb55e5b0202453ee37bd3631')
[1711888062916]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f978a6627a0> ret: None
[1711888062932]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f978a662b60> ()
[1711888062932]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f978a662b60> ret: None
[1711888062932] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-03-31 12:27:41,900 - TEST - INFO - OP take: 1004.993 ms
2024-03-31 12:27:41,907 - TEST - INFO - Connected with result code: 0
2024-03-31 12:27:41,913 - TEST - INFO - OP take: 10.187 ms
2024-03-31 12:27:42,914 - TEST - INFO - [hub] => { 'version' : 'version' }
2024-03-31 12:27:42,931 - TEST - INFO - OP take: 10.172 ms
2024-03-31 12:27:42,938 - TEST - WARNING - Disconecting from broker