diff options
author | Tommi Virtanen <tv@eagain.net> | 2008-01-17 02:15:52 +0200 |
---|---|---|
committer | Tommi Virtanen <tv@eagain.net> | 2008-01-17 02:15:52 +0200 |
commit | b04fbb1df75c7f1f3f6bb4b4b37565f4a2ede54d (patch) | |
tree | 518436a5cb7e5ac957de567fb3aed83dd752e79c /gitosis/test/test_access.py | |
parent | Fix typo that made push fail in writeAuthorizedKeys. (diff) | |
download | gitosis-dakkar-b04fbb1df75c7f1f3f6bb4b4b37565f4a2ede54d.tar.gz gitosis-dakkar-b04fbb1df75c7f1f3f6bb4b4b37565f4a2ede54d.tar.bz2 gitosis-dakkar-b04fbb1df75c7f1f3f6bb4b4b37565f4a2ede54d.zip |
Fix bug where members=@all didn't actually give access.
Diffstat (limited to 'gitosis/test/test_access.py')
-rw-r--r-- | gitosis/test/test_access.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gitosis/test/test_access.py b/gitosis/test/test_access.py index 9f9d81a..751b0b4 100644 --- a/gitosis/test/test_access.py +++ b/gitosis/test/test_access.py @@ -78,6 +78,14 @@ def test_read_yes_map_wouldHaveWritable(): eq(access.haveAccess(config=cfg, user='jdoe', mode='readonly', path='foo/bar'), None) +def test_read_yes_all(): + cfg = RawConfigParser() + cfg.add_section('group fooers') + cfg.set('group fooers', 'members', '@all') + cfg.set('group fooers', 'readonly', 'foo/bar') + eq(access.haveAccess(config=cfg, user='jdoe', mode='readonly', path='foo/bar'), + ('repositories', 'foo/bar')) + def test_base_global_absolute(): cfg = RawConfigParser() cfg.add_section('gitosis') |