Test Report : TEST-user_remove_test-20231118123827.xml
Test Suite: user_remove_test-20231118123827
Results
| Duration | 93.527 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_remove_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 93.527 sec |
| Failed | None |
None
Suite stdout:
[1700311107684] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1700311107684] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7f92cc09d800> (<uclient.hub.HUB object at 0x7f92cb3b71d0>,)
[1700311107684] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7f92cc09d800> ret: None
[1700311107684] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f92cb4fafc0> ('<48:3f:da:55:07:5b/status', '-1')
[1700311107684] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f92cb4fafc0> ret: None
[1700311107684] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f92cb596340> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f92cb3b71d0>>,)
[1700311107684] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f92cb596340> ret: None
[1700311107684] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f92cb4fb1a0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f92cb3b71d0>>,)
[1700311107684] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f92cb4fb1a0> ret: None
[1700311107684] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f92cb595760> ('x.ks.ua', 1883)
[1700311108688] [INFO] HUB Connected
[1700311108688] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f92cb595f80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f92cb3b71d0>>)
[1700311108733] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f92cb595f80> ret: None
[1700311108733] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f92cb595f80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f92cb3b71d0>>)
[1700311108776] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f92cb595f80> ret: None
[1700311108776] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700311108777] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f92cb595f80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f92cb3b71d0>>)
[1700311108820] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f92cb595f80> ret: None
[1700311108820] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700311108820] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f92cb595f80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f92cb3b71d0>>)
[1700311108864] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f92cb595f80> ret: None
[1700311108864] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700311108864] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f92cb595f80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f92cb3b71d0>>)
[1700311108908] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f92cb595f80> ret: None
[1700311108909] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700311108909] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f92cb595f80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f92cb3b71d0>>)
[1700311108952] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f92cb595f80> ret: None
[1700311108952] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700311108952] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f92cb595f80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f92cb3b71d0>>)
[1700311108996] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f92cb595f80> ret: None
[1700311108996] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f92cb595760> ret: None
[1700311108997] [DBG] HUB Step, state: 0 (next: 1700311109997)
[1700311108997] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1700311108997] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f92cb595e40> ('/reg', '48:3f:da:55:07:5b')
[1700311109040] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f92cb595e40> ret: None
[1700311109084] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1700311109047 }
[1700311109084] [INFO] HUB Registration finish, time: 1700311109047
[1700311109084] [DBG] DEV-3996365522 enter <function device_base.register at 0x7f92cc09dd00> (1700311109,)
[1700311109084] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1700311109
[1700311109084] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700311109084] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f92cb595f80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f92cb3b71d0>>)
[1700311109128] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f92cb595f80> ret: None
[1700311109129] [DBG] DEV-3996365522 exit <function device_base.register at 0x7f92cc09dd00> ret: None
[1700311109997] [DBG] HUB Step, state: 1 (next: 1700311110997)
[1700311109997] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7f92cc09e5c0> ()
[1700311109997] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7f92cc09e5c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700311109}}
[1700311109997] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700311109}}]} }
[1700311109997] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f92cb595e40> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700311109}}]}')
[1700311109997] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f92cb595e40> ret: None
[1700311110030] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1700311110031] [INFO] DEV-3996365522 User created. User count: 1
[1700311110031] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1700311110031] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f92cb595e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1700311110031] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f92cb595e40> ret: None
[1700311111079] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "spKdfD7ZLTyH3wC1DMB9/K31MGLf9EesSrPXoRYsobbe/qB0kTg8ohrqObYwcp82.qbHJ4+rrSqzco5XK+pRe+dPv8QBkZY9bOu8ZbFwr1Zo=" }
[1700311141084] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "iocKzh15e5cjl0UV/agl35cfLjS8LpnaBqre7zf/EPmm6BLuLCUWi5xBO8pbqrtpAg/tvOHHUxPXUNncFHAOtuf6k+r9ufteucxCGYMfQgeMqExsCbvVYgL8Nd+5um1N1l86C2loecMo4vKqb6RDZg==.pOrzDDQsJwxMGCzquFJGBWB6YnkYTz1XNsMQKy3Vei0=" }
[1700311141086] [INFO] DEV-3996365522 User created. User count: 2
[1700311141086] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1700311141086] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f92cb595e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1700311141086] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f92cb595e40> ret: None
[1700311141096] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "iocKzh15e5cjl0UV/agl35cfLjS8LpnaBqre7zf/EPlMFp8aDQoT9JpHMbF9o03W.c71KeI8wDX6ZWgv013oRH1/wYSX+cnd+SkzT2ueL6Vs=" }
[1700311141097] [INFO] HUB Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1700311141097] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f92cb595e40> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1700311141097] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f92cb595e40> ret: None
[1700311141149] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "bqYRFsP7+pfCLZSBHMp2u9OpIp77VU5Z4KWIv9HlMhKfqpRdWCYPANnx3dDmdWnjWdLe7z9FvdThT5aK512rhLHCLeaMXqwsiEE5s/CfZ39fH7+b7rYoKhQBqnP/Nz+RFKWp/P7Nn2HiQ4+y6Py0Gw==.Agr3n20JeNAify3J2La3PYSMM54aw4D7zAkHHID+tkw=" }
[1700311141150] [INFO] DEV-3996365522 User created. User count: 2
[1700311141150] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1700311141150] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f92cb595e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1700311141150] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f92cb595e40> ret: None
[1700311141201] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "vwmGCruY2ZzKBCANGJFFz4jTURjLpPv60YF4ghMiyFa5qZmCww98jkRHJd74f5vm.jaer8Ti06bmQp0mNVCBgJikmVFggEVDh04nXNteaY18=" }
[1700311141201] [ERR] DEV-3996365522 User (agreeable.jennifer@x.ks.ua (6e0d514c306d5ae0f58d84d363bee2e54198dd6ccb61750bad4f0ea6105ff958)) don't have permission to remove users
[1700311169997] [DBG] HUB Step, state: 2 (next: 1700311229997)
[1700311169997] [INFO] HUB Publish message: { topic: status, value: 4 }
[1700311169997] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f92cb595e40> ('/48:3f:da:55:07:5b/status', 4)
[1700311169997] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f92cb595e40> ret: None
[1700311169997] [DBG] DEV-3996365522 enter <function device_base.publish_status at 0x7f92cc09dbc0> ()
[1700311169997] [INFO] HUB Publish message: { topic: 3996365522/status, value: 4 }
[1700311169997] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f92cb595e40> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1700311169997] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f92cb595e40> ret: None
[1700311169997] [DBG] DEV-3996365522 exit <function device_base.publish_status at 0x7f92cc09dbc0> ret: None
[1700311171206] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1700311171206] [ERR] DEV-3996365522 User can't remove himself
[1700311201209] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f92cb596200> ()
[1700311201209] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f92cb596200> ret: None
[1700311201212] [WARN] HUB Disconecting from broker
Suite stderr:
2023-11-18 12:38:30,005 - TEST - INFO - OP take: 1007.533 ms
2023-11-18 12:38:30,015 - TEST - INFO - Connected with result code: 0
2023-11-18 12:38:30,029 - TEST - INFO - OP take: 20.216 ms
2023-11-18 12:38:30,029 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2023-11-18 12:38:30,029 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2023-11-18 12:38:30,075 - TEST - INFO - OP take: 40.648 ms
2023-11-18 12:38:30,076 - TEST - INFO - User created: "OK"
2023-11-18 12:38:31,076 - TEST - INFO - ##### Unknown user remove test #####
2023-11-18 12:38:31,078 - TEST - INFO - [dev] => { 'user/remove' : 'spKdfD7ZLTyH3wC1DMB9/K31MGLf9Ees' }
2023-11-18 12:39:01,083 - TEST - INFO - Error was returned as planned
2023-11-18 12:39:01,083 - TEST - INFO - ##### Known user remove test #####
2023-11-18 12:39:01,084 - TEST - INFO - Create user: polite.david@hotmail.com pwd: i8sfqfum user_id: 3c71bae7bc861f2ef1c5a14fa046769a1efd96c77b3d03ddfccb011d5fce6df8
2023-11-18 12:39:01,084 - TEST - INFO - [dev] => { 'user/add' : 'iocKzh15e5cjl0UV/agl35cfLjS8Lpna' }
2023-11-18 12:39:01,095 - TEST - INFO - OP take: 10.128 ms
2023-11-18 12:39:01,096 - TEST - INFO - User created: "OK"
2023-11-18 12:39:01,096 - TEST - INFO - [dev] => { 'user/remove' : 'iocKzh15e5cjl0UV/agl35cfLjS8Lpna' }
2023-11-18 12:39:01,148 - TEST - INFO - OP take: 50.605 ms
2023-11-18 12:39:01,148 - TEST - INFO - User removed. OK
2023-11-18 12:39:01,148 - TEST - INFO - ##### Known user remove without permissions test #####
2023-11-18 12:39:01,148 - TEST - INFO - Create user: agreeable.jennifer@x.ks.ua pwd: b6l5bwp4 user_id: 6e0d514c306d5ae0f58d84d363bee2e54198dd6ccb61750bad4f0ea6105ff958
2023-11-18 12:39:01,148 - TEST - INFO - [dev] => { 'user/add' : 'bqYRFsP7+pfCLZSBHMp2u9OpIp77VU5Z' }
2023-11-18 12:39:01,200 - TEST - INFO - OP take: 50.612 ms
2023-11-18 12:39:01,201 - TEST - INFO - User created: "OK"
2023-11-18 12:39:01,201 - TEST - INFO - [dev] => { 'user/remove' : 'vwmGCruY2ZzKBCANGJFFz4jTURjLpPv6' }
2023-11-18 12:39:31,202 - TEST - INFO - Error was returned as planned
2023-11-18 12:39:31,203 - TEST - INFO - ##### Removing myself test #####
2023-11-18 12:39:31,205 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2023-11-18 12:40:01,208 - TEST - INFO - Error was returned as planned
2023-11-18 12:40:01,210 - TEST - WARNING - Disconecting from broker