Function
createGetLoggingRequest
(bucketName, headers = {})
Source from the content-addressed store, hash-verified
| 47 | } |
| 48 | |
| 49 | function createGetLoggingRequest(bucketName, headers = {}) { |
| 50 | return { |
| 51 | bucketName, |
| 52 | namespace, |
| 53 | headers: { |
| 54 | host: `${bucketName}.s3.amazonaws.com`, |
| 55 | ...headers, |
| 56 | }, |
| 57 | url: '/?logging', |
| 58 | query: { logging: '' }, |
| 59 | actionImplicitDenies: false, |
| 60 | }; |
| 61 | } |
| 62 | |
| 63 | function createValidLoggingXML(targetBucket, targetPrefix = 'logs/') { |
| 64 | return '<?xml version="1.0" encoding="UTF-8"?>' + |
Tested by
no test coverage detected