Function
createLoggingRequest
(bucketName, post, headers = {})
Source from the content-addressed store, hash-verified
| 31 | }; |
| 32 | |
| 33 | function createLoggingRequest(bucketName, post, headers = {}) { |
| 34 | return { |
| 35 | bucketName, |
| 36 | namespace, |
| 37 | headers: { |
| 38 | host: `${bucketName}.s3.amazonaws.com`, |
| 39 | ...headers, |
| 40 | }, |
| 41 | url: '/?logging', |
| 42 | query: { logging: '' }, |
| 43 | post, |
| 44 | actionImplicitDenies: false, |
| 45 | }; |
| 46 | } |
| 47 | |
| 48 | function createValidLoggingXML(targetBucket, targetPrefix = 'logs/') { |
| 49 | return '<?xml version="1.0" encoding="UTF-8"?>' + |
Tested by
no test coverage detected