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

Function createValidLoggingXML

tests/unit/api/bucketPutLogging.js:48–56  ·  view source on GitHub ↗
(targetBucket, targetPrefix = 'logs/')

Source from the content-addressed store, hash-verified

46}
47
48function createValidLoggingXML(targetBucket, targetPrefix = 'logs/') {
49 return '<?xml version="1.0" encoding="UTF-8"?>' +
50 '<BucketLoggingStatus xmlns="http://doc.s3.amazonaws.com/2006-03-01">' +
51 '<LoggingEnabled>' +
52 `<TargetBucket>${targetBucket}</TargetBucket>` +
53 `<TargetPrefix>${targetPrefix}</TargetPrefix>` +
54 '</LoggingEnabled>' +
55 '</BucketLoggingStatus>';
56}
57
58function createEmptyLoggingXML() {
59 return '<?xml version="1.0" encoding="UTF-8"?>' +

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected