Actions
Bug #51791
closedunittest_ceph_immutable_obj_cache and run-tox-mgr-dashboard failed on non-sudo user exec pull request test
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
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%]
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.
Actions