Test Report : TEST-user_list_test-20240413183007.xml

  • user_list_test

Test Suite: user_list_test-20240413183007

Results

Duration3.447 sec
Tests1
Failures0

Tests

user_list_test

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

Suite stdout:

[1713033007179] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1713033007179]  [DBG] DEV-3996365522  enter <function device_base.set_hub at 0x7ff1c5bc3ba0> (<uclient.hub.HUB object at 0x7ff1c4f08750>,)
[1713033007179]  [DBG] DEV-3996365522  exit <function device_base.set_hub at 0x7ff1c5bc3ba0> ret: None
[1713033007180]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7ff1c508e160> ('<48:3f:da:55:07:5b/status', '-1')
[1713033007180]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7ff1c508e160> ret: None
[1713033007180]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7ff1c508e3e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7ff1c4f08750>>,)
[1713033007180]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7ff1c508e3e0> ret: None
[1713033007180]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7ff1c508e2a0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7ff1c4f08750>>,)
[1713033007180]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7ff1c508e2a0> ret: None
[1713033007180] [WARN] HUB  Try to connect without uri-schema
[1713033007180]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7ff1c508ea20> ('x.ks.ua',)
[1713033008185] [INFO] HUB  Connected
[1713033008185]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff1c4f08750>>)
[1713033008226]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ret: None
[1713033008226]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff1c4f08750>>)
[1713033008270]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ret: None
[1713033008270] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713033008270]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff1c4f08750>>)
[1713033008314]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ret: None
[1713033008314] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713033008314]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff1c4f08750>>)
[1713033008358]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ret: None
[1713033008358] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713033008358]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff1c4f08750>>)
[1713033008402]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ret: None
[1713033008402] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713033008402]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff1c4f08750>>)
[1713033008446]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ret: None
[1713033008446] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713033008446]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff1c4f08750>>)
[1713033008490]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ret: None
[1713033008490]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7ff1c508ea20> ret: None
[1713033008491]  [DBG] HUB  Step, state: 0 (next: 1713033009491)
[1713033008491] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1713033008491]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7ff1c508e8e0> ('/reg', '48:3f:da:55:07:5b')
[1713033008534]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7ff1c508e8e0> ret: None
[1713033008578] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1713033008544 }
[1713033008578] [INFO] HUB  Registration finish, time: 1713033008544
[1713033008578]  [DBG] DEV-3996365522  enter <function device_base.register at 0x7ff1c5be40e0> (1713033008,)
[1713033008578] [INFO] DEV-3996365522  Device 3996365522 registration on the server @ 1713033008
[1713033008578] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713033008578]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff1c4f08750>>)
[1713033008622]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff1c508e7a0> ret: None
[1713033008622]  [DBG] DEV-3996365522  exit <function device_base.register at 0x7ff1c5be40e0> ret: None
[1713033009491]  [DBG] HUB  Step, state: 1 (next: 1713033010491)
[1713033009491]  [DBG] DEV-3996365522  enter <function device_base.info_req at 0x7ff1c5be49a0> ()
[1713033009491]  [DBG] DEV-3996365522  exit <function device_base.info_req at 0x7ff1c5be49a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713033008}}
[1713033009491] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713033008}}]} }
[1713033009491]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7ff1c508e8e0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713033008}}]}')
[1713033009491]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7ff1c508e8e0> ret: None
[1713033009511] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1713033009513] [INFO] DEV-3996365522  User created. User count: 1
[1713033009513] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1713033009513]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7ff1c508e8e0> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1713033009513]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7ff1c508e8e0> ret: None
[1713033010567] [INFO] HUB  Message: {topic: >user/dev, value: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY= }
[1713033010567]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7ff1c508e8e0> ('<user/dev', '48:3f:da:55:07:5b/3996365522')
[1713033010568]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7ff1c508e8e0> ret: None
[1713033010613]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7ff1c508e520> ()
[1713033010613]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7ff1c508e520> ret: None
[1713033010614] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-04-13 18:30:09,496 - TEST - INFO - OP take: 1005.364 ms
2024-04-13 18:30:09,505 - TEST - INFO - Connected with result code: 0
2024-04-13 18:30:09,509 - TEST - INFO - OP take: 10.075 ms
2024-04-13 18:30:09,510 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-04-13 18:30:09,510 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-04-13 18:30:09,561 - TEST - INFO - OP take: 50.949 ms
2024-04-13 18:30:09,562 - TEST - INFO - User created: "OK"
2024-04-13 18:30:10,566 - TEST - INFO - User-ID hash: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY=
2024-04-13 18:30:10,612 - TEST - INFO - OP take: 41.185 ms
2024-04-13 18:30:10,612 - TEST - INFO - ===> Found device: 48:3f:da:55:07:5b/3996365522
2024-04-13 18:30:10,619 - TEST - WARNING - Disconecting from broker