@@ -12,6 +12,8 @@ const template = {
1212 Properties : {
1313 RequestParameters : { } ,
1414 AuthorizationType : 'NONE' ,
15+ AuthorizationScopes : undefined ,
16+ AuthorizerId : undefined ,
1517 ApiKeyRequired : false ,
1618 ResourceId : { Ref : 'ApiGatewayResourceS3' } ,
1719 RestApiId : { Ref : 'ApiGatewayRestApi' } ,
@@ -146,7 +148,8 @@ describe('#compileMethodsToS3()', () => {
146148 Ref : 'MyBucket'
147149 } ,
148150 action : 'GetObject' ,
149- key
151+ key,
152+ auth : { authorizationType : 'NONE' }
150153 }
151154
152155 const requestParams = { }
@@ -210,7 +213,8 @@ describe('#compileMethodsToS3()', () => {
210213 Ref : 'MyBucket'
211214 } ,
212215 action : 'PutObject' ,
213- key
216+ key,
217+ auth : { authorizationType : 'NONE' }
214218 }
215219
216220 const requestParams = {
@@ -278,7 +282,8 @@ describe('#compileMethodsToS3()', () => {
278282 Ref : 'MyBucket'
279283 } ,
280284 action : 'DeleteObject' ,
281- key
285+ key,
286+ auth : { authorizationType : 'NONE' }
282287 }
283288
284289 const requestParams = { }
@@ -362,7 +367,8 @@ describe('#compileMethodsToS3()', () => {
362367 'X-Amz-User-Agent'
363368 ] ,
364369 allowCredentials : false
365- }
370+ } ,
371+ auth : { authorizationType : 'NONE' }
366372 }
367373 }
368374 ]
@@ -386,6 +392,8 @@ describe('#compileMethodsToS3()', () => {
386392 'method.request.path.key' : true
387393 } ,
388394 AuthorizationType : 'NONE' ,
395+ AuthorizationScopes : undefined ,
396+ AuthorizerId : undefined ,
389397 ApiKeyRequired : false ,
390398 ResourceId : { Ref : 'ApiGatewayResourceS3' } ,
391399 RestApiId : { Ref : 'ApiGatewayRestApi' } ,
0 commit comments