(minor) add remote tests for the 'writable' command

redis
Sitaram Chamarty 2012-04-16 17:33:12 +05:30
parent 581e79d745
commit 2629d7f00a
1 changed files with 11 additions and 2 deletions

View File

@ -13,7 +13,7 @@ my $workdir = getcwd();
my $sf = ".gitolite.down";
try "plan 58";
try "plan 66";
try "DEF POK = !/DENIED/; !/failed to push/";
# delete the down file
@ -27,7 +27,7 @@ confreset;confadd '
repo bar/..*
C = u2 u4 u6
RW = CREATOR
RW = CREATOR u3
';
try "ADMIN_PUSH set1; !/FATAL/" or die text();
@ -112,4 +112,13 @@ try "
cd ../u2
tc h4
PUSH u2; !ok; /the bar is closed/
ssh u3 writable bar/u2 on; !ok; /you are not authorized/
ssh u3 writable \@all on; !ok; /you are not authorized/
ssh u2 writable bar/u2 on; ok
ssh u2 writable \@all on; !ok; /you are not authorized/
ssh admin writable \@all on;
ok
";