Test Report : TEST-user_list_test-20231102152602.xml

  • user_list_test

Test Suite: user_list_test-20231102152602

Results

Duration3.583 sec
Tests1
Failures0

Tests

user_list_test

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

Suite stdout:

[1698938762922] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1698938762922]  [DBG] DEV-3996365522  enter <function device_base.set_hub at 0x7f9da3623ba0> (<uclient.hub.HUB object at 0x7f9da296c350>,)
[1698938762922]  [DBG] DEV-3996365522  exit <function device_base.set_hub at 0x7f9da3623ba0> ret: None
[1698938762922]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f9da2af65c0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f9da296c350>>,)
[1698938762922]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f9da2af65c0> ret: None
[1698938762922]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f9da2af6480> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f9da296c350>>,)
[1698938762922]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f9da2af6480> ret: None
[1698938762922]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f9da2af6c00> ('x.ks.ua', 1883)
[1698938764052] [INFO] HUB  Connected
[1698938764052]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9da2af6980> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9da296c350>>)
[1698938764096]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9da2af6980> ret: None
[1698938764096]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9da2af6980> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9da296c350>>)
[1698938764140]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9da2af6980> ret: None
[1698938764140] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1698938764140]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9da2af6980> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9da296c350>>)
[1698938764184]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9da2af6980> ret: None
[1698938764184] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1698938764184]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9da2af6980> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9da296c350>>)
[1698938764228]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9da2af6980> ret: None
[1698938764228] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1698938764228]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9da2af6980> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9da296c350>>)
[1698938764272]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9da2af6980> ret: None
[1698938764272] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1698938764272]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9da2af6980> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9da296c350>>)
[1698938764317]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9da2af6980> ret: None
[1698938764317] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1698938764317]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9da2af6980> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9da296c350>>)
[1698938764360]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9da2af6980> ret: None
[1698938764360]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f9da2af6c00> ret: None
[1698938764361]  [DBG] HUB  Step, state: 0 (next: 1698938765361)
[1698938764361] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1698938764361]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f9da2af6ac0> ('/reg', '48:3f:da:55:07:5b')
[1698938764404]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f9da2af6ac0> ret: None
[1698938764448] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1698938764410 }
[1698938764448] [INFO] HUB  Registration finish, time: 1698938764410
[1698938764448]  [DBG] DEV-3996365522  enter <function device_base.register at 0x7f9da36480e0> (1698938764,)
[1698938764448] [INFO] DEV-3996365522  Device 3996365522 registration on the server @ 1698938764
[1698938764448] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1698938764448]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9da2af6980> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9da296c350>>)
[1698938764492]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9da2af6980> ret: None
[1698938764492]  [DBG] DEV-3996365522  exit <function device_base.register at 0x7f9da36480e0> ret: None
[1698938765361]  [DBG] HUB  Step, state: 1 (next: 1698938766361)
[1698938765361]  [DBG] DEV-3996365522  enter <function device_base.info_req at 0x7f9da36489a0> ()
[1698938765361]  [DBG] DEV-3996365522  exit <function device_base.info_req at 0x7f9da36489a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1698938764}}
[1698938765361] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231102;master;e9b306c7e765ddf633df5089542fbb0d0e965da4", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1698938764}}]} }
[1698938765361]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f9da2af6ac0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231102;master;e9b306c7e765ddf633df5089542fbb0d0e965da4", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1698938764}}]}')
[1698938765361]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f9da2af6ac0> ret: None
[1698938765382] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1698938765382] [INFO] DEV-3996365522  User created. User count: 1
[1698938765383] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1698938765383]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f9da2af6ac0> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1698938765383]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f9da2af6ac0> ret: None
[1698938766438] [INFO] HUB  Message: {topic: >user/dev, value: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY= }
[1698938766438]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f9da2af6ac0> ('<user/dev', '48:3f:da:55:07:5b/3996365522')
[1698938766439]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f9da2af6ac0> ret: None
[1698938766484]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f9da2af6700> ()
[1698938766484]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f9da2af6700> ret: None
[1698938766486] [WARN] HUB  Disconecting from broker

Suite stderr:

2023-11-02 15:26:05,367 - TEST - INFO - OP take: 1004.925 ms
2023-11-02 15:26:05,377 - TEST - INFO - Connected with result code: 0
2023-11-02 15:26:05,381 - TEST - INFO - OP take: 10.097 ms
2023-11-02 15:26:05,381 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2023-11-02 15:26:05,381 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2023-11-02 15:26:05,432 - TEST - INFO - OP take: 50.657 ms
2023-11-02 15:26:05,433 - TEST - INFO - User created: "OK"
2023-11-02 15:26:06,437 - TEST - INFO - User-ID hash: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY=
2023-11-02 15:26:06,483 - TEST - INFO - OP take: 40.646 ms
2023-11-02 15:26:06,483 - TEST - INFO - ===> Found device: 48:3f:da:55:07:5b/3996365522
2023-11-02 15:26:06,491 - TEST - WARNING - Disconecting from broker