@@ -12,6 +12,8 @@ const template = {
12
12
Properties : {
13
13
RequestParameters : { } ,
14
14
AuthorizationType : 'NONE' ,
15
+ AuthorizationScopes : undefined ,
16
+ AuthorizerId : undefined ,
15
17
ApiKeyRequired : false ,
16
18
ResourceId : { Ref : 'ApiGatewayResourceS3' } ,
17
19
RestApiId : { Ref : 'ApiGatewayRestApi' } ,
@@ -146,7 +148,8 @@ describe('#compileMethodsToS3()', () => {
146
148
Ref : 'MyBucket'
147
149
} ,
148
150
action : 'GetObject' ,
149
- key
151
+ key,
152
+ auth : { authorizationType : 'NONE' }
150
153
}
151
154
152
155
const requestParams = { }
@@ -210,7 +213,8 @@ describe('#compileMethodsToS3()', () => {
210
213
Ref : 'MyBucket'
211
214
} ,
212
215
action : 'PutObject' ,
213
- key
216
+ key,
217
+ auth : { authorizationType : 'NONE' }
214
218
}
215
219
216
220
const requestParams = {
@@ -278,7 +282,8 @@ describe('#compileMethodsToS3()', () => {
278
282
Ref : 'MyBucket'
279
283
} ,
280
284
action : 'DeleteObject' ,
281
- key
285
+ key,
286
+ auth : { authorizationType : 'NONE' }
282
287
}
283
288
284
289
const requestParams = { }
@@ -362,7 +367,8 @@ describe('#compileMethodsToS3()', () => {
362
367
'X-Amz-User-Agent'
363
368
] ,
364
369
allowCredentials : false
365
- }
370
+ } ,
371
+ auth : { authorizationType : 'NONE' }
366
372
}
367
373
}
368
374
]
@@ -386,6 +392,8 @@ describe('#compileMethodsToS3()', () => {
386
392
'method.request.path.key' : true
387
393
} ,
388
394
AuthorizationType : 'NONE' ,
395
+ AuthorizationScopes : undefined ,
396
+ AuthorizerId : undefined ,
389
397
ApiKeyRequired : false ,
390
398
ResourceId : { Ref : 'ApiGatewayResourceS3' } ,
391
399
RestApiId : { Ref : 'ApiGatewayRestApi' } ,
0 commit comments