Test Report : TEST-client_registration_test-20231118123527.xml

  • client_registration_test

Test Suite: client_registration_test-20231118123527

Results

Duration3.348 sec
Tests1
Failures0

Tests

client_registration_test

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

Suite stdout:

[1700310927492] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1700310927493] [INFO] FW-UPD  Initialized
[1700310927493]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fe99a4f0860> (<uclient.hub.HUB object at 0x7fe99a372bd0>,)
[1700310927493]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fe99a4f0860> ret: None
[1700310927493]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fe99a74b100> ('<48:3f:da:55:07:5b/status', '-1')
[1700310927493]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fe99a74b100> ret: None
[1700310927493]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fe99a74ae80> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fe99a372bd0>>,)
[1700310927493]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fe99a74ae80> ret: None
[1700310927493]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fe99a74afc0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fe99a372bd0>>,)
[1700310927493]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fe99a74afc0> ret: None
[1700310927493]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fe99a749b20> ('x.ks.ua', 1883)
[1700310928496] [INFO] HUB  Connected
[1700310928496]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe99a74aac0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe99a372bd0>>)
[1700310928540]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe99a74aac0> ret: None
[1700310928540]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe99a74aac0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe99a372bd0>>)
[1700310928584]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe99a74aac0> ret: None
[1700310928584] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700310928584]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe99a74aac0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe99a372bd0>>)
[1700310928629]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe99a74aac0> ret: None
[1700310928629] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700310928629]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe99a74aac0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe99a372bd0>>)
[1700310928672]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe99a74aac0> ret: None
[1700310928672] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700310928672]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe99a74aac0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe99a372bd0>>)
[1700310928717]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe99a74aac0> ret: None
[1700310928717] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700310928717]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe99a74aac0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe99a372bd0>>)
[1700310928761]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe99a74aac0> ret: None
[1700310928761] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700310928761]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe99a74aac0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe99a372bd0>>)
[1700310928805]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe99a74aac0> ret: None
[1700310928805]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fe99a749b20> ret: None
[1700310928806]  [DBG] HUB  Step, state: 0 (next: 1700310929806)
[1700310928806] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1700310928806]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fe99a74a980> ('/reg', '48:3f:da:55:07:5b')
[1700310928851]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fe99a74a980> ret: None
[1700310928892] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1700310928858 }
[1700310928892] [INFO] HUB  Registration finish, time: 1700310928858
[1700310928892]  [DBG] FW-UPD  enter <function device_base.register at 0x7fe99a4f0d60> (1700310928,)
[1700310928892] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1700310928
[1700310928892] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700310928892]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fe99a74aac0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe99a372bd0>>)
[1700310928937]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fe99a74aac0> ret: None
[1700310928937]  [DBG] FW-UPD  exit <function device_base.register at 0x7fe99a4f0d60> ret: None
[1700310929806]  [DBG] HUB  Step, state: 1 (next: 1700310930806)
[1700310929806]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fe99a4f1620> ()
[1700310929806]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fe99a4f1620> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700310928}}
[1700310929806] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700310928}}]} }
[1700310929806]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fe99a74a980> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700310928}}]}')
[1700310929806]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fe99a74a980> ret: None
[1700310930828]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fe99a74ad40> ()
[1700310930828]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fe99a74ad40> ret: None
[1700310930831] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-18 12:35:29,813 - TEST - INFO - OP take: 1006.752 ms
2023-11-18 12:35:29,824 - TEST - INFO - Connected with result code: 0
2023-11-18 12:35:29,828 - TEST - INFO - OP take: 10.069 ms
2023-11-18 12:35:30,838 - TEST - WARNING - Disconecting from broker