Test Report : TEST-client_registration_test-20231119212306.xml

  • client_registration_test

Test Suite: client_registration_test-20231119212306

Results

Duration3.485 sec
Tests1
Failures0

Tests

client_registration_test

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

Suite stdout:

[1700428986561] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1700428986561] [INFO] FW-UPD  Initialized
[1700428986561]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fce193d4860> (<uclient.hub.HUB object at 0x7fce1924e890>,)
[1700428986561]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fce193d4860> ret: None
[1700428986561]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fce19627100> ('<48:3f:da:55:07:5b/status', '-1')
[1700428986561]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fce19627100> ret: None
[1700428986561]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fce19626e80> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fce1924e890>>,)
[1700428986561]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fce19626e80> ret: None
[1700428986561]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fce19626fc0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fce1924e890>>,)
[1700428986561]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fce19626fc0> ret: None
[1700428986561]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fce19625b20> ('x.ks.ua', 1883)
[1700428987633] [INFO] HUB  Connected
[1700428987634]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fce19626ac0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fce1924e890>>)
[1700428987677]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fce19626ac0> ret: None
[1700428987677]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fce19626ac0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fce1924e890>>)
[1700428987720]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fce19626ac0> ret: None
[1700428987721] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700428987721]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fce19626ac0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fce1924e890>>)
[1700428987764]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fce19626ac0> ret: None
[1700428987765] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700428987765]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fce19626ac0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fce1924e890>>)
[1700428987808]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fce19626ac0> ret: None
[1700428987808] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700428987808]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fce19626ac0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fce1924e890>>)
[1700428987852]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fce19626ac0> ret: None
[1700428987852] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700428987853]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fce19626ac0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fce1924e890>>)
[1700428987896]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fce19626ac0> ret: None
[1700428987896] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700428987897]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fce19626ac0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fce1924e890>>)
[1700428987940]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fce19626ac0> ret: None
[1700428987940]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fce19625b20> ret: None
[1700428987942]  [DBG] HUB  Step, state: 0 (next: 1700428988942)
[1700428987942] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1700428987942]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fce19626980> ('/reg', '48:3f:da:55:07:5b')
[1700428987985]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fce19626980> ret: None
[1700428988028] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1700428987990 }
[1700428988028] [INFO] HUB  Registration finish, time: 1700428987990
[1700428988028]  [DBG] FW-UPD  enter <function device_base.register at 0x7fce193d4d60> (1700428987,)
[1700428988028] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1700428987
[1700428988028] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700428988028]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fce19626ac0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fce1924e890>>)
[1700428988073]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fce19626ac0> ret: None
[1700428988073]  [DBG] FW-UPD  exit <function device_base.register at 0x7fce193d4d60> ret: None
[1700428988942]  [DBG] HUB  Step, state: 1 (next: 1700428989942)
[1700428988942]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fce193d5620> ()
[1700428988942]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fce193d5620> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700428987}}
[1700428988943] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700428987}}]} }
[1700428988943]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fce19626980> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700428987}}]}')
[1700428988943]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fce19626980> ret: None
[1700428990027]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fce19626d40> ()
[1700428990027]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fce19626d40> ret: None
[1700428990029] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-19 21:23:08,949 - TEST - INFO - OP take: 1006.971 ms
2023-11-19 21:23:09,023 - TEST - INFO - Connected with result code: 0
2023-11-19 21:23:09,027 - TEST - INFO - OP take: 72.555 ms
2023-11-19 21:23:10,034 - TEST - WARNING - Disconecting from broker
2023-11-19 21:23:10,050 - TEST - WARNING - Disconecting from broker