Test Report : TEST-user_remove_test-20240422015547.xml
Test Suite: user_remove_test-20240422015547
Results
| Duration | 93.521 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_remove_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 93.521 sec |
| Failed | None |
None
Suite stdout:
[1713750947012] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1713750947012] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7ff261075800> (<uclient.hub.HUB object at 0x7ff2611ba950>,)
[1713750947012] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7ff261075800> ret: None
[1713750947012] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7ff2605167a0> ('<48:3f:da:55:07:5b/status', '-1')
[1713750947012] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7ff2605167a0> ret: None
[1713750947012] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7ff260516a20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7ff2611ba950>>,)
[1713750947012] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7ff260516a20> ret: None
[1713750947012] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7ff2605168e0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7ff2611ba950>>,)
[1713750947012] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7ff2605168e0> ret: None
[1713750947012] [WARN] HUB Try to connect without uri-schema
[1713750947012] [DBG] MQTT enter <function mqtt_transport.connect at 0x7ff260517060> ('x.ks.ua',)
[1713750948016] [INFO] HUB Connected
[1713750948016] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff260516de0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff2611ba950>>)
[1713750948058] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff260516de0> ret: None
[1713750948058] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff260516de0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff2611ba950>>)
[1713750948102] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff260516de0> ret: None
[1713750948102] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713750948102] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff260516de0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff2611ba950>>)
[1713750948146] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff260516de0> ret: None
[1713750948146] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713750948146] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff260516de0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff2611ba950>>)
[1713750948190] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff260516de0> ret: None
[1713750948190] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713750948190] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff260516de0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff2611ba950>>)
[1713750948234] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff260516de0> ret: None
[1713750948234] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713750948234] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff260516de0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff2611ba950>>)
[1713750948278] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff260516de0> ret: None
[1713750948278] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713750948278] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff260516de0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff2611ba950>>)
[1713750948322] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff260516de0> ret: None
[1713750948322] [DBG] MQTT exit <function mqtt_transport.connect at 0x7ff260517060> ret: None
[1713750948323] [DBG] HUB Step, state: 0 (next: 1713750949323)
[1713750948323] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1713750948323] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff260516f20> ('/reg', '48:3f:da:55:07:5b')
[1713750948369] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff260516f20> ret: None
[1713750948410] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1713750948368 }
[1713750948410] [INFO] HUB Registration finish, time: 1713750948368
[1713750948410] [DBG] DEV-3996365522 enter <function device_base.register at 0x7ff261075d00> (1713750948,)
[1713750948410] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1713750948
[1713750948410] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713750948410] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff260516de0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff2611ba950>>)
[1713750948454] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff260516de0> ret: None
[1713750948454] [DBG] DEV-3996365522 exit <function device_base.register at 0x7ff261075d00> ret: None
[1713750949323] [DBG] HUB Step, state: 1 (next: 1713750950323)
[1713750949323] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7ff2610765c0> ()
[1713750949323] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7ff2610765c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713750948}}
[1713750949323] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d98ab4d8ece41a102d19b961364f22d5e93d21ca", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713750948}}]} }
[1713750949323] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff260516f20> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d98ab4d8ece41a102d19b961364f22d5e93d21ca", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713750948}}]}')
[1713750949323] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff260516f20> ret: None
[1713750949342] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1713750949343] [INFO] DEV-3996365522 User created. User count: 1
[1713750949343] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1713750949343] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff260516f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1713750949343] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff260516f20> ret: None
[1713750950395] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "Co7B24RYh89n89xH+71+UvnGODHnROIRqhtOZG/1SBiI+GmCuyGmqOJr629s6Gra.MvXRueC/6L8taUhDLXLQtGFyjPcnWiJrt+Fm3TqJUTQ=" }
[1713750980400] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "XeTnlt22OjVYkfsiHXWllekmZ+LJIUw3+Cf+uPKil4E9gSJM8ErSMmHQKiOPLAJmQkydpp6X7BwgzCRkXnT/iwQxysZbtA/Qq1HxbrwtlmjbuV7BKhncTKyOzBXmdQSolCHT+xXdOvIygM97Z0jVhA==.bXJEN66qEgctLobiAVD9YEaWU8UzY3b34SzNtsdMm6s=" }
[1713750980401] [INFO] DEV-3996365522 User created. User count: 2
[1713750980401] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1713750980401] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff260516f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1713750980401] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff260516f20> ret: None
[1713750980406] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "XeTnlt22OjVYkfsiHXWllekmZ+LJIUw3+Cf+uPKil4G3ByXgQ8Zo09i1YYbEFDUL.L8kPTHmyxLEzAvH18mYi58BtMNTA5jxhAbSZPT2K9M8=" }
[1713750980407] [INFO] HUB Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1713750980408] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff260516f20> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1713750980408] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff260516f20> ret: None
[1713750980455] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "esL3W6lV7nHnM3mwAnCc9NXjvDkL13ZXRXQCb2kGk3tmdlqYk11Rw35XRscG5xfZgUSYD6XtdSKlumYPIZcQWJo2H+5tu47se4aMIfIs5LCoUvYzs1sAxnO03J836ouUsRnRNu0hwBIEFrQ7Aczw3A==.Jb9TEOp1I4kHXPEIGV+DhsFdo3D7GQ9eiATyTq04W1s=" }
[1713750980456] [INFO] DEV-3996365522 User created. User count: 2
[1713750980456] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1713750980456] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff260516f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1713750980456] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff260516f20> ret: None
[1713750980508] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "sOjOVB1H8PYG7ANgfvXa3xRhaWBW0bv4EL0YO/3t2gglE3kSFardhagKFjzrswRb.32+tMgLq0QO/12Gh9JgxfIoP6FX/WuQV/l5C8JjyAIU=" }
[1713750980508] [ERR] DEV-3996365522 User (agreeable.jennifer@vegaiot.com (c857adaaec9f817770971edc966840d4477c9f180d96b374638a22279bb62552)) don't have permission to remove users
[1713751009323] [DBG] HUB Step, state: 2 (next: 1713751069323)
[1713751009323] [INFO] HUB Publish message: { topic: status, value: 4 }
[1713751009323] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff260516f20> ('/48:3f:da:55:07:5b/status', 4)
[1713751009323] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff260516f20> ret: None
[1713751009323] [DBG] DEV-3996365522 enter <function device_base.publish_status at 0x7ff261075bc0> ()
[1713751009323] [INFO] HUB Publish message: { topic: 3996365522/status, value: 4 }
[1713751009323] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff260516f20> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1713751009323] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff260516f20> ret: None
[1713751009323] [DBG] DEV-3996365522 exit <function device_base.publish_status at 0x7ff261075bc0> ret: None
[1713751010513] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1713751010513] [ERR] DEV-3996365522 User can't remove himself
[1713751040522] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7ff260516b60> ()
[1713751040525] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7ff260516b60> ret: None
[1713751040527] [WARN] HUB Disconecting from broker
Suite stderr:
2024-04-22 01:55:49,328 - TEST - INFO - OP take: 1005.22 ms
2024-04-22 01:55:49,336 - TEST - INFO - Connected with result code: 0
2024-04-22 01:55:49,341 - TEST - INFO - OP take: 10.101 ms
2024-04-22 01:55:49,341 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-04-22 01:55:49,341 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-04-22 01:55:49,392 - TEST - INFO - OP take: 51.084 ms
2024-04-22 01:55:49,393 - TEST - INFO - User created: "OK"
2024-04-22 01:55:50,394 - TEST - INFO - ##### Unknown user remove test #####
2024-04-22 01:55:50,394 - TEST - INFO - [dev] => { 'user/remove' : 'Co7B24RYh89n89xH+71+UvnGODHnROIR' }
2024-04-22 01:56:20,396 - TEST - INFO - Error was returned as planned
2024-04-22 01:56:20,397 - TEST - INFO - ##### Known user remove test #####
2024-04-22 01:56:20,397 - TEST - INFO - Create user: considerate.william@tlc.ks.ua pwd: 5m1u3rrr user_id: ab1b629356020a94f7272c6140dcd18259f1084b8a98c938d8bbc7b50c9022b9
2024-04-22 01:56:20,398 - TEST - INFO - [dev] => { 'user/add' : 'XeTnlt22OjVYkfsiHXWllekmZ+LJIUw3' }
2024-04-22 01:56:20,404 - TEST - INFO - OP take: 0.003 ms
2024-04-22 01:56:20,405 - TEST - INFO - User created: "OK"
2024-04-22 01:56:20,406 - TEST - INFO - [dev] => { 'user/remove' : 'XeTnlt22OjVYkfsiHXWllekmZ+LJIUw3' }
2024-04-22 01:56:20,454 - TEST - INFO - OP take: 40.375 ms
2024-04-22 01:56:20,454 - TEST - INFO - User removed. OK
2024-04-22 01:56:20,454 - TEST - INFO - ##### Known user remove without permissions test #####
2024-04-22 01:56:20,454 - TEST - INFO - Create user: agreeable.jennifer@vegaiot.com pwd: tar2xwz9 user_id: c857adaaec9f817770971edc966840d4477c9f180d96b374638a22279bb62552
2024-04-22 01:56:20,455 - TEST - INFO - [dev] => { 'user/add' : 'esL3W6lV7nHnM3mwAnCc9NXjvDkL13ZX' }
2024-04-22 01:56:20,506 - TEST - INFO - OP take: 50.55 ms
2024-04-22 01:56:20,507 - TEST - INFO - User created: "OK"
2024-04-22 01:56:20,507 - TEST - INFO - [dev] => { 'user/remove' : 'sOjOVB1H8PYG7ANgfvXa3xRhaWBW0bv4' }
2024-04-22 01:56:50,510 - TEST - INFO - Error was returned as planned
2024-04-22 01:56:50,510 - TEST - INFO - ##### Removing myself test #####
2024-04-22 01:56:50,512 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2024-04-22 01:57:20,521 - TEST - INFO - Error was returned as planned
2024-04-22 01:57:20,527 - TEST - WARNING - Disconecting from broker
2024-04-22 01:57:20,533 - TEST - WARNING - Disconecting from broker