MCPcopy Index your code
hub / github.com/scality/cloudserver / createValidLoggingXML

Function createValidLoggingXML

tests/unit/api/bucketGetLogging.js:63–71  ·  view source on GitHub ↗
(targetBucket, targetPrefix = 'logs/')

Source from the content-addressed store, hash-verified

61}
62
63function createValidLoggingXML(targetBucket, targetPrefix = 'logs/') {
64 return '<?xml version="1.0" encoding="UTF-8"?>' +
65 '<BucketLoggingStatus xmlns="http://doc.s3.amazonaws.com/2006-03-01">' +
66 '<LoggingEnabled>' +
67 `<TargetBucket>${targetBucket}</TargetBucket>` +
68 `<TargetPrefix>${targetPrefix}</TargetPrefix>` +
69 '</LoggingEnabled>' +
70 '</BucketLoggingStatus>';
71}
72
73describe('bucketGetLogging API', () => {
74 beforeEach(done => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected