Test Report : TEST-user_remove_test-20231119212607.xml
Test Suite: user_remove_test-20231119212607
Results
| Duration | 93.576 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_remove_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 93.576 sec |
| Failed | None |
None
Suite stdout:
[1700429167724] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1700429167724] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7f82fca6d800> (<uclient.hub.HUB object at 0x7f82fbf7bad0>,)
[1700429167724] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7f82fca6d800> ret: None
[1700429167724] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f82fbec2fc0> ('<48:3f:da:55:07:5b/status', '-1')
[1700429167724] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f82fbec2fc0> ret: None
[1700429167724] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f82fbf5e340> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f82fbf7bad0>>,)
[1700429167724] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f82fbf5e340> ret: None
[1700429167724] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f82fbec31a0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f82fbf7bad0>>,)
[1700429167724] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f82fbec31a0> ret: None
[1700429167724] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f82fbf5d760> ('x.ks.ua', 1883)
[1700429168728] [INFO] HUB Connected
[1700429168729] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f82fbf5df80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f82fbf7bad0>>)
[1700429168773] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f82fbf5df80> ret: None
[1700429168773] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f82fbf5df80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f82fbf7bad0>>)
[1700429168816] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f82fbf5df80> ret: None
[1700429168816] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700429168816] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f82fbf5df80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f82fbf7bad0>>)
[1700429168860] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f82fbf5df80> ret: None
[1700429168860] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700429168860] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f82fbf5df80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f82fbf7bad0>>)
[1700429168904] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f82fbf5df80> ret: None
[1700429168904] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700429168904] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f82fbf5df80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f82fbf7bad0>>)
[1700429168952] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f82fbf5df80> ret: None
[1700429168952] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700429168952] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f82fbf5df80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f82fbf7bad0>>)
[1700429168996] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f82fbf5df80> ret: None
[1700429168996] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700429168996] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f82fbf5df80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f82fbf7bad0>>)
[1700429169040] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f82fbf5df80> ret: None
[1700429169040] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f82fbf5d760> ret: None
[1700429169041] [DBG] HUB Step, state: 0 (next: 1700429170041)
[1700429169041] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1700429169041] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f82fbf5de40> ('/reg', '48:3f:da:55:07:5b')
[1700429169088] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f82fbf5de40> ret: None
[1700429169128] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1700429169087 }
[1700429169128] [INFO] HUB Registration finish, time: 1700429169087
[1700429169128] [DBG] DEV-3996365522 enter <function device_base.register at 0x7f82fca6dd00> (1700429169,)
[1700429169128] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1700429169
[1700429169128] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700429169128] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f82fbf5df80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f82fbf7bad0>>)
[1700429169172] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f82fbf5df80> ret: None
[1700429169172] [DBG] DEV-3996365522 exit <function device_base.register at 0x7f82fca6dd00> ret: None
[1700429170041] [DBG] HUB Step, state: 1 (next: 1700429171041)
[1700429170041] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7f82fca6e5c0> ()
[1700429170041] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7f82fca6e5c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700429169}}
[1700429170041] [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": 1700429169}}]} }
[1700429170041] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f82fbf5de40> ('/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": 1700429169}}]}')
[1700429170041] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f82fbf5de40> ret: None
[1700429170070] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1700429170071] [INFO] DEV-3996365522 User created. User count: 1
[1700429170071] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1700429170071] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f82fbf5de40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1700429170072] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f82fbf5de40> ret: None
[1700429171124] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "0G7Lz1k2vV2+OqXZXrjdev//IIof22+QC11q/+Wu1jHP7vng89DWERrjppLf0NGT.9j1x+wb9IDP7ZaHvwvhgYrGgEiTkkinwqIrK5Qne0ik=" }
[1700429201130] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "GOsBB62ssGDf5z6xIbTIFgvRrLh1E8AfNftFKdnb1CEBoMCdmcyjPQckXxYcIo5ogKZVErB9+FGBGFue7UnPclqX/IRuaeRZJR2F24qkoY6SeDiRgpr0HYUaxOSozGaPsuUZH80Ae/XEUsB5yk1YQg==.hbcokH4A6/UhUlEOQztOVgOFMv7GToF2JXxGkscGtwU=" }
[1700429201131] [INFO] DEV-3996365522 User created. User count: 2
[1700429201131] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1700429201131] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f82fbf5de40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1700429201131] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f82fbf5de40> ret: None
[1700429201149] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "GOsBB62ssGDf5z6xIbTIFgvRrLh1E8AfNftFKdnb1CGTKudEhtV+gdLPIj58gClc.PJa8C7waLgaA/bM8F7UjE5w47/xf7/Luif8lXVwo2JE=" }
[1700429201149] [INFO] HUB Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1700429201149] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f82fbf5de40> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1700429201149] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f82fbf5de40> ret: None
[1700429201202] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "xPlDReCXjY0OIKGO4tMoZTTB78SdqI3cgwiyQDQ7ciicZRn+vn6tLKPVm0aBsq2BtomdLrpEEKkNwx8fX/vMwVa8xsXMSV/nnFC36QWUQWl3rUV4tlZ18Pw065p6fgFsKq9on2PdF7HdLU4pePMN2g==.5pvLVVPEJIt5Ds8MEflAWDs+whisehV0grLMgfDP0o4=" }
[1700429201203] [INFO] DEV-3996365522 User created. User count: 2
[1700429201203] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1700429201203] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f82fbf5de40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1700429201203] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f82fbf5de40> ret: None
[1700429201256] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "/W5sXqFbA2tc9uqS5kd/m0X0PDmplG4wUwezJUORP72JzAIdII9AhOsdH173NhlG.H3kXkKUcl+rSFz+PIVmkol5zAqqt7A9v6uKgIW3Rwws=" }
[1700429201256] [ERR] DEV-3996365522 User (understanding.barbara@tlc.ks.ua (a1fe763655a0038df7eec9e1dc4adbe214950c3974c484db1f93773592a5b4a7)) don't have permission to remove users
[1700429230041] [DBG] HUB Step, state: 2 (next: 1700429290041)
[1700429230041] [INFO] HUB Publish message: { topic: status, value: 4 }
[1700429230041] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f82fbf5de40> ('/48:3f:da:55:07:5b/status', 4)
[1700429230041] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f82fbf5de40> ret: None
[1700429230041] [DBG] DEV-3996365522 enter <function device_base.publish_status at 0x7f82fca6dbc0> ()
[1700429230041] [INFO] HUB Publish message: { topic: 3996365522/status, value: 4 }
[1700429230041] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f82fbf5de40> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1700429230041] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f82fbf5de40> ret: None
[1700429230041] [DBG] DEV-3996365522 exit <function device_base.publish_status at 0x7f82fca6dbc0> ret: None
[1700429231262] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1700429231262] [ERR] DEV-3996365522 User can't remove himself
[1700429261263] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f82fbf5e200> ()
[1700429261266] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f82fbf5e200> ret: None
[1700429261266] [WARN] HUB Disconecting from broker
Suite stderr:
2023-11-19 21:26:10,051 - TEST - INFO - OP take: 1010.399 ms
2023-11-19 21:26:10,062 - TEST - INFO - Connected with result code: 0
2023-11-19 21:26:10,066 - TEST - INFO - OP take: 10.096 ms
2023-11-19 21:26:10,066 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2023-11-19 21:26:10,068 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2023-11-19 21:26:10,120 - TEST - INFO - OP take: 50.663 ms
2023-11-19 21:26:10,121 - TEST - INFO - User created: "OK"
2023-11-19 21:26:11,121 - TEST - INFO - ##### Unknown user remove test #####
2023-11-19 21:26:11,122 - TEST - INFO - [dev] => { 'user/remove' : '0G7Lz1k2vV2+OqXZXrjdev//IIof22+Q' }
2023-11-19 21:26:41,127 - TEST - INFO - Error was returned as planned
2023-11-19 21:26:41,127 - TEST - INFO - ##### Known user remove test #####
2023-11-19 21:26:41,128 - TEST - INFO - Create user: considerate.linda@dlab.pw pwd: 472mc6ju user_id: 79af29b22f1228ccb0cf2014528423552f000a29e7b81168956aa280392ee4fd
2023-11-19 21:26:41,129 - TEST - INFO - [dev] => { 'user/add' : 'GOsBB62ssGDf5z6xIbTIFgvRrLh1E8Af' }
2023-11-19 21:26:41,145 - TEST - INFO - OP take: 10.163 ms
2023-11-19 21:26:41,145 - TEST - INFO - User created: "OK"
2023-11-19 21:26:41,146 - TEST - INFO - [dev] => { 'user/remove' : 'GOsBB62ssGDf5z6xIbTIFgvRrLh1E8Af' }
2023-11-19 21:26:41,199 - TEST - INFO - OP take: 51.116 ms
2023-11-19 21:26:41,200 - TEST - INFO - User removed. OK
2023-11-19 21:26:41,200 - TEST - INFO - ##### Known user remove without permissions test #####
2023-11-19 21:26:41,201 - TEST - INFO - Create user: understanding.barbara@tlc.ks.ua pwd: g66qj4s7 user_id: a1fe763655a0038df7eec9e1dc4adbe214950c3974c484db1f93773592a5b4a7
2023-11-19 21:26:41,201 - TEST - INFO - [dev] => { 'user/add' : 'xPlDReCXjY0OIKGO4tMoZTTB78SdqI3c' }
2023-11-19 21:26:41,254 - TEST - INFO - OP take: 50.901 ms
2023-11-19 21:26:41,254 - TEST - INFO - User created: "OK"
2023-11-19 21:26:41,255 - TEST - INFO - [dev] => { 'user/remove' : '/W5sXqFbA2tc9uqS5kd/m0X0PDmplG4w' }
2023-11-19 21:27:11,258 - TEST - INFO - Error was returned as planned
2023-11-19 21:27:11,258 - TEST - INFO - ##### Removing myself test #####
2023-11-19 21:27:11,259 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2023-11-19 21:27:41,262 - TEST - INFO - Error was returned as planned
2023-11-19 21:27:41,278 - TEST - WARNING - Disconecting from broker
2023-11-19 21:27:41,294 - TEST - WARNING - Disconecting from broker