Test Report : TEST-hub_topic_test-20240331123356.xml

  • hub_topic_test

Test Suite: hub_topic_test-20240331123356

Results

Duration3.35 sec
Tests1
Failures0

Tests

hub_topic_test

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

Suite stdout:

[1711888436472] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1711888436472] [INFO] FW-UPD  Initialized
[1711888436472]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f6171a40540> (<uclient.hub.HUB object at 0x7f6172444cd0>,)
[1711888436472]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f6171a40540> ret: None
[1711888436473]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f6171cb2e80> ('<48:3f:da:55:07:5b/status', '-1')
[1711888436473]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f6171cb2e80> ret: None
[1711888436473]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f6171cb2c00> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f6172444cd0>>,)
[1711888436473]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f6171cb2c00> ret: None
[1711888436473]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f6171cb2d40> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f6172444cd0>>,)
[1711888436473]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f6171cb2d40> ret: None
[1711888436473] [WARN] HUB  Try to connect without uri-schema
[1711888436473]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f6171cb25c0> ('x.ks.ua',)
[1711888437477] [INFO] HUB  Connected
[1711888437477]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6171cb2840> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6172444cd0>>)
[1711888437518]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6171cb2840> ret: None
[1711888437518]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6171cb2840> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6172444cd0>>)
[1711888437562]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6171cb2840> ret: None
[1711888437562] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711888437562]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6171cb2840> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6172444cd0>>)
[1711888437606]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6171cb2840> ret: None
[1711888437606] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711888437606]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6171cb2840> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6172444cd0>>)
[1711888437650]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6171cb2840> ret: None
[1711888437650] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711888437650]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6171cb2840> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6172444cd0>>)
[1711888437694]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6171cb2840> ret: None
[1711888437694] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711888437694]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6171cb2840> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6172444cd0>>)
[1711888437738]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6171cb2840> ret: None
[1711888437738] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711888437738]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6171cb2840> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6172444cd0>>)
[1711888437782]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6171cb2840> ret: None
[1711888437782]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f6171cb25c0> ret: None
[1711888437783]  [DBG] HUB  Step, state: 0 (next: 1711888438783)
[1711888437783] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1711888437783]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6171cb2700> ('/reg', '48:3f:da:55:07:5b')
[1711888437826]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6171cb2700> ret: None
[1711888437870] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1711888437828 }
[1711888437870] [INFO] HUB  Registration finish, time: 1711888437828
[1711888437870]  [DBG] FW-UPD  enter <function device_base.register at 0x7f6171a40a40> (1711888437,)
[1711888437870] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1711888437
[1711888437870] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711888437870]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6171cb2840> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6172444cd0>>)
[1711888437914]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6171cb2840> ret: None
[1711888437914]  [DBG] FW-UPD  exit <function device_base.register at 0x7f6171a40a40> ret: None
[1711888438783]  [DBG] HUB  Step, state: 1 (next: 1711888439783)
[1711888438783]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f6171a41300> ()
[1711888438783]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f6171a41300> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711888437}}
[1711888438783] [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": 1711888437}}]} }
[1711888438783]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6171cb2700> ('/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": 1711888437}}]}')
[1711888438783]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6171cb2700> ret: None
[1711888439809]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f6171cb2ac0> ()
[1711888439809]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f6171cb2ac0> ret: None
[1711888439810] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-03-31 12:33:58,788 - TEST - INFO - OP take: 1005.147 ms
2024-03-31 12:33:58,798 - TEST - INFO - Connected with result code: 0
2024-03-31 12:33:58,802 - TEST - INFO - OP take: 10.074 ms
2024-03-31 12:33:59,808 - TEST - INFO - OP take: 0.01 ms
2024-03-31 12:33:59,816 - TEST - WARNING - Disconecting from broker