Project

General

Profile

Actions

Bug #51791

closed

unittest_ceph_immutable_obj_cache and run-tox-mgr-dashboard failed on non-sudo user exec pull request test

Added by Kevin Zhao almost 3 years ago. Updated over 2 years ago.

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 #1

Updated by Kevin Zhao almost 3 years ago

Wrong description. please close this one,

Actions #2

Updated by Sebastian Wagner over 2 years ago

  • Description updated (diff)
Actions #3

Updated by Sebastian Wagner over 2 years ago

  • Project changed from Ceph to Dashboard
Actions #4

Updated by Alfonso Martínez over 2 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF