Test Report : TEST-user_remove_test-20240414061752.xml
Test Suite: user_remove_test-20240414061752
Results
| Duration | 93.533 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_remove_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 93.533 sec |
| Failed | None |
None
Suite stdout:
[1713075472769] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1713075472770] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7ff83ff05800> (<uclient.hub.HUB object at 0x7ff83f228e10>,)
[1713075472770] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7ff83ff05800> ret: None
[1713075472770] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7ff83f3ae7a0> ('<48:3f:da:55:07:5b/status', '-1')
[1713075472770] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7ff83f3ae7a0> ret: None
[1713075472770] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7ff83f3aea20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7ff83f228e10>>,)
[1713075472770] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7ff83f3aea20> ret: None
[1713075472770] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7ff83f3ae8e0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7ff83f228e10>>,)
[1713075472770] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7ff83f3ae8e0> ret: None
[1713075472770] [WARN] HUB Try to connect without uri-schema
[1713075472770] [DBG] MQTT enter <function mqtt_transport.connect at 0x7ff83f3af060> ('x.ks.ua',)
[1713075473774] [INFO] HUB Connected
[1713075473774] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff83f3aede0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff83f228e10>>)
[1713075473818] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff83f3aede0> ret: None
[1713075473818] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff83f3aede0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff83f228e10>>)
[1713075473862] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff83f3aede0> ret: None
[1713075473862] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713075473862] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff83f3aede0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff83f228e10>>)
[1713075473906] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff83f3aede0> ret: None
[1713075473906] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713075473906] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff83f3aede0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff83f228e10>>)
[1713075473950] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff83f3aede0> ret: None
[1713075473950] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713075473950] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff83f3aede0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff83f228e10>>)
[1713075473994] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff83f3aede0> ret: None
[1713075473994] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713075473994] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff83f3aede0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff83f228e10>>)
[1713075474038] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff83f3aede0> ret: None
[1713075474038] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713075474038] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff83f3aede0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff83f228e10>>)
[1713075474082] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff83f3aede0> ret: None
[1713075474082] [DBG] MQTT exit <function mqtt_transport.connect at 0x7ff83f3af060> ret: None
[1713075474083] [DBG] HUB Step, state: 0 (next: 1713075475083)
[1713075474083] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1713075474084] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff83f3aef20> ('/reg', '48:3f:da:55:07:5b')
[1713075474126] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff83f3aef20> ret: None
[1713075474170] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1713075474128 }
[1713075474170] [INFO] HUB Registration finish, time: 1713075474128
[1713075474170] [DBG] DEV-3996365522 enter <function device_base.register at 0x7ff83ff05d00> (1713075474,)
[1713075474170] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1713075474
[1713075474170] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713075474170] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff83f3aede0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff83f228e10>>)
[1713075474214] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff83f3aede0> ret: None
[1713075474214] [DBG] DEV-3996365522 exit <function device_base.register at 0x7ff83ff05d00> ret: None
[1713075475083] [DBG] HUB Step, state: 1 (next: 1713075476083)
[1713075475083] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7ff83ff065c0> ()
[1713075475083] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7ff83ff065c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713075474}}
[1713075475083] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713075474}}]} }
[1713075475083] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff83f3aef20> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713075474}}]}')
[1713075475083] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff83f3aef20> ret: None
[1713075475105] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1713075475107] [INFO] DEV-3996365522 User created. User count: 1
[1713075475107] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1713075475107] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff83f3aef20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1713075475107] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff83f3aef20> ret: None
[1713075476161] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "fQy3gTo98kOPRLguhWSy+TieuH4l5imbeDKsASRe2wIW3Zlvo0AZLpCEoF00/vBm.EAdU+g3pzLMlHBg5DOiGe34KX1H/E+hhoZXaP23efLU=" }
[1713075506173] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "uuKPVWR0nSSfRGSO6czXPw8AhUnK0Yx2zkodSERcNJkhvdZFxSpv54xqaeUOhLO5kc7FCTBo5IFE8KXHJeqqyUxVnfzYLBDXOv+6kAaedvr/+Sp/UfoBoG5e4FFCI01JZVDAYdpiuXZ6KISWQwmjYw==.B7RNtH+yhZcW04cfMvbfVFmlDL4LodtYM/7t/eUIvi0=" }
[1713075506177] [INFO] DEV-3996365522 User created. User count: 2
[1713075506177] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1713075506177] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff83f3aef20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1713075506178] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff83f3aef20> ret: None
[1713075506189] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "uuKPVWR0nSSfRGSO6czXPw8AhUnK0Yx2zkodSERcNJmrG64vK33Zz8USelKg1dMq.OB9Pa1FJ8UQoVZjHOvCSDCUHqp1UnqzPJMLPzliyZHw=" }
[1713075506189] [INFO] HUB Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1713075506189] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff83f3aef20> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1713075506189] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff83f3aef20> ret: None
[1713075506242] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "jHXlqxnMUTkxBfzERlq2nQrpqCXGa2EyxjpX+VFFArYgcXOwbWZ1UJnXbz7CvN/gR1u5qMkxuwxij91y5d1x4JncjAyR8v4bAHXGH3ro0y3SVbjsnbp77JEyuG5fBKlw9b5DzQ6zooQ7GNq6ihp+jQ==.toDLYTF14u4provcmSDdiIrmK1Gstt+m4GXAj5rXp80=" }
[1713075506244] [INFO] DEV-3996365522 User created. User count: 2
[1713075506245] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1713075506245] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff83f3aef20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1713075506245] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff83f3aef20> ret: None
[1713075506296] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "hMc8QjeS0HqJKCcySrvOBzr22qYiB6PBeCvvu+b8jyPA+q89DfXLf2BuK4PTsG1m.dwuyA0QUts/V7Mev1xjQQcs4936H778z2y1+B7rAGkE=" }
[1713075506296] [ERR] DEV-3996365522 User (amiable.barbara@x.ks.ua (1d06c26cfbdb81bf520d0bd00d02f27c9c740b60f59fb176cfb1c011ba1ad802)) don't have permission to remove users
[1713075535083] [DBG] HUB Step, state: 2 (next: 1713075595083)
[1713075535083] [INFO] HUB Publish message: { topic: status, value: 4 }
[1713075535083] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff83f3aef20> ('/48:3f:da:55:07:5b/status', 4)
[1713075535083] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff83f3aef20> ret: None
[1713075535083] [DBG] DEV-3996365522 enter <function device_base.publish_status at 0x7ff83ff05bc0> ()
[1713075535083] [INFO] HUB Publish message: { topic: 3996365522/status, value: 4 }
[1713075535083] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff83f3aef20> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1713075535083] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff83f3aef20> ret: None
[1713075535083] [DBG] DEV-3996365522 exit <function device_base.publish_status at 0x7ff83ff05bc0> ret: None
[1713075536299] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1713075536299] [ERR] DEV-3996365522 User can't remove himself
[1713075566301] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7ff83f3aeb60> ()
[1713075566302] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7ff83f3aeb60> ret: None
[1713075566303] [WARN] HUB Disconecting from broker
Suite stderr:
2024-04-14 06:17:55,092 - TEST - INFO - OP take: 1008.501 ms
2024-04-14 06:17:55,100 - TEST - INFO - Connected with result code: 0
2024-04-14 06:17:55,105 - TEST - INFO - OP take: 10.074 ms
2024-04-14 06:17:55,105 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-04-14 06:17:55,105 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-04-14 06:17:55,157 - TEST - INFO - OP take: 51.874 ms
2024-04-14 06:17:55,158 - TEST - INFO - User created: "OK"
2024-04-14 06:17:56,159 - TEST - INFO - ##### Unknown user remove test #####
2024-04-14 06:17:56,160 - TEST - INFO - [dev] => { 'user/remove' : 'fQy3gTo98kOPRLguhWSy+TieuH4l5imb' }
2024-04-14 06:18:26,164 - TEST - INFO - Error was returned as planned
2024-04-14 06:18:26,166 - TEST - INFO - ##### Known user remove test #####
2024-04-14 06:18:26,167 - TEST - INFO - Create user: polite.robert@gmail.com pwd: jx8izqyb user_id: a026f1657777c8bda6c0445775208273b0482883bc0cdeecf8d1209fd09822cf
2024-04-14 06:18:26,170 - TEST - INFO - [dev] => { 'user/add' : 'uuKPVWR0nSSfRGSO6czXPw8AhUnK0Yx2' }
2024-04-14 06:18:26,185 - TEST - INFO - OP take: 10.152 ms
2024-04-14 06:18:26,185 - TEST - INFO - User created: "OK"
2024-04-14 06:18:26,187 - TEST - INFO - [dev] => { 'user/remove' : 'uuKPVWR0nSSfRGSO6czXPw8AhUnK0Yx2' }
2024-04-14 06:18:26,240 - TEST - INFO - OP take: 50.565 ms
2024-04-14 06:18:26,241 - TEST - INFO - User removed. OK
2024-04-14 06:18:26,241 - TEST - INFO - ##### Known user remove without permissions test #####
2024-04-14 06:18:26,241 - TEST - INFO - Create user: amiable.barbara@x.ks.ua pwd: a04ezx6g user_id: 1d06c26cfbdb81bf520d0bd00d02f27c9c740b60f59fb176cfb1c011ba1ad802
2024-04-14 06:18:26,241 - TEST - INFO - [dev] => { 'user/add' : 'jHXlqxnMUTkxBfzERlq2nQrpqCXGa2Ey' }
2024-04-14 06:18:26,294 - TEST - INFO - OP take: 50.843 ms
2024-04-14 06:18:26,295 - TEST - INFO - User created: "OK"
2024-04-14 06:18:26,295 - TEST - INFO - [dev] => { 'user/remove' : 'hMc8QjeS0HqJKCcySrvOBzr22qYiB6PB' }
2024-04-14 06:18:56,297 - TEST - INFO - Error was returned as planned
2024-04-14 06:18:56,297 - TEST - INFO - ##### Removing myself test #####
2024-04-14 06:18:56,298 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2024-04-14 06:19:26,300 - TEST - INFO - Error was returned as planned
2024-04-14 06:19:26,302 - TEST - WARNING - Disconecting from broker