Test Report : TEST-version_topic_test-20240413183049.xml

  • version_topic_test

Test Suite: version_topic_test-20240413183049

Results

Duration3.378 sec
Tests1
Failures0

Tests

version_topic_test

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

Suite stdout:

[1713033049207] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1713033049207] [INFO] FW-UPD  Initialized
[1713033049207]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fc113eec5e0> (<uclient.hub.HUB object at 0x7fc11415fc50>,)
[1713033049207]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fc113eec5e0> ret: None
[1713033049207]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fc11416af20> ('<48:3f:da:55:07:5b/status', '-1')
[1713033049207]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fc11416af20> ret: None
[1713033049207]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fc11416aca0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fc11415fc50>>,)
[1713033049207]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fc11416aca0> ret: None
[1713033049207]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fc11416ade0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fc11415fc50>>,)
[1713033049207]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fc11416ade0> ret: None
[1713033049207] [WARN] HUB  Try to connect without uri-schema
[1713033049207]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fc11416a660> ('x.ks.ua',)
[1713033050212] [INFO] HUB  Connected
[1713033050212]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc11416a8e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc11415fc50>>)
[1713033050254]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc11416a8e0> ret: None
[1713033050254]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc11416a8e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc11415fc50>>)
[1713033050298]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc11416a8e0> ret: None
[1713033050298] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713033050298]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc11416a8e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc11415fc50>>)
[1713033050342]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc11416a8e0> ret: None
[1713033050342] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713033050342]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc11416a8e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc11415fc50>>)
[1713033050386]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc11416a8e0> ret: None
[1713033050386] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713033050386]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc11416a8e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc11415fc50>>)
[1713033050430]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc11416a8e0> ret: None
[1713033050430] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713033050430]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc11416a8e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc11415fc50>>)
[1713033050474]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc11416a8e0> ret: None
[1713033050474] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713033050474]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc11416a8e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc11415fc50>>)
[1713033050518]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc11416a8e0> ret: None
[1713033050518]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fc11416a660> ret: None
[1713033050519]  [DBG] HUB  Step, state: 0 (next: 1713033051519)
[1713033050519] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1713033050519]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fc11416a7a0> ('/reg', '48:3f:da:55:07:5b')
[1713033050562]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fc11416a7a0> ret: None
[1713033050606] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1713033050569 }
[1713033050606] [INFO] HUB  Registration finish, time: 1713033050569
[1713033050606]  [DBG] FW-UPD  enter <function device_base.register at 0x7fc113eecae0> (1713033050,)
[1713033050606] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1713033050
[1713033050606] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713033050606]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc11416a8e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc11415fc50>>)
[1713033050650]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc11416a8e0> ret: None
[1713033050650]  [DBG] FW-UPD  exit <function device_base.register at 0x7fc113eecae0> ret: None
[1713033051520]  [DBG] HUB  Step, state: 1 (next: 1713033052520)
[1713033051520]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fc113eed3a0> ()
[1713033051520]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fc113eed3a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713033050}}
[1713033051520] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240413;master;3ad924fe4d0ad95a2a5e5eda31858f370b1d89ff", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713033050}}]} }
[1713033051520]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fc11416a7a0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240413;master;3ad924fe4d0ad95a2a5e5eda31858f370b1d89ff", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713033050}}]}')
[1713033051521]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fc11416a7a0> ret: None
[1713033052561] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/version, value: version }
[1713033052561] [INFO] HUB  Publish message: { topic: version, value: R240413;master;3ad924fe4d0ad95a2a5e5eda31858f370b1d89ff }
[1713033052561]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fc11416a7a0> ('<48:3f:da:55:07:5b/version', 'R240413;master;3ad924fe4d0ad95a2a5e5eda31858f370b1d89ff')
[1713033052561]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fc11416a7a0> ret: None
[1713033052576]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fc11416ab60> ()
[1713033052576]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fc11416ab60> ret: None
[1713033052577] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-04-13 18:30:51,531 - TEST - INFO - OP take: 1012.095 ms
2024-04-13 18:30:51,549 - TEST - INFO - Connected with result code: 0
2024-04-13 18:30:51,559 - TEST - INFO - OP take: 20.16 ms
2024-04-13 18:30:52,560 - TEST - INFO - [hub] => { 'version' : 'version' }
2024-04-13 18:30:52,576 - TEST - INFO - OP take: 10.185 ms
2024-04-13 18:30:52,583 - TEST - WARNING - Disconecting from broker