Test Report : TEST-hub_topic_test-20231119213443.xml

  • hub_topic_test

Test Suite: hub_topic_test-20231119213443

Results

Duration3.359 sec
Tests1
Failures0

Tests

hub_topic_test

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

Suite stdout:

[1700429683053] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1700429683053] [INFO] FW-UPD  Initialized
[1700429683053]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fcd9ddb0220> (<uclient.hub.HUB object at 0x7fcd9dc28910>,)
[1700429683054]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fcd9ddb0220> ret: None
[1700429683054]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fcd9dfbab60> ('<48:3f:da:55:07:5b/status', '-1')
[1700429683054]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fcd9dfbab60> ret: None
[1700429683054]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fcd9dfba8e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fcd9dc28910>>,)
[1700429683054]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fcd9dfba8e0> ret: None
[1700429683054]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fcd9dfbaa20> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fcd9dc28910>>,)
[1700429683054]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fcd9dfbaa20> ret: None
[1700429683054]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fcd9dfb9d00> ('x.ks.ua', 1883)
[1700429684062] [INFO] HUB  Connected
[1700429684062]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd9dfba520> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd9dc28910>>)
[1700429684106]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd9dfba520> ret: None
[1700429684106]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd9dfba520> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd9dc28910>>)
[1700429684148]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd9dfba520> ret: None
[1700429684148] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700429684148]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd9dfba520> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd9dc28910>>)
[1700429684193]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd9dfba520> ret: None
[1700429684193] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700429684193]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd9dfba520> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd9dc28910>>)
[1700429684236]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd9dfba520> ret: None
[1700429684236] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700429684236]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd9dfba520> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd9dc28910>>)
[1700429684280]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd9dfba520> ret: None
[1700429684280] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700429684280]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd9dfba520> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd9dc28910>>)
[1700429684324]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd9dfba520> ret: None
[1700429684324] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700429684324]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd9dfba520> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd9dc28910>>)
[1700429684368]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd9dfba520> ret: None
[1700429684368]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fcd9dfb9d00> ret: None
[1700429684369]  [DBG] HUB  Step, state: 0 (next: 1700429685369)
[1700429684369] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1700429684369]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fcd9dfba3e0> ('/reg', '48:3f:da:55:07:5b')
[1700429684413]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fcd9dfba3e0> ret: None
[1700429684456] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1700429684414 }
[1700429684456] [INFO] HUB  Registration finish, time: 1700429684414
[1700429684456]  [DBG] FW-UPD  enter <function device_base.register at 0x7fcd9ddb0720> (1700429684,)
[1700429684456] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1700429684
[1700429684456] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700429684456]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fcd9dfba520> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcd9dc28910>>)
[1700429684500]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fcd9dfba520> ret: None
[1700429684500]  [DBG] FW-UPD  exit <function device_base.register at 0x7fcd9ddb0720> ret: None
[1700429685369]  [DBG] HUB  Step, state: 1 (next: 1700429686369)
[1700429685369]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fcd9ddb0fe0> ()
[1700429685369]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fcd9ddb0fe0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700429684}}
[1700429685369] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700429684}}]} }
[1700429685369]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fcd9dfba3e0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700429684}}]}')
[1700429685369]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fcd9dfba3e0> ret: None
[1700429686392] [INFO] HUB  Message: {topic: >hub, value: 3996365522 }
[1700429686392]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fcd9dfba3e0> ('<hub', '48:3f:da:55:07:5b')
[1700429686393]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fcd9dfba3e0> ret: None
[1700429686395]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fcd9dfba7a0> ()
[1700429686395]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fcd9dfba7a0> ret: None
[1700429686395] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-19 21:34:45,375 - TEST - INFO - OP take: 1005.393 ms
2023-11-19 21:34:45,383 - TEST - INFO - Connected with result code: 0
2023-11-19 21:34:45,387 - TEST - INFO - OP take: 10.075 ms
2023-11-19 21:34:46,394 - TEST - INFO - OP take: 0.007 ms
2023-11-19 21:34:46,401 - TEST - WARNING - Disconecting from broker