Test Report : TEST-version_topic_test-20240414062009.xml

  • version_topic_test

Test Suite: version_topic_test-20240414062009

Results

Duration3.342 sec
Tests1
Failures0

Tests

version_topic_test

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

Suite stdout:

[1713075609878] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1713075609879] [INFO] FW-UPD  Initialized
[1713075609879]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fdeac4745e0> (<uclient.hub.HUB object at 0x7fdeac6e7c50>,)
[1713075609879]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fdeac4745e0> ret: None
[1713075609879]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fdeac6f2f20> ('<48:3f:da:55:07:5b/status', '-1')
[1713075609879]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fdeac6f2f20> ret: None
[1713075609879]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fdeac6f2ca0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fdeac6e7c50>>,)
[1713075609879]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fdeac6f2ca0> ret: None
[1713075609879]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fdeac6f2de0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fdeac6e7c50>>,)
[1713075609879]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fdeac6f2de0> ret: None
[1713075609879] [WARN] HUB  Try to connect without uri-schema
[1713075609879]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fdeac6f2660> ('x.ks.ua',)
[1713075610884] [INFO] HUB  Connected
[1713075610884]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdeac6e7c50>>)
[1713075610926]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ret: None
[1713075610926]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdeac6e7c50>>)
[1713075610970]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ret: None
[1713075610970] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713075610970]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdeac6e7c50>>)
[1713075611014]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ret: None
[1713075611014] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713075611014]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdeac6e7c50>>)
[1713075611058]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ret: None
[1713075611058] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713075611058]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdeac6e7c50>>)
[1713075611102]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ret: None
[1713075611102] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713075611102]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdeac6e7c50>>)
[1713075611146]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ret: None
[1713075611146] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713075611146]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdeac6e7c50>>)
[1713075611190]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ret: None
[1713075611190]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fdeac6f2660> ret: None
[1713075611191]  [DBG] HUB  Step, state: 0 (next: 1713075612191)
[1713075611191] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1713075611191]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdeac6f27a0> ('/reg', '48:3f:da:55:07:5b')
[1713075611235]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdeac6f27a0> ret: None
[1713075611278] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1713075611239 }
[1713075611278] [INFO] HUB  Registration finish, time: 1713075611239
[1713075611278]  [DBG] FW-UPD  enter <function device_base.register at 0x7fdeac474ae0> (1713075611,)
[1713075611278] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1713075611
[1713075611278] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713075611278]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fdeac6e7c50>>)
[1713075611322]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdeac6f28e0> ret: None
[1713075611322]  [DBG] FW-UPD  exit <function device_base.register at 0x7fdeac474ae0> ret: None
[1713075612191]  [DBG] HUB  Step, state: 1 (next: 1713075613191)
[1713075612191]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fdeac4753a0> ()
[1713075612191]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fdeac4753a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713075611}}
[1713075612191] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d0952f68a2ecbb629e45cc7aa508fee8abd0626a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713075611}}]} }
[1713075612191]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdeac6f27a0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d0952f68a2ecbb629e45cc7aa508fee8abd0626a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713075611}}]}')
[1713075612191]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdeac6f27a0> ret: None
[1713075613212] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/version, value: version }
[1713075613212] [INFO] HUB  Publish message: { topic: version, value: R240414;master;d0952f68a2ecbb629e45cc7aa508fee8abd0626a }
[1713075613213]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdeac6f27a0> ('<48:3f:da:55:07:5b/version', 'R240414;master;d0952f68a2ecbb629e45cc7aa508fee8abd0626a')
[1713075613213]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdeac6f27a0> ret: None
[1713075613217]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fdeac6f2b60> ()
[1713075613218] [WARN] HUB  Disconecting from broker
[1713075613218] [WARN] MQTT  Reconnecting in 1s
[1713075613218]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fdeac6f2b60> ret: None

Suite stderr:

2024-04-14 06:20:12,199 - TEST - INFO - OP take: 1008.33 ms
2024-04-14 06:20:12,208 - TEST - INFO - Connected with result code: 0
2024-04-14 06:20:12,211 - TEST - INFO - OP take: 10.092 ms
2024-04-14 06:20:13,212 - TEST - INFO - [hub] => { 'version' : 'version' }
2024-04-14 06:20:13,216 - TEST - INFO - OP take: 0.005 ms
2024-04-14 06:20:13,219 - TEST - WARNING - Disconecting from broker
2024-04-14 06:20:13,220 - TEST - WARNING - Disconecting from broker