MCPcopy
hub / github.com/scality/cloudserver / checkContents

Function checkContents

tests/functional/backbeat/listLifecycleNonCurrents.js:43–65  ·  view source on GitHub ↗
(contents)

Source from the content-addressed store, hash-verified

41}
42
43function checkContents(contents) {
44 contents.forEach(d => {
45 assert(d.Key);
46 assert(d.LastModified);
47 assert(d.ETag && d.ETag.startsWith('"') && d.ETag.endsWith('"'));
48 assert(d.Owner.DisplayName);
49 assert(d.Owner.ID);
50 assert(d.StorageClass);
51 assert.strictEqual(d.StorageClass, 'STANDARD');
52 assert(d.VersionId);
53 assert(d.staleDate);
54 assert(!d.IsLatest);
55 assert.deepStrictEqual(d.TagSet, [
56 {
57 Key: 'mykey',
58 Value: 'myvalue',
59 },
60 ]);
61 assert.strictEqual(d.DataStoreName, location);
62 assert.strictEqual(d.ListType, 'noncurrent');
63 assert.strictEqual(d.Size, 3);
64 });
65}
66
67describe('listLifecycleNonCurrents', () => {
68 let date;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected