Test Report : TEST-hub_topic_test-20231118124702.xml

  • hub_topic_test

Test Suite: hub_topic_test-20231118124702

Results

Duration3.354 sec
Tests1
Failures0

Tests

hub_topic_test

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

Suite stdout:

[1700311622652] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1700311622652] [INFO] FW-UPD  Initialized
[1700311622652]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fdcb83c4220> (<uclient.hub.HUB object at 0x7fdcb8f8a7d0>,)
[1700311622652]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fdcb83c4220> ret: None
[1700311622652]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fdcb85ceb60> ('<48:3f:da:55:07:5b/status', '-1')
[1700311622652]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fdcb85ceb60> ret: None
[1700311622652]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fdcb85ce8e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fdcb8f8a7d0>>,)
[1700311622652]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fdcb85ce8e0> ret: None
[1700311622652]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fdcb85cea20> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fdcb8f8a7d0>>,)
[1700311622652]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fdcb85cea20> ret: None
[1700311622652]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fdcb85cdd00> ('x.ks.ua', 1883)
[1700311623657] [INFO] HUB  Connected
[1700311623657]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdcb85ce520> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdcb8f8a7d0>>)
[1700311623707]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdcb85ce520> ret: None
[1700311623707]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdcb85ce520> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdcb8f8a7d0>>)
[1700311623748]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdcb85ce520> ret: None
[1700311623748] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700311623748]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdcb85ce520> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdcb8f8a7d0>>)
[1700311623792]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdcb85ce520> ret: None
[1700311623792] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700311623792]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdcb85ce520> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdcb8f8a7d0>>)
[1700311623836]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdcb85ce520> ret: None
[1700311623836] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700311623836]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdcb85ce520> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdcb8f8a7d0>>)
[1700311623880]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdcb85ce520> ret: None
[1700311623880] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700311623880]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdcb85ce520> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdcb8f8a7d0>>)
[1700311623924]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdcb85ce520> ret: None
[1700311623924] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700311623924]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdcb85ce520> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdcb8f8a7d0>>)
[1700311623968]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdcb85ce520> ret: None
[1700311623968]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fdcb85cdd00> ret: None
[1700311623969]  [DBG] HUB  Step, state: 0 (next: 1700311624969)
[1700311623969] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1700311623969]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdcb85ce3e0> ('/reg', '48:3f:da:55:07:5b')
[1700311624013]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdcb85ce3e0> ret: None
[1700311624056] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1700311624016 }
[1700311624056] [INFO] HUB  Registration finish, time: 1700311624016
[1700311624056]  [DBG] FW-UPD  enter <function device_base.register at 0x7fdcb83c4720> (1700311624,)
[1700311624056] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1700311624
[1700311624056] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700311624056]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdcb85ce520> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdcb8f8a7d0>>)
[1700311624101]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdcb85ce520> ret: None
[1700311624101]  [DBG] FW-UPD  exit <function device_base.register at 0x7fdcb83c4720> ret: None
[1700311624969]  [DBG] HUB  Step, state: 1 (next: 1700311625969)
[1700311624969]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fdcb83c4fe0> ()
[1700311624969]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fdcb83c4fe0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700311624}}
[1700311624969] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700311624}}]} }
[1700311624969]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdcb85ce3e0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700311624}}]}')
[1700311624969]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdcb85ce3e0> ret: None
[1700311625991] [INFO] HUB  Message: {topic: >hub, value: 3996365522 }
[1700311625991]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdcb85ce3e0> ('<hub', '48:3f:da:55:07:5b')
[1700311625991]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdcb85ce3e0> ret: None
[1700311625995]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fdcb85ce7a0> ()
[1700311625996]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fdcb85ce7a0> ret: None
[1700311625997] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-18 12:47:04,975 - TEST - INFO - OP take: 1005.323 ms
2023-11-18 12:47:04,979 - TEST - INFO - Connected with result code: 0
2023-11-18 12:47:04,986 - TEST - INFO - OP take: 10.12 ms
2023-11-18 12:47:05,995 - TEST - INFO - OP take: 0.01 ms
2023-11-18 12:47:06,003 - TEST - WARNING - Disconecting from broker