Test Report : TEST-user_remove_test-20240210232747.xml
Test Suite: user_remove_test-20240210232747
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:
[1707607667520] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1707607667520] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7fbc840a9800> (<uclient.hub.HUB object at 0x7fbc833c2d50>,)
[1707607667520] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7fbc840a9800> ret: None
[1707607667520] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7fbc835527a0> ('<48:3f:da:55:07:5b/status', '-1')
[1707607667520] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7fbc835527a0> ret: None
[1707607667520] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7fbc83552a20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fbc833c2d50>>,)
[1707607667520] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7fbc83552a20> ret: None
[1707607667520] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7fbc835528e0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fbc833c2d50>>,)
[1707607667520] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7fbc835528e0> ret: None
[1707607667520] [WARN] HUB Try to connect without uri-schema
[1707607667520] [DBG] MQTT enter <function mqtt_transport.connect at 0x7fbc83553060> ('x.ks.ua',)
[1707607668524] [INFO] HUB Connected
[1707607668524] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fbc83552de0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbc833c2d50>>)
[1707607668567] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fbc83552de0> ret: None
[1707607668567] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fbc83552de0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbc833c2d50>>)
[1707607668611] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fbc83552de0> ret: None
[1707607668611] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707607668611] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fbc83552de0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbc833c2d50>>)
[1707607668656] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fbc83552de0> ret: None
[1707607668656] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707607668656] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fbc83552de0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbc833c2d50>>)
[1707607668699] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fbc83552de0> ret: None
[1707607668699] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707607668699] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fbc83552de0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbc833c2d50>>)
[1707607668743] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fbc83552de0> ret: None
[1707607668743] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707607668743] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fbc83552de0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbc833c2d50>>)
[1707607668787] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fbc83552de0> ret: None
[1707607668787] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707607668787] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fbc83552de0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbc833c2d50>>)
[1707607668831] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fbc83552de0> ret: None
[1707607668831] [DBG] MQTT exit <function mqtt_transport.connect at 0x7fbc83553060> ret: None
[1707607668832] [DBG] HUB Step, state: 0 (next: 1707607669832)
[1707607668832] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1707607668832] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fbc83552f20> ('/reg', '48:3f:da:55:07:5b')
[1707607668876] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fbc83552f20> ret: None
[1707607668919] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1707607668880 }
[1707607668919] [INFO] HUB Registration finish, time: 1707607668880
[1707607668919] [DBG] DEV-3996365522 enter <function device_base.register at 0x7fbc840a9d00> (1707607668,)
[1707607668919] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1707607668
[1707607668919] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707607668919] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fbc83552de0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fbc833c2d50>>)
[1707607668963] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fbc83552de0> ret: None
[1707607668963] [DBG] DEV-3996365522 exit <function device_base.register at 0x7fbc840a9d00> ret: None
[1707607669832] [DBG] HUB Step, state: 1 (next: 1707607670832)
[1707607669832] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7fbc840aa5c0> ()
[1707607669832] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7fbc840aa5c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707607668}}
[1707607669832] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707607668}}]} }
[1707607669832] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fbc83552f20> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707607668}}]}')
[1707607669832] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fbc83552f20> ret: None
[1707607669854] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1707607669857] [INFO] DEV-3996365522 User created. User count: 1
[1707607669857] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1707607669857] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fbc83552f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1707607669857] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fbc83552f20> ret: None
[1707607670911] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "ktfNtLoxNJGnMP3MjuQW5K6/A9ADwjVOUdOo4iDjCYgjvb+82hi6Lz0j6ljsUSEF.ZYozsAcyBBv0BzgnEJkAAOE8nJzNBTjWLpS2ZX9yyY0=" }
[1707607700917] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "dfrN+3zUEA7Kf5UAM1hja+2C64w2xs7P1MBzgT10wc5RrOdSl4na+vXwFiTruMmqaqux4YfdpkfVBXDX8elGU5PCU1FKQwNmLRQ1Jmyrf3sI1MBYPla5QdbxXzs9wyTzbMNDKeGzx7LmfVfpqZBhDw==.qnH/7NpBqvMgrQLEjbqPtWcnZSQZhQRt74E3u6B2Pw0=" }
[1707607700918] [INFO] DEV-3996365522 User created. User count: 2
[1707607700918] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1707607700918] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fbc83552f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1707607700918] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fbc83552f20> ret: None
[1707607700931] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "dfrN+3zUEA7Kf5UAM1hja+2C64w2xs7P1MBzgT10wc5wyl5loygaKTrpsM5y9ybJ.GCMxinrVO3RFPI4HbZkoiD+An08dyJl9px/M7wXjmDc=" }
[1707607700932] [INFO] HUB Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1707607700932] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fbc83552f20> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1707607700932] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fbc83552f20> ret: None
[1707607700984] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "NrZzC2XP+mYtXg5wDsAneVpDrgVOtJnEAcMV5kAllTXu4KDdotaO+H0bCKNMdab18/FuiCt+6GzjxpXj3XZYagCHm2ZoGYDc213/sTbLkDUJhgDbtZFtTFo7yb3edH77BXlFAvWkS7eigakfcGrtkA==.svj0vJbnhRYiAa9rN2wL015ol6je3B1MohyQjVekUhY=" }
[1707607700985] [INFO] DEV-3996365522 User created. User count: 2
[1707607700985] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1707607700985] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fbc83552f20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1707607700986] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fbc83552f20> ret: None
[1707607701038] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "JxcvZx2IWdooLfVL0bdGLQA52ocTWHCVnaUn+GsUq31TElJDJN6hqkAEdSd/+SR2.LV9dTnb6aMyaTNwHBCnrthb4OePwEMxBosSkE3PEZBY=" }
[1707607701038] [ERR] DEV-3996365522 User (amiable.mary@i.ua (a8ad4ae579399a8229db0474d8ef3804b0af5ea1133958a25be5431eafe83c71)) don't have permission to remove users
[1707607729832] [DBG] HUB Step, state: 2 (next: 1707607789832)
[1707607729832] [INFO] HUB Publish message: { topic: status, value: 4 }
[1707607729832] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fbc83552f20> ('/48:3f:da:55:07:5b/status', 4)
[1707607729832] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fbc83552f20> ret: None
[1707607729832] [DBG] DEV-3996365522 enter <function device_base.publish_status at 0x7fbc840a9bc0> ()
[1707607729832] [INFO] HUB Publish message: { topic: 3996365522/status, value: 4 }
[1707607729832] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fbc83552f20> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1707607729832] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fbc83552f20> ret: None
[1707607729832] [DBG] DEV-3996365522 exit <function device_base.publish_status at 0x7fbc840a9bc0> ret: None
[1707607731040] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1707607731041] [ERR] DEV-3996365522 User can't remove himself
[1707607761042] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7fbc83552b60> ()
[1707607761043] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7fbc83552b60> ret: None
[1707607761045] [WARN] HUB Disconecting from broker
Suite stderr:
2024-02-10 23:27:49,841 - TEST - INFO - OP take: 1009.32 ms
2024-02-10 23:27:49,849 - TEST - INFO - Connected with result code: 0
2024-02-10 23:27:49,853 - TEST - INFO - OP take: 10.076 ms
2024-02-10 23:27:49,853 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-02-10 23:27:49,854 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-02-10 23:27:49,907 - TEST - INFO - OP take: 52.843 ms
2024-02-10 23:27:49,907 - TEST - INFO - User created: "OK"
2024-02-10 23:27:50,908 - TEST - INFO - ##### Unknown user remove test #####
2024-02-10 23:27:50,909 - TEST - INFO - [dev] => { 'user/remove' : 'ktfNtLoxNJGnMP3MjuQW5K6/A9ADwjVO' }
2024-02-10 23:28:20,914 - TEST - INFO - Error was returned as planned
2024-02-10 23:28:20,915 - TEST - INFO - ##### Known user remove test #####
2024-02-10 23:28:20,915 - TEST - INFO - Create user: likeable.david@x.ks.ua pwd: k1tl4dxp user_id: 42d354eca2e7486fffa82f9c275992697d822942e48d5612a5d93a40de4cec61
2024-02-10 23:28:20,916 - TEST - INFO - [dev] => { 'user/add' : 'dfrN+3zUEA7Kf5UAM1hja+2C64w2xs7P' }
2024-02-10 23:28:20,930 - TEST - INFO - OP take: 10.123 ms
2024-02-10 23:28:20,931 - TEST - INFO - User created: "OK"
2024-02-10 23:28:20,931 - TEST - INFO - [dev] => { 'user/remove' : 'dfrN+3zUEA7Kf5UAM1hja+2C64w2xs7P' }
2024-02-10 23:28:20,983 - TEST - INFO - OP take: 50.578 ms
2024-02-10 23:28:20,983 - TEST - INFO - User removed. OK
2024-02-10 23:28:20,983 - TEST - INFO - ##### Known user remove without permissions test #####
2024-02-10 23:28:20,984 - TEST - INFO - Create user: amiable.mary@i.ua pwd: ovi38ses user_id: a8ad4ae579399a8229db0474d8ef3804b0af5ea1133958a25be5431eafe83c71
2024-02-10 23:28:20,984 - TEST - INFO - [dev] => { 'user/add' : 'NrZzC2XP+mYtXg5wDsAneVpDrgVOtJnE' }
2024-02-10 23:28:21,036 - TEST - INFO - OP take: 50.727 ms
2024-02-10 23:28:21,037 - TEST - INFO - User created: "OK"
2024-02-10 23:28:21,037 - TEST - INFO - [dev] => { 'user/remove' : 'JxcvZx2IWdooLfVL0bdGLQA52ocTWHCV' }
2024-02-10 23:28:51,039 - TEST - INFO - Error was returned as planned
2024-02-10 23:28:51,039 - TEST - INFO - ##### Removing myself test #####
2024-02-10 23:28:51,040 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2024-02-10 23:29:21,042 - TEST - INFO - Error was returned as planned
2024-02-10 23:29:21,045 - TEST - WARNING - Disconecting from broker