Test Report : TEST-hub_topic_test-20240407051013.xml
Test Suite: hub_topic_test-20240407051013
Results
| Duration | 3.367 sec |
| Tests | 1 |
| Failures | 0 |
Tests
hub_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.367 sec |
| Failed | None |
None
Suite stdout:
[1712466613867] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1712466613868] [INFO] FW-UPD Initialized
[1712466613868] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f3293aec540> (<uclient.hub.HUB object at 0x7f3293968790>,)
[1712466613868] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f3293aec540> ret: None
[1712466613868] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f3293cf6e80> ('<48:3f:da:55:07:5b/status', '-1')
[1712466613868] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f3293cf6e80> ret: None
[1712466613868] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f3293cf6c00> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f3293968790>>,)
[1712466613868] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f3293cf6c00> ret: None
[1712466613868] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f3293cf6d40> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f3293968790>>,)
[1712466613868] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f3293cf6d40> ret: None
[1712466613868] [WARN] HUB Try to connect without uri-schema
[1712466613868] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f3293cf65c0> ('x.ks.ua',)
[1712466614873] [INFO] HUB Connected
[1712466614873] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3293cf6840> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3293968790>>)
[1712466614915] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3293cf6840> ret: None
[1712466614915] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3293cf6840> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3293968790>>)
[1712466614958] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3293cf6840> ret: None
[1712466614958] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1712466614958] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3293cf6840> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3293968790>>)
[1712466615002] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3293cf6840> ret: None
[1712466615002] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1712466615002] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3293cf6840> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3293968790>>)
[1712466615046] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3293cf6840> ret: None
[1712466615046] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1712466615046] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3293cf6840> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3293968790>>)
[1712466615090] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3293cf6840> ret: None
[1712466615090] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1712466615090] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3293cf6840> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3293968790>>)
[1712466615134] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3293cf6840> ret: None
[1712466615134] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1712466615134] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3293cf6840> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3293968790>>)
[1712466615178] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3293cf6840> ret: None
[1712466615178] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f3293cf65c0> ret: None
[1712466615179] [DBG] HUB Step, state: 0 (next: 1712466616179)
[1712466615179] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1712466615179] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3293cf6700> ('/reg', '48:3f:da:55:07:5b')
[1712466615223] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3293cf6700> ret: None
[1712466615266] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1712466615226 }
[1712466615266] [INFO] HUB Registration finish, time: 1712466615226
[1712466615266] [DBG] FW-UPD enter <function device_base.register at 0x7f3293aeca40> (1712466615,)
[1712466615266] [INFO] FW-UPD Device 3996365522 registration on the server @ 1712466615
[1712466615266] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1712466615266] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3293cf6840> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3293968790>>)
[1712466615310] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3293cf6840> ret: None
[1712466615310] [DBG] FW-UPD exit <function device_base.register at 0x7f3293aeca40> ret: None
[1712466616179] [DBG] HUB Step, state: 1 (next: 1712466617179)
[1712466616179] [DBG] FW-UPD enter <function device_base.info_req at 0x7f3293aed300> ()
[1712466616179] [DBG] FW-UPD exit <function device_base.info_req at 0x7f3293aed300> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1712466615}}
[1712466616179] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240407;master;fc74d869358fa60643af852fcb85137b7a1f5f15", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1712466615}}]} }
[1712466616179] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3293cf6700> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240407;master;fc74d869358fa60643af852fcb85137b7a1f5f15", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1712466615}}]}')
[1712466616179] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3293cf6700> ret: None
[1712466617227] [INFO] HUB Message: {topic: >hub, value: 3996365522 }
[1712466617227] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3293cf6700> ('<hub', '48:3f:da:55:07:5b')
[1712466617227] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3293cf6700> ret: None
[1712466617231] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f3293cf6ac0> ()
[1712466617232] [WARN] HUB Disconecting from broker
[1712466617232] [WARN] MQTT Reconnecting in 1s
[1712466617232] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f3293cf6ac0> ret: None
Suite stderr:
2024-04-07 05:10:16,184 - TEST - INFO - OP take: 1005.203 ms
2024-04-07 05:10:16,197 - TEST - INFO - Connected with result code: 0
2024-04-07 05:10:16,209 - TEST - INFO - OP take: 20.172 ms
2024-04-07 05:10:17,229 - TEST - INFO - OP take: 0.013 ms
2024-04-07 05:10:17,232 - TEST - WARNING - Disconecting from broker
2024-04-07 05:10:17,233 - TEST - WARNING - Disconecting from broker