Test Report : TEST-client_registration_test-20240422015246.xml

  • client_registration_test

Test Suite: client_registration_test-20240422015246

Results

Duration3.499 sec
Tests1
Failures0

Tests

client_registration_test

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

Suite stdout:

[1713750766517] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1713750766517] [INFO] FW-UPD  Initialized
[1713750766517]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f531d5e4cc0> (<uclient.hub.HUB object at 0x7f531dfd2190>,)
[1713750766517]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f531d5e4cc0> ret: None
[1713750766517]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f531d7d34c0> ('<48:3f:da:55:07:5b/status', '-1')
[1713750766517]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f531d7d34c0> ret: None
[1713750766517]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f531d7d3240> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f531dfd2190>>,)
[1713750766517]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f531d7d3240> ret: None
[1713750766517]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f531d7d3380> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f531dfd2190>>,)
[1713750766517]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f531d7d3380> ret: None
[1713750766517] [WARN] HUB  Try to connect without uri-schema
[1713750766517]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f531d7d2c00> ('x.ks.ua',)
[1713750767674] [INFO] HUB  Connected
[1713750767674]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f531d7d2e80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f531dfd2190>>)
[1713750767718]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f531d7d2e80> ret: None
[1713750767718]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f531d7d2e80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f531dfd2190>>)
[1713750767762]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f531d7d2e80> ret: None
[1713750767762] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713750767762]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f531d7d2e80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f531dfd2190>>)
[1713750767806]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f531d7d2e80> ret: None
[1713750767806] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713750767806]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f531d7d2e80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f531dfd2190>>)
[1713750767851]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f531d7d2e80> ret: None
[1713750767851] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713750767851]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f531d7d2e80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f531dfd2190>>)
[1713750767894]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f531d7d2e80> ret: None
[1713750767894] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713750767894]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f531d7d2e80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f531dfd2190>>)
[1713750767938]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f531d7d2e80> ret: None
[1713750767938] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713750767938]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f531d7d2e80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f531dfd2190>>)
[1713750767982]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f531d7d2e80> ret: None
[1713750767982]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f531d7d2c00> ret: None
[1713750767983]  [DBG] HUB  Step, state: 0 (next: 1713750768983)
[1713750767983] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1713750767983]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f531d7d2d40> ('/reg', '48:3f:da:55:07:5b')
[1713750768028]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f531d7d2d40> ret: None
[1713750768070] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1713750768034 }
[1713750768070] [INFO] HUB  Registration finish, time: 1713750768034
[1713750768070]  [DBG] FW-UPD  enter <function device_base.register at 0x7f531d5e51c0> (1713750768,)
[1713750768070] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1713750768
[1713750768070] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713750768070]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f531d7d2e80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f531dfd2190>>)
[1713750768114]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f531d7d2e80> ret: None
[1713750768114]  [DBG] FW-UPD  exit <function device_base.register at 0x7f531d5e51c0> ret: None
[1713750768983]  [DBG] HUB  Step, state: 1 (next: 1713750769983)
[1713750768983]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f531d5e5a80> ()
[1713750768983]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f531d5e5a80> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713750768}}
[1713750768983] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d98ab4d8ece41a102d19b961364f22d5e93d21ca", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713750768}}]} }
[1713750768983]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f531d7d2d40> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d98ab4d8ece41a102d19b961364f22d5e93d21ca", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713750768}}]}')
[1713750768983]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f531d7d2d40> ret: None
[1713750770002]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f531d7d3100> ()
[1713750770002]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f531d7d3100> ret: None
[1713750770003] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-04-22 01:52:48,988 - TEST - INFO - OP take: 1004.881 ms
2024-04-22 01:52:48,995 - TEST - INFO - Connected with result code: 0
2024-04-22 01:52:49,001 - TEST - INFO - OP take: 10.206 ms
2024-04-22 01:52:50,010 - TEST - WARNING - Disconecting from broker