(key, expected, cb)
| 99 | |
| 100 | // Put the object key and check the replication information. |
| 101 | function putObjectAndCheckMD(key, expected, cb) { |
| 102 | return objectPut(authInfo, getObjectPutReq(key, true), undefined, log, |
| 103 | err => { |
| 104 | if (err) { |
| 105 | return cb(err); |
| 106 | } |
| 107 | checkObjectReplicationInfo(key, expected); |
| 108 | return cb(); |
| 109 | }); |
| 110 | } |
| 111 | |
| 112 | // Create the bucket in metadata. |
| 113 | function createBucket() { |
no test coverage detected