Changeset - c2bd99ac87b6
[Not reviewed]
0 1 0
Branko Majic (branko) - 5 years ago 2020-01-08 14:04:35
branko@majic.rs
MAR-148: Re-enable the test for virtualenv activation script permissions.
1 file changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
roles/wsgi_website/molecule/default/tests/test_default.py
Show inline comments
 
@@ -246,16 +246,13 @@ def test_python_virtualenv_created(host, virtualenv_dir, expected_owner, expecte
 
        assert virtualenv.mode == 0o2750
 

	
 
        virtualenv_activate = host.file(virtualenv_dir + "/bin/activate")
 
        assert virtualenv_activate.is_file
 
        assert virtualenv_activate.user == expected_owner
 
        assert virtualenv_activate.group == expected_group
 
        # @TODO: Possibly due to some timing issues, this file might
 
        # end-up being 0640, particularly when switching Python
 
        # version in virtualenv.
 
        # assert virtualenv_activate.mode == 0o644
 
        assert virtualenv_activate.mode == 0o644
 

	
 

	
 
@pytest.mark.parametrize("project_file, expected_owner, expected_group", [
 
    ('/var/www/parameters-mandatory/virtualenv/.project', 'admin-parameters-mandatory', 'web-parameters-mandatory'),
 
    ('/var/www/parameters-optional.local/virtualenv/.project', 'admin-parameters-optional_local', 'web-parameters-optional_local'),
 
    ('/var/www/parameters-paste-req/virtualenv/.project', 'admin-parameters-paste-req', 'web-parameters-paste-req'),
0 comments (0 inline, 0 general)