File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
appengine/storage/system-test Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ test.before(async () => {
3030 await bucket . create ( bucket ) . then ( ( data ) => {
3131 return bucket . acl . add ( {
3232 entity : 'allUsers' ,
33- role : Storage . acl . WRITER_ROLE
33+ role : Storage . acl . READER_ROLE
3434 } ) ;
3535 } ) ;
3636} ) ;
Original file line number Diff line number Diff line change @@ -23,14 +23,15 @@ if (!args.length || args[0] === 'coverage') {
2323 rm ( '-rf' , 'coverage' ) ;
2424} else if ( args [ 0 ] === 'buckets' ) {
2525 const NAME_REG_EXP = / ^ n o d e j s - d o c s - s a m p l e s - t e s t - [ a - z 0 - 9 ] { 8 } - [ a - z 0 - 9 ] { 4 } - [ a - z 0 - 9 ] { 4 } - [ a - z 0 - 9 ] { 4 } - [ a - z 0 - 9 ] { 12 } $ / ;
26+ const NAME_REG_EXP_2 = / ^ d o c s - s a m p l e s - g a e - t e s t - [ a - z 0 - 9 ] { 8 } - [ a - z 0 - 9 ] { 4 } - [ a - z 0 - 9 ] { 4 } - [ a - z 0 - 9 ] { 4 } - [ a - z 0 - 9 ] { 12 } $ / ;
2627
2728 storage
2829 . getBuckets ( )
2930 . then ( ( [ buckets ] ) => {
3031 let promise = Promise . resolve ( ) ;
3132
3233 buckets
33- . filter ( ( bucket ) => NAME_REG_EXP . test ( bucket . name ) )
34+ . filter ( ( bucket ) => NAME_REG_EXP . test ( bucket . name ) || NAME_REG_EXP_2 . test ( bucket . name ) )
3435 . forEach ( ( bucket ) => {
3536 promise = promise . then ( ( ) => {
3637 return bucket . deleteFiles ( )
You can’t perform that action at this time.
0 commit comments