5 # this is hardcoded; change it if needed
9 # delegation tests -- part 1
10 # ----------------------------------------------------------------------
15 DEF SP_1 = git add conf ; ok; git commit -m %1; ok; /master.* %1/
16 DEF SUBCONF_PUSH = SP_1 %2; glt push %1 origin; gsh; /master -> master/
24 # the admin repo access was probably like this to start with:
28 RW NAME/conf/fragments/u1r = u1
29 RW NAME/conf/fragments/u2r = u2
30 RW NAME/conf/fragments/u3r = u3
33 subconf "fragments/*.conf"
35 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
37 mkdir "conf/fragments";
38 put
"conf/fragments/u1r.conf", '
43 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
45 /Initialized empty Git repository in .*/r1a.git//
46 /Initialized empty Git repository in .*/r1b.git//
50 put
"conf/fragments/u1r.conf", '
54 try
"SUBCONF_PUSH u1 u1; !/FATAL/" or die text
();
61 try
"SUBCONF_PUSH u2 u2; /FATAL/;
62 /W VREF/NAME/conf/gitolite.conf gitolite-admin u2 DENIED by VREF/NAME//
65 try
"git reset --hard origin/master; ok";
68 put
"conf/fragments/u1r.conf", '
72 try
"SUBCONF_PUSH u2 u2; /FATAL/
73 /W VREF/NAME/conf/fragments/u1r.conf gitolite-admin u2 DENIED by VREF/NAME//
76 try
"git reset --hard origin/master; ok";
78 # u3 set perms for r2a fail
79 put
"conf/fragments/u3r.conf", '
83 try
"SUBCONF_PUSH u3 u3;
84 /WARNING: subconf 'u3r' attempting to set access for r2a/
87 try
"git reset --hard origin/master; ok";
89 # u3 add r2b to u3r fail
91 put
"conf/fragments/u3r.conf", '
97 try
"SUBCONF_PUSH u3 u3
98 /WARNING: expanding '\@u3r'/
99 /WARNING: subconf 'u3r' attempting to set access for r2b/