Test Report : TEST-ping_topic_test-20240202134633.xml

  • ping_topic_test

Test Suite: ping_topic_test-20240202134633

Results

Duration3.352 sec
Tests1
Failures0

Tests

ping_topic_test

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

Suite stdout:

[1706881593077] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1706881593077] [INFO] FW-UPD  Initialized
[1706881593077]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f21fab682c0> (<uclient.hub.HUB object at 0x7f21fb503d10>,)
[1706881593077]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f21fab682c0> ret: None
[1706881593077]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f21fadd2c00> ('<48:3f:da:55:07:5b/status', '-1')
[1706881593077]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f21fadd2c00> ret: None
[1706881593077]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f21fadd2980> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f21fb503d10>>,)
[1706881593077]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f21fadd2980> ret: None
[1706881593077]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f21fadd2ac0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f21fb503d10>>,)
[1706881593077]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f21fadd2ac0> ret: None
[1706881593077] [WARN] HUB  Try to connect without uri-schema
[1706881593077]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f21fadd1da0> ('x.ks.ua',)
[1706881594081] [INFO] HUB  Connected
[1706881594081]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21fadd25c0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21fb503d10>>)
[1706881594123]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21fadd25c0> ret: None
[1706881594123]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21fadd25c0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21fb503d10>>)
[1706881594167]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21fadd25c0> ret: None
[1706881594167] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1706881594167]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21fadd25c0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21fb503d10>>)
[1706881594211]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21fadd25c0> ret: None
[1706881594211] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1706881594211]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21fadd25c0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21fb503d10>>)
[1706881594255]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21fadd25c0> ret: None
[1706881594255] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1706881594255]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21fadd25c0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21fb503d10>>)
[1706881594299]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21fadd25c0> ret: None
[1706881594299] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1706881594299]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21fadd25c0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21fb503d10>>)
[1706881594343]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21fadd25c0> ret: None
[1706881594343] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1706881594343]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21fadd25c0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21fb503d10>>)
[1706881594387]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21fadd25c0> ret: None
[1706881594387]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f21fadd1da0> ret: None
[1706881594388]  [DBG] HUB  Step, state: 0 (next: 1706881595388)
[1706881594388] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1706881594388]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f21fadd2480> ('/reg', '48:3f:da:55:07:5b')
[1706881594433]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f21fadd2480> ret: None
[1706881594475] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1706881594434 }
[1706881594475] [INFO] HUB  Registration finish, time: 1706881594434
[1706881594475]  [DBG] FW-UPD  enter <function device_base.register at 0x7f21fab687c0> (1706881594,)
[1706881594475] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1706881594
[1706881594475] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1706881594475]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21fadd25c0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21fb503d10>>)
[1706881594519]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21fadd25c0> ret: None
[1706881594520]  [DBG] FW-UPD  exit <function device_base.register at 0x7f21fab687c0> ret: None
[1706881595388]  [DBG] HUB  Step, state: 1 (next: 1706881596388)
[1706881595388]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f21fab69080> ()
[1706881595388]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f21fab69080> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1706881594}}
[1706881595388] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706881594}}]} }
[1706881595388]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f21fadd2480> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706881594}}]}')
[1706881595388]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f21fadd2480> ret: None
[1706881596409] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1706881596409] [INFO] HUB  Ping command
[1706881596409] [INFO] HUB  Publish message: { topic: ping, value: OK }
[1706881596409]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f21fadd2480> ('<48:3f:da:55:07:5b/ping', 'OK')
[1706881596409]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f21fadd2480> ret: None
[1706881596421]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f21fadd2840> ()
[1706881596421]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f21fadd2840> ret: None
[1706881596421] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-02-02 13:46:35,394 - TEST - INFO - OP take: 1005.757 ms
2024-02-02 13:46:35,400 - TEST - INFO - Connected with result code: 0
2024-02-02 13:46:35,407 - TEST - INFO - OP take: 10.119 ms
2024-02-02 13:46:36,408 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2024-02-02 13:46:36,421 - TEST - INFO - OP take: 10.109 ms
2024-02-02 13:46:36,427 - TEST - WARNING - Disconecting from broker