Test Report : TEST-client_registration_test-20240330134646.xml

  • client_registration_test

Test Suite: client_registration_test-20240330134646

Results

Duration3.556 sec
Tests1
Failures0

Tests

client_registration_test

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

Suite stdout:

[1711806406427] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1711806406427] [INFO] FW-UPD  Initialized
[1711806406427]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f019a534cc0> (<uclient.hub.HUB object at 0x7f019a39ef10>,)
[1711806406427]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f019a534cc0> ret: None
[1711806406427]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f019a7234c0> ('<48:3f:da:55:07:5b/status', '-1')
[1711806406427]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f019a7234c0> ret: None
[1711806406427]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f019a723240> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f019a39ef10>>,)
[1711806406427]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f019a723240> ret: None
[1711806406427]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f019a723380> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f019a39ef10>>,)
[1711806406427]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f019a723380> ret: None
[1711806406427] [WARN] HUB  Try to connect without uri-schema
[1711806406427]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f019a722c00> ('x.ks.ua',)
[1711806407633] [INFO] HUB  Connected
[1711806407633]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f019a722e80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f019a39ef10>>)
[1711806407674]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f019a722e80> ret: None
[1711806407674]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f019a722e80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f019a39ef10>>)
[1711806407718]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f019a722e80> ret: None
[1711806407718] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711806407718]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f019a722e80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f019a39ef10>>)
[1711806407762]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f019a722e80> ret: None
[1711806407762] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711806407762]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f019a722e80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f019a39ef10>>)
[1711806407806]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f019a722e80> ret: None
[1711806407806] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711806407806]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f019a722e80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f019a39ef10>>)
[1711806407850]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f019a722e80> ret: None
[1711806407850] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711806407850]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f019a722e80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f019a39ef10>>)
[1711806407894]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f019a722e80> ret: None
[1711806407894] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711806407894]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f019a722e80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f019a39ef10>>)
[1711806407938]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f019a722e80> ret: None
[1711806407938]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f019a722c00> ret: None
[1711806407939]  [DBG] HUB  Step, state: 0 (next: 1711806408939)
[1711806407939] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1711806407939]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f019a722d40> ('/reg', '48:3f:da:55:07:5b')
[1711806407983]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f019a722d40> ret: None
[1711806408026] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1711806408001 }
[1711806408026] [INFO] HUB  Registration finish, time: 1711806408001
[1711806408026]  [DBG] FW-UPD  enter <function device_base.register at 0x7f019a5351c0> (1711806408,)
[1711806408026] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1711806408
[1711806408026] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711806408026]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f019a722e80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f019a39ef10>>)
[1711806408071]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f019a722e80> ret: None
[1711806408071]  [DBG] FW-UPD  exit <function device_base.register at 0x7f019a5351c0> ret: None
[1711806408939]  [DBG] HUB  Step, state: 1 (next: 1711806409939)
[1711806408939]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f019a535a80> ()
[1711806408939]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f019a535a80> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711806408}}
[1711806408939] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711806408}}]} }
[1711806408939]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f019a722d40> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711806408}}]}')
[1711806408939]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f019a722d40> ret: None
[1711806409968]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f019a723100> ()
[1711806409969]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f019a723100> ret: None
[1711806409971] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-03-30 13:46:48,944 - TEST - INFO - OP take: 1005.207 ms
2024-03-30 13:46:48,964 - TEST - INFO - Connected with result code: 0
2024-03-30 13:46:48,968 - TEST - INFO - OP take: 10.076 ms
2024-03-30 13:46:49,978 - TEST - WARNING - Disconecting from broker