Test Report : TEST-hub_topic_test-20240210233622.xml

  • hub_topic_test

Test Suite: hub_topic_test-20240210233622

Results

Duration3.355 sec
Tests1
Failures0

Tests

hub_topic_test

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

Suite stdout:

[1707608182958] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1707608182958] [INFO] FW-UPD  Initialized
[1707608182958]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f5467cb4540> (<uclient.hub.HUB object at 0x7f5467b31050>,)
[1707608182958]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f5467cb4540> ret: None
[1707608182959]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f5467f22e80> ('<48:3f:da:55:07:5b/status', '-1')
[1707608182959]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f5467f22e80> ret: None
[1707608182959]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f5467f22c00> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f5467b31050>>,)
[1707608182959]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f5467f22c00> ret: None
[1707608182959]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f5467f22d40> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f5467b31050>>,)
[1707608182959]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f5467f22d40> ret: None
[1707608182959] [WARN] HUB  Try to connect without uri-schema
[1707608182959]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f5467f225c0> ('x.ks.ua',)
[1707608183963] [INFO] HUB  Connected
[1707608183963]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5467f22840> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5467b31050>>)
[1707608184007]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5467f22840> ret: None
[1707608184007]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5467f22840> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5467b31050>>)
[1707608184051]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5467f22840> ret: None
[1707608184051] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707608184051]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5467f22840> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5467b31050>>)
[1707608184095]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5467f22840> ret: None
[1707608184096] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707608184096]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5467f22840> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5467b31050>>)
[1707608184139]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5467f22840> ret: None
[1707608184139] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707608184139]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5467f22840> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5467b31050>>)
[1707608184183]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5467f22840> ret: None
[1707608184183] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707608184183]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5467f22840> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5467b31050>>)
[1707608184227]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5467f22840> ret: None
[1707608184227] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707608184227]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5467f22840> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5467b31050>>)
[1707608184271]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5467f22840> ret: None
[1707608184271]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f5467f225c0> ret: None
[1707608184272]  [DBG] HUB  Step, state: 0 (next: 1707608185272)
[1707608184272] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1707608184272]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f5467f22700> ('/reg', '48:3f:da:55:07:5b')
[1707608184316]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f5467f22700> ret: None
[1707608184359] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1707608184319 }
[1707608184359] [INFO] HUB  Registration finish, time: 1707608184319
[1707608184359]  [DBG] FW-UPD  enter <function device_base.register at 0x7f5467cb4a40> (1707608184,)
[1707608184359] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1707608184
[1707608184359] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707608184359]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f5467f22840> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f5467b31050>>)
[1707608184403]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f5467f22840> ret: None
[1707608184403]  [DBG] FW-UPD  exit <function device_base.register at 0x7f5467cb4a40> ret: None
[1707608185272]  [DBG] HUB  Step, state: 1 (next: 1707608186272)
[1707608185272]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f5467cb5300> ()
[1707608185272]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f5467cb5300> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707608184}}
[1707608185272] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707608184}}]} }
[1707608185272]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f5467f22700> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707608184}}]}')
[1707608185272]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f5467f22700> ret: None
[1707608186292] [INFO] HUB  Message: {topic: >hub, value: 3996365522 }
[1707608186292]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f5467f22700> ('<hub', '48:3f:da:55:07:5b')
[1707608186292]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f5467f22700> ret: None
[1707608186294]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f5467f22ac0> ()
[1707608186295]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f5467f22ac0> ret: None
[1707608186295] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-02-10 23:36:25,278 - TEST - INFO - OP take: 1006.13 ms
2024-02-10 23:36:25,283 - TEST - INFO - Connected with result code: 0
2024-02-10 23:36:25,290 - TEST - INFO - OP take: 10.133 ms
2024-02-10 23:36:26,294 - TEST - INFO - OP take: 0.005 ms
2024-02-10 23:36:26,301 - TEST - WARNING - Disconecting from broker
2024-02-10 23:36:26,312 - TEST - WARNING - Disconecting from broker