From 2629d7f00a5463a479af9c1a511113a9b835665a Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Mon, 16 Apr 2012 17:33:12 +0530 Subject: [PATCH] (minor) add remote tests for the 'writable' command --- t/writable.t | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/t/writable.t b/t/writable.t index e778414..a649323 100755 --- a/t/writable.t +++ b/t/writable.t @@ -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 ";