Mercurial > hg
comparison tests/test-acl @ 11140:1f26cf0a3663
acl: improve undefined group error handling
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 10 May 2010 21:44:00 +0200 |
parents | f2c6b9819a6d |
children | 2b83c26b29f3 |
comparison
equal
deleted
inserted
replaced
11139:f2c6b9819a6d | 11140:1f26cf0a3663 |
---|---|
163 echo '[acl.deny]' >> $config | 163 echo '[acl.deny]' >> $config |
164 echo "foo/Bar/** = @group1" >> $config | 164 echo "foo/Bar/** = @group1" >> $config |
165 echo "@group is allowed inside anything but foo/Bar/" | 165 echo "@group is allowed inside anything but foo/Bar/" |
166 do_push fred | 166 do_push fred |
167 | 167 |
168 echo 'Invalid group' | |
169 # Disable the fakegroups trick to get real failures | |
170 grep -v fakegroups $config > config.tmp | |
171 mv config.tmp $config | |
172 echo '[acl.allow]' >> $config | |
173 echo "** = @unlikelytoexist" >> $config | |
174 do_push fred 2>&1 | grep unlikelytoexist | |
168 | 175 |
176 true |