Test Report : TEST-user_remove_test-20240202134409.xml
Test Suite: user_remove_test-20240202134409
Results
| Duration | 93.528 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_remove_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 93.528 sec |
| Failed | None |
None
Suite stdout:
[1706881449444] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1706881449444] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7fe362109800> (<uclient.hub.HUB object at 0x7fe361424290>,)
[1706881449444] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7fe362109800> ret: None
[1706881449444] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7fe3615b2f20> ('<48:3f:da:55:07:5b/status', '-1')
[1706881449444] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7fe3615b2f20> ret: None
[1706881449444] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7fe361567100> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fe361424290>>,)
[1706881449444] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7fe361567100> ret: None
[1706881449444] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7fe3615b3060> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fe361424290>>,)
[1706881449445] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7fe3615b3060> ret: None
[1706881449445] [WARN] HUB Try to connect without uri-schema
[1706881449445] [DBG] MQTT enter <function mqtt_transport.connect at 0x7fe361601760> ('x.ks.ua',)
[1706881450448] [INFO] HUB Connected
[1706881450448] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe361601f80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe361424290>>)
[1706881450491] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe361601f80> ret: None
[1706881450491] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe361601f80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe361424290>>)
[1706881450535] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe361601f80> ret: None
[1706881450535] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1706881450535] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe361601f80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe361424290>>)
[1706881450579] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe361601f80> ret: None
[1706881450579] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1706881450579] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe361601f80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe361424290>>)
[1706881450623] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe361601f80> ret: None
[1706881450623] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1706881450623] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe361601f80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe361424290>>)
[1706881450667] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe361601f80> ret: None
[1706881450667] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1706881450667] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe361601f80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe361424290>>)
[1706881450711] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe361601f80> ret: None
[1706881450711] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1706881450711] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe361601f80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe361424290>>)
[1706881450755] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe361601f80> ret: None
[1706881450755] [DBG] MQTT exit <function mqtt_transport.connect at 0x7fe361601760> ret: None
[1706881450756] [DBG] HUB Step, state: 0 (next: 1706881451756)
[1706881450756] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1706881450756] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe361601e40> ('/reg', '48:3f:da:55:07:5b')
[1706881450799] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe361601e40> ret: None
[1706881450847] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1706881450804 }
[1706881450847] [INFO] HUB Registration finish, time: 1706881450804
[1706881450847] [DBG] DEV-3996365522 enter <function device_base.register at 0x7fe362109d00> (1706881450,)
[1706881450847] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1706881450
[1706881450847] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1706881450847] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fe361601f80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fe361424290>>)
[1706881450891] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fe361601f80> ret: None
[1706881450891] [DBG] DEV-3996365522 exit <function device_base.register at 0x7fe362109d00> ret: None
[1706881451756] [DBG] HUB Step, state: 1 (next: 1706881452756)
[1706881451756] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7fe36210a5c0> ()
[1706881451756] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7fe36210a5c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1706881450}}
[1706881451756] [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": 1706881450}}]} }
[1706881451756] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe361601e40> ('/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": 1706881450}}]}')
[1706881451756] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe361601e40> ret: None
[1706881451778] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1706881451779] [INFO] DEV-3996365522 User created. User count: 1
[1706881451779] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1706881451779] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe361601e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1706881451779] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe361601e40> ret: None
[1706881452825] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "Ckq7wkb4Hgb1c1WUTqpUhc8NW4ONN50Eq59u+PHWBVOEVwwsXxchQr05jlbMRDeT.FBUUMtbrle0zaQU2g/14Cgogm4SZk3mf9yLu9IgAMLg=" }
[1706881482831] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "Q6/3x4jt1Kf+MXs25FyyXanrOmZRdJv5+TNRaPEtyCzE2ZeFGPsMt9yqx3CdJQiSqvniofScxqskHsWm6kbbmi9xdVCrJlRTQV/cwB4QeXv93MifRkthm62HgiVXIOb5lIRYnIK/dL/1Z6rdmft2RA==.uHRvkUOcJZO0wG41uSTGhE4HZVMYfMcrEczcoxuXNjI=" }
[1706881482832] [INFO] DEV-3996365522 User created. User count: 2
[1706881482832] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1706881482832] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe361601e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1706881482832] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe361601e40> ret: None
[1706881482844] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "Q6/3x4jt1Kf+MXs25FyyXanrOmZRdJv5+TNRaPEtyCw28K5QNZ2rJH78e6nkHgBR.cEMOgAw6KEZMxyOoZxBHRx9mwsvAIWO2j4W20+XSCBQ=" }
[1706881482845] [INFO] HUB Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1706881482845] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe361601e40> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1706881482845] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe361601e40> ret: None
[1706881482898] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "L/OQN8zSxSUQXcrZN+62Q3krdWZNqt3HdZXk7Lk/4bNpUCGolRER5iDqv8YmUGXANWrsNasdoPa0XJTdKfAKzGNrK6Gc+kSnP/bQ0hscxcIsfRnJCOMg+OBbhe4Zbyc2BMIHwGsNHtha6w2s8K7S6g==.OYzLQbrEnAtKeLlDcJ1G2na5ZnUKOVj0H0oqCR4S2Uo=" }
[1706881482899] [INFO] DEV-3996365522 User created. User count: 2
[1706881482899] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1706881482899] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe361601e40> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1706881482899] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe361601e40> ret: None
[1706881482953] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "ibKw+yeQAsgysfza54G8jf5BQoiVrfr53d/wApuTnYuQNZKHYZiIm4frCUSQDe6m.LA3jGf2TTbRVRM4MMRJTCjtSjajKplqTUiY1SuakWBU=" }
[1706881482953] [ERR] DEV-3996365522 User (likeable.james@i.ua (407df78b8c52a6aeed8973cc875a8b9b163ff7ecd3ca49e82c39e3765aa65a1a)) don't have permission to remove users
[1706881511756] [DBG] HUB Step, state: 2 (next: 1706881571756)
[1706881511756] [INFO] HUB Publish message: { topic: status, value: 4 }
[1706881511756] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe361601e40> ('/48:3f:da:55:07:5b/status', 4)
[1706881511756] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe361601e40> ret: None
[1706881511756] [DBG] DEV-3996365522 enter <function device_base.publish_status at 0x7fe362109bc0> ()
[1706881511756] [INFO] HUB Publish message: { topic: 3996365522/status, value: 4 }
[1706881511756] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fe361601e40> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1706881511756] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fe361601e40> ret: None
[1706881511756] [DBG] DEV-3996365522 exit <function device_base.publish_status at 0x7fe362109bc0> ret: None
[1706881512957] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1706881512957] [ERR] DEV-3996365522 User can't remove himself
[1706881542961] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7fe361602200> ()
[1706881542961] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7fe361602200> ret: None
[1706881542966] [WARN] HUB Disconecting from broker
Suite stderr:
2024-02-02 13:44:11,765 - TEST - INFO - OP take: 1009.256 ms
2024-02-02 13:44:11,770 - TEST - INFO - Connected with result code: 0
2024-02-02 13:44:11,777 - TEST - INFO - OP take: 10.104 ms
2024-02-02 13:44:11,778 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-02-02 13:44:11,778 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-02-02 13:44:11,823 - TEST - INFO - OP take: 40.562 ms
2024-02-02 13:44:11,823 - TEST - INFO - User created: "OK"
2024-02-02 13:44:12,824 - TEST - INFO - ##### Unknown user remove test #####
2024-02-02 13:44:12,825 - TEST - INFO - [dev] => { 'user/remove' : 'Ckq7wkb4Hgb1c1WUTqpUhc8NW4ONN50E' }
2024-02-02 13:44:42,829 - TEST - INFO - Error was returned as planned
2024-02-02 13:44:42,830 - TEST - INFO - ##### Known user remove test #####
2024-02-02 13:44:42,830 - TEST - INFO - Create user: gregarious.mary@hotmail.com pwd: i7k8bsqm user_id: a98aea5c7ce97d7d450ff44ee9fc1f79a90d79fe1b5bbcc0b745cd7f5084ac09
2024-02-02 13:44:42,830 - TEST - INFO - [dev] => { 'user/add' : 'Q6/3x4jt1Kf+MXs25FyyXanrOmZRdJv5' }
2024-02-02 13:44:42,843 - TEST - INFO - OP take: 10.125 ms
2024-02-02 13:44:42,844 - TEST - INFO - User created: "OK"
2024-02-02 13:44:42,844 - TEST - INFO - [dev] => { 'user/remove' : 'Q6/3x4jt1Kf+MXs25FyyXanrOmZRdJv5' }
2024-02-02 13:44:42,896 - TEST - INFO - OP take: 50.611 ms
2024-02-02 13:44:42,896 - TEST - INFO - User removed. OK
2024-02-02 13:44:42,896 - TEST - INFO - ##### Known user remove without permissions test #####
2024-02-02 13:44:42,897 - TEST - INFO - Create user: likeable.james@i.ua pwd: a2krx06d user_id: 407df78b8c52a6aeed8973cc875a8b9b163ff7ecd3ca49e82c39e3765aa65a1a
2024-02-02 13:44:42,897 - TEST - INFO - [dev] => { 'user/add' : 'L/OQN8zSxSUQXcrZN+62Q3krdWZNqt3H' }
2024-02-02 13:44:42,951 - TEST - INFO - OP take: 50.771 ms
2024-02-02 13:44:42,952 - TEST - INFO - User created: "OK"
2024-02-02 13:44:42,952 - TEST - INFO - [dev] => { 'user/remove' : 'ibKw+yeQAsgysfza54G8jf5BQoiVrfr5' }
2024-02-02 13:45:12,955 - TEST - INFO - Error was returned as planned
2024-02-02 13:45:12,955 - TEST - INFO - ##### Removing myself test #####
2024-02-02 13:45:12,956 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2024-02-02 13:45:42,960 - TEST - INFO - Error was returned as planned
2024-02-02 13:45:42,965 - TEST - WARNING - Disconecting from broker