Test Report : TEST-user_remove_test-20240211155104.xml

  • user_remove_test

Test Suite: user_remove_test-20240211155104

Results

Duration93.563 sec
Tests1
Failures0

Tests

user_remove_test

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

Suite stdout:

[1707666664280] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1707666664280]  [DBG] DEV-3996365522  enter <function device_base.set_hub at 0x7f666a375800> (<uclient.hub.HUB object at 0x7f666968cd10>,)
[1707666664280]  [DBG] DEV-3996365522  exit <function device_base.set_hub at 0x7f666a375800> ret: None
[1707666664280]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f66698167a0> ('<48:3f:da:55:07:5b/status', '-1')
[1707666664280]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f66698167a0> ret: None
[1707666664280]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f6669816a20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f666968cd10>>,)
[1707666664280]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f6669816a20> ret: None
[1707666664280]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f66698168e0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f666968cd10>>,)
[1707666664280]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f66698168e0> ret: None
[1707666664280] [WARN] HUB  Try to connect without uri-schema
[1707666664280]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f6669817060> ('x.ks.ua',)
[1707666665284] [INFO] HUB  Connected
[1707666665284]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6669816de0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f666968cd10>>)
[1707666665327]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6669816de0> ret: None
[1707666665328]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6669816de0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f666968cd10>>)
[1707666665371]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6669816de0> ret: None
[1707666665371] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707666665371]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6669816de0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f666968cd10>>)
[1707666665415]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6669816de0> ret: None
[1707666665415] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707666665415]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6669816de0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f666968cd10>>)
[1707666665459]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6669816de0> ret: None
[1707666665459] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707666665459]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6669816de0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f666968cd10>>)
[1707666665503]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6669816de0> ret: None
[1707666665503] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707666665503]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6669816de0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f666968cd10>>)
[1707666665547]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6669816de0> ret: None
[1707666665547] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707666665547]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6669816de0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f666968cd10>>)
[1707666665591]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6669816de0> ret: None
[1707666665591]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f6669817060> ret: None
[1707666665592]  [DBG] HUB  Step, state: 0 (next: 1707666666592)
[1707666665592] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1707666665592]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6669816f20> ('/reg', '48:3f:da:55:07:5b')
[1707666665635]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6669816f20> ret: None
[1707666665679] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1707666665637 }
[1707666665679] [INFO] HUB  Registration finish, time: 1707666665637
[1707666665679]  [DBG] DEV-3996365522  enter <function device_base.register at 0x7f666a375d00> (1707666665,)
[1707666665679] [INFO] DEV-3996365522  Device 3996365522 registration on the server @ 1707666665
[1707666665679] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707666665679]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f6669816de0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f666968cd10>>)
[1707666665723]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f6669816de0> ret: None
[1707666665723]  [DBG] DEV-3996365522  exit <function device_base.register at 0x7f666a375d00> ret: None
[1707666666592]  [DBG] HUB  Step, state: 1 (next: 1707666667592)
[1707666666592]  [DBG] DEV-3996365522  enter <function device_base.info_req at 0x7f666a3765c0> ()
[1707666666592]  [DBG] DEV-3996365522  exit <function device_base.info_req at 0x7f666a3765c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707666665}}
[1707666666592] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240211;master;c7a377ab91e966dd8ef50ec839bbd0cd5f178bbe", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707666665}}]} }
[1707666666592]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6669816f20> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240211;master;c7a377ab91e966dd8ef50ec839bbd0cd5f178bbe", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707666665}}]}')
[1707666666592]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6669816f20> ret: None
[1707666666615] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1707666666617] [INFO] DEV-3996365522  User created. User count: 1
[1707666666617] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1707666666617]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6669816f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1707666666617]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6669816f20> ret: None
[1707666667673] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "DE56wsJFu6aEBbzXeaL5ZPDHohS79FFKpHbwPSFgdDywGz4/PGv40F+9Wr6A5U3l.3JWtjMZDRcaxp/+dkn7MO8JMmdaovEmuUr1T7XvY2QE=" }
[1707666697680] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "KlFnIwzlLVGDWOB1IdCSuroKb7cfNKQ14VTgmYOluw/U6xBcRJfL2OIE7rY4xl0YMC6vs3Ev0b0iozdz3QFWQMUn081yg38w07ka7V0yXP88Bwla2G2AAG9mJmnxSXIUsoUB+1Sdhj5QQ2dE+tV+Lw==.DNpPQ5R747NLgb1x9csLGbE9dqrPlmZJSsMXIubVmcE=" }
[1707666697681] [INFO] DEV-3996365522  User created. User count: 2
[1707666697681] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1707666697681]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6669816f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1707666697682]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6669816f20> ret: None
[1707666697695] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "KlFnIwzlLVGDWOB1IdCSuroKb7cfNKQ14VTgmYOluw/dohS/wq8wXDqPP5BxRCXX.vlyqIc3Mw/ykB+0XVkFFNmpU6+KG4vJOKwZiVmCPwjM=" }
[1707666697695] [INFO] HUB  Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1707666697695]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6669816f20> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1707666697695]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6669816f20> ret: None
[1707666697748] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "UfZv/OjMRISvIipAu/PyFF3k5Un542NKWFJw313zwaBRb7LiJ334EiVdxrSqY8hxLs8myg9DGc1W/AYlSWTTd+leWmYkH0c+uI1DgArB7zW4P7X5uei1MZ7ksY+3c4G1AUj8e9SQoJC+VLa50RD3EQ==.3rhtI9SmR58LfxDDDslPSnF9HALAQ82LLL2r/NiNtLM=" }
[1707666697749] [INFO] DEV-3996365522  User created. User count: 2
[1707666697749] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1707666697749]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6669816f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1707666697749]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6669816f20> ret: None
[1707666697801] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "GyCS+/RrzzRwvHnMoOYUrFUFAzwf4PUuURkKutEwxSaL7Ckw6YFn6Z1BHm644T4Y.ubN8cSgTy3J3wYvKQBopa6mJpufHAdbXR+LwQmQEfC4=" }
[1707666697801]  [ERR] DEV-3996365522  User (charming.james@outlook.com (bf97c13842f43bc787ad83dc4df08dae90ceccfd7e30229632c68f410c43a110)) don't have permission to remove users
[1707666726592]  [DBG] HUB  Step, state: 2 (next: 1707666786592)
[1707666726592] [INFO] HUB  Publish message: { topic: status, value: 4 }
[1707666726592]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6669816f20> ('/48:3f:da:55:07:5b/status', 4)
[1707666726592]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6669816f20> ret: None
[1707666726592]  [DBG] DEV-3996365522  enter <function device_base.publish_status at 0x7f666a375bc0> ()
[1707666726592] [INFO] HUB  Publish message: { topic: 3996365522/status, value: 4 }
[1707666726592]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f6669816f20> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1707666726592]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f6669816f20> ret: None
[1707666726592]  [DBG] DEV-3996365522  exit <function device_base.publish_status at 0x7f666a375bc0> ret: None
[1707666727805] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1707666727805]  [ERR] DEV-3996365522  User can't remove himself
[1707666757813]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f6669816b60> ()
[1707666757815]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f6669816b60> ret: None
[1707666757816] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-02-11 15:51:06,599 - TEST - INFO - OP take: 1006.976 ms
2024-02-11 15:51:06,607 - TEST - INFO - Connected with result code: 0
2024-02-11 15:51:06,612 - TEST - INFO - OP take: 10.085 ms
2024-02-11 15:51:06,612 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-02-11 15:51:06,614 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-02-11 15:51:06,668 - TEST - INFO - OP take: 50.621 ms
2024-02-11 15:51:06,668 - TEST - INFO - User created: "OK"
2024-02-11 15:51:07,669 - TEST - INFO - ##### Unknown user remove test #####
2024-02-11 15:51:07,671 - TEST - INFO - [dev] => { 'user/remove' : 'DE56wsJFu6aEBbzXeaL5ZPDHohS79FFK' }
2024-02-11 15:51:37,675 - TEST - INFO - Error was returned as planned
2024-02-11 15:51:37,676 - TEST - INFO - ##### Known user remove test #####
2024-02-11 15:51:37,677 - TEST - INFO - Create user: considerate.john@dlab.pw pwd: awi1zs1l user_id: 2f50a10cff27084d61c05c201d3c2cf54edbfa75c54108a9b154b59ac7a800d4
2024-02-11 15:51:37,678 - TEST - INFO - [dev] => { 'user/add' : 'KlFnIwzlLVGDWOB1IdCSuroKb7cfNKQ1' }
2024-02-11 15:51:37,692 - TEST - INFO - OP take: 10.142 ms
2024-02-11 15:51:37,693 - TEST - INFO - User created: "OK"
2024-02-11 15:51:37,694 - TEST - INFO - [dev] => { 'user/remove' : 'KlFnIwzlLVGDWOB1IdCSuroKb7cfNKQ1' }
2024-02-11 15:51:37,747 - TEST - INFO - OP take: 40.387 ms
2024-02-11 15:51:37,747 - TEST - INFO - User removed. OK
2024-02-11 15:51:37,747 - TEST - INFO - ##### Known user remove without permissions test #####
2024-02-11 15:51:37,748 - TEST - INFO - Create user: charming.james@outlook.com pwd: 3h6lmedb user_id: bf97c13842f43bc787ad83dc4df08dae90ceccfd7e30229632c68f410c43a110
2024-02-11 15:51:37,748 - TEST - INFO - [dev] => { 'user/add' : 'UfZv/OjMRISvIipAu/PyFF3k5Un542NK' }
2024-02-11 15:51:37,799 - TEST - INFO - OP take: 50.677 ms
2024-02-11 15:51:37,800 - TEST - INFO - User created: "OK"
2024-02-11 15:51:37,800 - TEST - INFO - [dev] => { 'user/remove' : 'GyCS+/RrzzRwvHnMoOYUrFUFAzwf4PUu' }
2024-02-11 15:52:07,803 - TEST - INFO - Error was returned as planned
2024-02-11 15:52:07,803 - TEST - INFO - ##### Removing myself test #####
2024-02-11 15:52:07,804 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2024-02-11 15:52:37,806 - TEST - INFO - Error was returned as planned
2024-02-11 15:52:37,831 - TEST - WARNING - Disconecting from broker
2024-02-11 15:52:37,842 - TEST - WARNING - Disconecting from broker