Test Report : TEST-user_remove_test-20231126190215.xml
Test Suite: user_remove_test-20231126190215
Results
| Duration | 93.54 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_remove_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 93.54 sec |
| Failed | None |
None
Suite stdout:
[1701025335974] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1701025335974] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7f3d34fa1800> (<uclient.hub.HUB object at 0x7f3d342bc150>,)
[1701025335974] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7f3d34fa1800> ret: None
[1701025335974] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f3d3444af20> ('<48:3f:da:55:07:5b/status', '-1')
[1701025335974] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f3d3444af20> ret: None
[1701025335974] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f3d343ff100> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f3d342bc150>>,)
[1701025335974] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f3d343ff100> ret: None
[1701025335974] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f3d3444b060> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f3d342bc150>>,)
[1701025335974] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f3d3444b060> ret: None
[1701025335974] [WARN] HUB Try to connect without uri-schema
[1701025335974] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f3d34499760> ('x.ks.ua',)
[1701025336978] [INFO] HUB Connected
[1701025336978] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3d34499f80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3d342bc150>>)
[1701025337019] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3d34499f80> ret: None
[1701025337019] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3d34499f80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3d342bc150>>)
[1701025337063] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3d34499f80> ret: None
[1701025337063] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1701025337063] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3d34499f80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3d342bc150>>)
[1701025337107] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3d34499f80> ret: None
[1701025337107] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1701025337107] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3d34499f80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3d342bc150>>)
[1701025337151] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3d34499f80> ret: None
[1701025337151] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1701025337151] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3d34499f80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3d342bc150>>)
[1701025337195] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3d34499f80> ret: None
[1701025337195] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1701025337195] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3d34499f80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3d342bc150>>)
[1701025337239] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3d34499f80> ret: None
[1701025337239] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1701025337239] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3d34499f80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3d342bc150>>)
[1701025337283] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3d34499f80> ret: None
[1701025337283] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f3d34499760> ret: None
[1701025337284] [DBG] HUB Step, state: 0 (next: 1701025338284)
[1701025337284] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1701025337284] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3d34499e40> ('/reg', '48:3f:da:55:07:5b')
[1701025337328] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3d34499e40> ret: None
[1701025337375] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1701025337332 }
[1701025337375] [INFO] HUB Registration finish, time: 1701025337332
[1701025337375] [DBG] DEV-3996365522 enter <function device_base.register at 0x7f3d34fa1d00> (1701025337,)
[1701025337375] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1701025337
[1701025337375] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1701025337375] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3d34499f80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3d342bc150>>)
[1701025337419] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3d34499f80> ret: None
[1701025337419] [DBG] DEV-3996365522 exit <function device_base.register at 0x7f3d34fa1d00> ret: None
[1701025338284] [DBG] HUB Step, state: 1 (next: 1701025339284)
[1701025338284] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7f3d34fa25c0> ()
[1701025338284] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7f3d34fa25c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1701025337}}
[1701025338284] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1701025337}}]} }
[1701025338284] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3d34499e40> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1701025337}}]}')
[1701025338284] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3d34499e40> ret: None
[1701025338308] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1701025338309] [INFO] DEV-3996365522 User created. User count: 1
[1701025338309] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1701025338309] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3d34499e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1701025338309] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3d34499e40> ret: None
[1701025339364] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "lyg1ZCPnTnoIav1ehdZdPnGOt1uV8YigC2kuEHElWTS5BEMVHgm62HqFRSszH7XM.X8YSYYGqETaEC6KNlJq0acuSH/5m8kWZYxRj1EWZVKA=" }
[1701025369372] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "NcmQeImqx7gzlgztFzK8idu97twXhf6BJfxEk8uNdjTwkhs+QoR+Ap/Tzw01TXn1n+gGTXTmh+GHliyNHnvS455T5jfN5tCIFHuEBZ/R1ABwTyj0Tnyr74ZyRw7wbjhQlIefzIDhsd5niZtgVjX5JQ==.9TJl9sW+OmUG1umWT9GXfCSxDKSpXchcnI3WgzxGon0=" }
[1701025369374] [INFO] DEV-3996365522 User created. User count: 2
[1701025369374] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1701025369374] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3d34499e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1701025369374] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3d34499e40> ret: None
[1701025369386] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "NcmQeImqx7gzlgztFzK8idu97twXhf6BJfxEk8uNdjRqwktY5nXZA665sasr7viN.95T5dQZkaTMOMK9yemHzBXoR4KaQcOt+sRxaA6LYEQo=" }
[1701025369387] [INFO] HUB Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1701025369388] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3d34499e40> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1701025369388] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3d34499e40> ret: None
[1701025369439] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "PLv29BA06lDCdhKAvrmtnXRtak236gDnnWivcGCpWgi5BbN55rcogswCAO8ebyCZt985+rT9cqeIGk2k/OZR4PpWKk7yF96SZ+Jp0FtRZEwEMkezPK+i6GGuL4JWRqndr+dxgMCroAY38DMWsp/6dg==.JiFIzl0ei8OzyqNdyZEn4fa5DsmXIsW8wumIPxniOuU=" }
[1701025369440] [INFO] DEV-3996365522 User created. User count: 2
[1701025369440] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1701025369440] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3d34499e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1701025369440] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3d34499e40> ret: None
[1701025369492] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "9Su9ZkhFr9y5rG02szWPe572z/AV24ebBO6hlGP5BsNBa+QKnZ2D97bXTrfW6BLh.WXEjkYtP9qyMI5h535YvLelRqlMuup37nlUN5edevyU=" }
[1701025369492] [ERR] DEV-3996365522 User (gregarious.elizabeth@tlc.ks.ua (be56c65bcf752f59bbbcadfce1e3a726691c5d4a1da4f104e53fffa5c517578a)) don't have permission to remove users
[1701025398284] [DBG] HUB Step, state: 2 (next: 1701025458284)
[1701025398284] [INFO] HUB Publish message: { topic: status, value: 4 }
[1701025398284] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3d34499e40> ('/48:3f:da:55:07:5b/status', 4)
[1701025398284] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3d34499e40> ret: None
[1701025398284] [DBG] DEV-3996365522 enter <function device_base.publish_status at 0x7f3d34fa1bc0> ()
[1701025398284] [INFO] HUB Publish message: { topic: 3996365522/status, value: 4 }
[1701025398284] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3d34499e40> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1701025398284] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3d34499e40> ret: None
[1701025398284] [DBG] DEV-3996365522 exit <function device_base.publish_status at 0x7f3d34fa1bc0> ret: None
[1701025399494] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1701025399494] [ERR] DEV-3996365522 User can't remove himself
[1701025429497] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f3d3449a200> ()
[1701025429498] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f3d3449a200> ret: None
[1701025429503] [WARN] HUB Disconecting from broker
Suite stderr:
2023-11-26 19:02:18,294 - TEST - INFO - OP take: 1010.152 ms
2023-11-26 19:02:18,300 - TEST - INFO - Connected with result code: 0
2023-11-26 19:02:18,306 - TEST - INFO - OP take: 10.107 ms
2023-11-26 19:02:18,307 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2023-11-26 19:02:18,308 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2023-11-26 19:02:18,362 - TEST - INFO - OP take: 51.058 ms
2023-11-26 19:02:18,363 - TEST - INFO - User created: "OK"
2023-11-26 19:02:19,363 - TEST - INFO - ##### Unknown user remove test #####
2023-11-26 19:02:19,364 - TEST - INFO - [dev] => { 'user/remove' : 'lyg1ZCPnTnoIav1ehdZdPnGOt1uV8Yig' }
2023-11-26 19:02:49,366 - TEST - INFO - Error was returned as planned
2023-11-26 19:02:49,367 - TEST - INFO - ##### Known user remove test #####
2023-11-26 19:02:49,368 - TEST - INFO - Create user: sympathetic.jennifer@x.ks.ua pwd: 90ny9d7u user_id: 1e509f4e26cd1194894b86bd28116bb0318ec4e603436cc0c391475ed990beca
2023-11-26 19:02:49,369 - TEST - INFO - [dev] => { 'user/add' : 'NcmQeImqx7gzlgztFzK8idu97twXhf6B' }
2023-11-26 19:02:49,382 - TEST - INFO - OP take: 10.952 ms
2023-11-26 19:02:49,384 - TEST - INFO - User created: "OK"
2023-11-26 19:02:49,385 - TEST - INFO - [dev] => { 'user/remove' : 'NcmQeImqx7gzlgztFzK8idu97twXhf6B' }
2023-11-26 19:02:49,438 - TEST - INFO - OP take: 50.639 ms
2023-11-26 19:02:49,438 - TEST - INFO - User removed. OK
2023-11-26 19:02:49,438 - TEST - INFO - ##### Known user remove without permissions test #####
2023-11-26 19:02:49,438 - TEST - INFO - Create user: gregarious.elizabeth@tlc.ks.ua pwd: 71deze38 user_id: be56c65bcf752f59bbbcadfce1e3a726691c5d4a1da4f104e53fffa5c517578a
2023-11-26 19:02:49,438 - TEST - INFO - [dev] => { 'user/add' : 'PLv29BA06lDCdhKAvrmtnXRtak236gDn' }
2023-11-26 19:02:49,491 - TEST - INFO - OP take: 50.796 ms
2023-11-26 19:02:49,491 - TEST - INFO - User created: "OK"
2023-11-26 19:02:49,491 - TEST - INFO - [dev] => { 'user/remove' : '9Su9ZkhFr9y5rG02szWPe572z/AV24eb' }
2023-11-26 19:03:19,493 - TEST - INFO - Error was returned as planned
2023-11-26 19:03:19,493 - TEST - INFO - ##### Removing myself test #####
2023-11-26 19:03:19,493 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2023-11-26 19:03:49,495 - TEST - INFO - Error was returned as planned
2023-11-26 19:03:49,502 - TEST - WARNING - Disconecting from broker
2023-11-26 19:03:49,514 - TEST - WARNING - Disconecting from broker