Bug #51792
closedrun-tox-mgr-dashboard failed to write the /tmp/test_sanitize_password.txt when change user to run the test
0%
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.
Updated by Kefu Chai almost 3 years ago
- Status changed from New to Fix Under Review
- Assignee set to Kevin Zhao
- Pull request ID set to 42449
Updated by Kefu Chai almost 3 years ago
- Status changed from Fix Under Review to Resolved
Updated by Alfonso MartÃnez almost 3 years ago
- Status changed from Resolved to Pending Backport
- Backport set to pacific octopus
Updated by Backport Bot almost 3 years ago
- Copied to Backport #51825: pacific: run-tox-mgr-dashboard failed to write the /tmp/test_sanitize_password.txt when change user to run the test added
Updated by Backport Bot almost 3 years ago
- Copied to Backport #51826: octopus: run-tox-mgr-dashboard failed to write the /tmp/test_sanitize_password.txt when change user to run the test added
Updated by Ernesto Puerta over 2 years ago
- Status changed from Pending Backport to Resolved