Bug #51791
Updated by Sebastian Wagner over 2 years ago
<pre> 234/235 Test #6: run-tox-mgr-dashboard .....................***Failed 387.04 sec tools.py ..... [ 1%] controllers/rgw.py .. [ 1%] services/rgw_client.py . [ 1%] tests/helper.py . [ 2%] tests/test_access_control.py ........................................... [ 11%] .....F ___________________ AccessControlTest.test_sanitize_password ___________________ self = <dashboard.tests.test_access_control.AccessControlTest testMethod=test_sanitize_password> def test_sanitize_password(self): self.test_create_user() password = 'myPass\\n\\r\\n' > with open('/tmp/test_sanitize_password.txt', 'w+') as pwd_file: E PermissionError: [Errno 13] Permission denied: '/tmp/test_sanitize_password.txt' tests/test_access_control.py:589: PermissionError tests/test_access_control.py .................... [ 17%] tests/test_api_auditing.py ........ [ 19%] </pre> The issue occurs when use one user to operate the test and then use another user to run the test too. The temp file can be re-write.