(config)
| 539 | } |
| 540 | |
| 541 | function parseIntegrityChecks(config) { |
| 542 | const integrityChecks = { |
| 543 | 'bucketPutACL': true, |
| 544 | 'bucketPutCors': true, |
| 545 | 'bucketPutEncryption': true, |
| 546 | 'bucketPutLifecycle': true, |
| 547 | 'bucketPutNotification': true, |
| 548 | 'bucketPutObjectLock': true, |
| 549 | 'bucketPutPolicy': true, |
| 550 | 'bucketPutReplication': true, |
| 551 | 'bucketPutVersioning': true, |
| 552 | 'bucketPutWebsite': true, |
| 553 | 'multiObjectDelete': true, |
| 554 | 'objectPutACL': true, |
| 555 | 'objectPutLegalHold': true, |
| 556 | 'objectPutTagging': true, |
| 557 | 'objectPutRetention': true, |
| 558 | }; |
| 559 | |
| 560 | if (config && config.integrityChecks) { |
| 561 | for (const method in integrityChecks) { |
| 562 | if (method in config.integrityChecks) { |
| 563 | assert(typeof config.integrityChecks[method] == 'boolean', `bad config: ${method} not boolean`); |
| 564 | integrityChecks[method] = config.integrityChecks[method]; |
| 565 | } |
| 566 | } |
| 567 | } |
| 568 | |
| 569 | return integrityChecks; |
| 570 | } |
| 571 | |
| 572 | const serverAccessLogsModes = { |
| 573 | DISABLED: 'DISABLED', |
no outgoing calls
no test coverage detected