Test Report : TEST-user_remove_test-20240130083056.xml
Test Suite: user_remove_test-20240130083056
Results
| Duration | 93.561 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_remove_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 93.561 sec |
| Failed | None |
None
Suite stdout:
[1706603456298] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1706603456298] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7f671aa3d800> (<uclient.hub.HUB object at 0x7f6719f4be10>,)
[1706603456298] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7f671aa3d800> ret: None
[1706603456298] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f6719edef20> ('<48:3f:da:55:07:5b/status', '-1')
[1706603456298] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f6719edef20> ret: None
[1706603456298] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f6719e93100> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f6719f4be10>>,)
[1706603456298] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f6719e93100> ret: None
[1706603456298] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f6719edf060> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f6719f4be10>>,)
[1706603456298] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f6719edf060> ret: None
[1706603456298] [WARN] HUB Try to connect without uri-schema
[1706603456298] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f6719f2d760> ('x.ks.ua',)
[1706603457303] [INFO] HUB Connected
[1706603457303] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6719f2df80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6719f4be10>>)
[1706603457347] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6719f2df80> ret: None
[1706603457347] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6719f2df80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6719f4be10>>)
[1706603457391] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6719f2df80> ret: None
[1706603457391] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1706603457391] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6719f2df80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6719f4be10>>)
[1706603457436] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6719f2df80> ret: None
[1706603457436] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1706603457436] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6719f2df80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6719f4be10>>)
[1706603457479] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6719f2df80> ret: None
[1706603457479] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1706603457479] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6719f2df80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6719f4be10>>)
[1706603457523] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6719f2df80> ret: None
[1706603457523] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1706603457523] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6719f2df80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6719f4be10>>)
[1706603457567] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6719f2df80> ret: None
[1706603457567] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1706603457567] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6719f2df80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6719f4be10>>)
[1706603457611] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6719f2df80> ret: None
[1706603457611] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f6719f2d760> ret: None
[1706603457613] [DBG] HUB Step, state: 0 (next: 1706603458613)
[1706603457613] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1706603457613] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f6719f2de40> ('/reg', '48:3f:da:55:07:5b')
[1706603457655] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f6719f2de40> ret: None
[1706603457699] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1706603457666 }
[1706603457699] [INFO] HUB Registration finish, time: 1706603457666
[1706603457699] [DBG] DEV-3996365522 enter <function device_base.register at 0x7f671aa3dd00> (1706603457,)
[1706603457699] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1706603457
[1706603457699] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1706603457699] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6719f2df80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6719f4be10>>)
[1706603457743] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6719f2df80> ret: None
[1706603457743] [DBG] DEV-3996365522 exit <function device_base.register at 0x7f671aa3dd00> ret: None
[1706603458613] [DBG] HUB Step, state: 1 (next: 1706603459613)
[1706603458614] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7f671aa3e5c0> ()
[1706603458614] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7f671aa3e5c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1706603457}}
[1706603458614] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240129;master;2ef3211e388ad8de8753e73738ad72b1dbe8c3e9", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706603457}}]} }
[1706603458614] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f6719f2de40> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240129;master;2ef3211e388ad8de8753e73738ad72b1dbe8c3e9", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706603457}}]}')
[1706603458614] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f6719f2de40> ret: None
[1706603458640] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1706603458642] [INFO] DEV-3996365522 User created. User count: 1
[1706603458642] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1706603458642] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f6719f2de40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1706603458642] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f6719f2de40> ret: None
[1706603459696] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "aLVOYCrb+J+SgqrXd0kCy76MuKSKP3Ulj07+fZuaYQG0zGVxpbBydDMRv2/WG4dm.btqfVQmjd8rkxmF4npdzZCcrb7kmfEj6coAJ/NeNHFk=" }
[1706603489708] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "vjSqBN4Wx50UOrJKJBl9afM41oP2J3wpX4K/CHtrmU0CPurMQmMomenuj7hgHS1lA2m574zXgR21l2XbiJw4/wIBZSJjy0nF8C9yczZdqZgbZi31w2WmjGcxrfsgqAaxvR5idXRIs+BXSrd1cY9l2A==.6vtoYV5CsgrIa+RgDAF+gcuZhE0hz7Va33DC60lU6oA=" }
[1706603489711] [INFO] DEV-3996365522 User created. User count: 2
[1706603489712] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1706603489712] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f6719f2de40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1706603489712] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f6719f2de40> ret: None
[1706603489722] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "vjSqBN4Wx50UOrJKJBl9afM41oP2J3wpX4K/CHtrmU0KU4qzFG+MRR4atRwV3xY0.+AbZ7aTjiEAEuuluEeDAAxuKRSEAgvtPfp+QMsszbPQ=" }
[1706603489722] [INFO] HUB Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1706603489723] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f6719f2de40> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1706603489723] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f6719f2de40> ret: None
[1706603489776] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "t2EB+wUFCDKXUkcbOAEan++aswjjpY3QAGxJ1gS2E8xSNOL9mYkZCPwg7ZC9axAcaf3aTIKMW2iBDmuUeYvZg9kvXk4boUZ7F5oBC1/0zjHrPnZ75e1y3ykdmkLQfgD6SB7CSe1wKUN9pP3fCPl0Vg==.UauBGTSMM3V1pTU1i5E+Q1SMkM+KRlFNal/CbX2C1B8=" }
[1706603489777] [INFO] DEV-3996365522 User created. User count: 2
[1706603489777] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1706603489777] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f6719f2de40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1706603489777] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f6719f2de40> ret: None
[1706603489828] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "VDDaS5BtbhXgqXPJffdp5VNwuXYOKnIVZR5I2/4fqXTz+qzq2qAv4w8wFCfXDKgf.8VtW/nHAzXr9cNDVbZD7JTjcdhM6WUIuH/qDCN7jYCk=" }
[1706603489829] [ERR] DEV-3996365522 User (likeable.linda@dlab.pw (fed832ccb51857e2ee8b23a32cbc9280920e0eb3dbff39584fa2e53be2f4702c)) don't have permission to remove users
[1706603518613] [DBG] HUB Step, state: 2 (next: 1706603578613)
[1706603518613] [INFO] HUB Publish message: { topic: status, value: 4 }
[1706603518613] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f6719f2de40> ('/48:3f:da:55:07:5b/status', 4)
[1706603518613] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f6719f2de40> ret: None
[1706603518613] [DBG] DEV-3996365522 enter <function device_base.publish_status at 0x7f671aa3dbc0> ()
[1706603518613] [INFO] HUB Publish message: { topic: 3996365522/status, value: 4 }
[1706603518613] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f6719f2de40> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1706603518613] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f6719f2de40> ret: None
[1706603518613] [DBG] DEV-3996365522 exit <function device_base.publish_status at 0x7f671aa3dbc0> ret: None
[1706603519833] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1706603519833] [ERR] DEV-3996365522 User can't remove himself
[1706603549839] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f6719f2e200> ()
[1706603549840] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f6719f2e200> ret: None
[1706603549841] [WARN] HUB Disconecting from broker
Suite stderr:
2024-01-30 08:30:58,624 - TEST - INFO - OP take: 1011.597 ms
2024-01-30 08:30:58,629 - TEST - INFO - Connected with result code: 0
2024-01-30 08:30:58,636 - TEST - INFO - OP take: 10.11 ms
2024-01-30 08:30:58,636 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-01-30 08:30:58,637 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-01-30 08:30:58,691 - TEST - INFO - OP take: 50.575 ms
2024-01-30 08:30:58,692 - TEST - INFO - User created: "OK"
2024-01-30 08:30:59,693 - TEST - INFO - ##### Unknown user remove test #####
2024-01-30 08:30:59,695 - TEST - INFO - [dev] => { 'user/remove' : 'aLVOYCrb+J+SgqrXd0kCy76MuKSKP3Ul' }
2024-01-30 08:31:29,699 - TEST - INFO - Error was returned as planned
2024-01-30 08:31:29,700 - TEST - INFO - ##### Known user remove test #####
2024-01-30 08:31:29,701 - TEST - INFO - Create user: charming.robert@dlab.pw pwd: 1zyp8nfh user_id: 47de408e975f519233aed708874ccfeb010a4404e7be70b29c9989fbe2fb2ddc
2024-01-30 08:31:29,707 - TEST - INFO - [dev] => { 'user/add' : 'vjSqBN4Wx50UOrJKJBl9afM41oP2J3wp' }
2024-01-30 08:31:29,721 - TEST - INFO - OP take: 10.101 ms
2024-01-30 08:31:29,721 - TEST - INFO - User created: "OK"
2024-01-30 08:31:29,721 - TEST - INFO - [dev] => { 'user/remove' : 'vjSqBN4Wx50UOrJKJBl9afM41oP2J3wp' }
2024-01-30 08:31:29,774 - TEST - INFO - OP take: 50.509 ms
2024-01-30 08:31:29,774 - TEST - INFO - User removed. OK
2024-01-30 08:31:29,775 - TEST - INFO - ##### Known user remove without permissions test #####
2024-01-30 08:31:29,775 - TEST - INFO - Create user: likeable.linda@dlab.pw pwd: 9hi2ohdf user_id: fed832ccb51857e2ee8b23a32cbc9280920e0eb3dbff39584fa2e53be2f4702c
2024-01-30 08:31:29,775 - TEST - INFO - [dev] => { 'user/add' : 't2EB+wUFCDKXUkcbOAEan++aswjjpY3Q' }
2024-01-30 08:31:29,827 - TEST - INFO - OP take: 50.679 ms
2024-01-30 08:31:29,828 - TEST - INFO - User created: "OK"
2024-01-30 08:31:29,828 - TEST - INFO - [dev] => { 'user/remove' : 'VDDaS5BtbhXgqXPJffdp5VNwuXYOKnIV' }
2024-01-30 08:31:59,829 - TEST - INFO - Error was returned as planned
2024-01-30 08:31:59,830 - TEST - INFO - ##### Removing myself test #####
2024-01-30 08:31:59,831 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2024-01-30 08:32:29,839 - TEST - INFO - Error was returned as planned
2024-01-30 08:32:29,847 - TEST - WARNING - Disconecting from broker
2024-01-30 08:32:29,869 - TEST - WARNING - Disconecting from broker