(bucketName, xml)
| 1 | function getLifecycleRequest(bucketName, xml) { |
| 2 | const request = { |
| 3 | bucketName, |
| 4 | headers: { |
| 5 | host: `${bucketName}.s3.amazonaws.com`, |
| 6 | }, |
| 7 | actionImplicitDenies: false, |
| 8 | }; |
| 9 | if (xml) { |
| 10 | request.post = xml; |
| 11 | } |
| 12 | return request; |
| 13 | } |
| 14 | |
| 15 | function getLifecycleXml() { |
| 16 | const id1 = 'test-id1'; |
no outgoing calls
no test coverage detected