(bucketName, configJson)
| 32 | }; |
| 33 | |
| 34 | function getRateLimitPutRequest(bucketName, configJson) { |
| 35 | return { |
| 36 | bucketName, |
| 37 | headers: { |
| 38 | host: `${bucketName}.s3.amazonaws.com`, |
| 39 | origin: 'http://example.com', |
| 40 | }, |
| 41 | url: '/?rate-limit', |
| 42 | method: 'PUT', |
| 43 | post: JSON.stringify(configJson), |
| 44 | actionImplicitDenies: false, |
| 45 | }; |
| 46 | } |
| 47 | |
| 48 | describe('bucketPutRateLimit API', () => { |
| 49 | let sandbox; |