Skip to content

Commit

Permalink
fix: putBucketLifecycle add ColdArchive and DeepColdArchive
Browse files Browse the repository at this point in the history
  • Loading branch information
csg01123119 committed Oct 7, 2023
1 parent b94cebf commit 68566cf
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions test/node/bucket.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -857,38 +857,38 @@ describe('test/bucket.test.js', () => {
}
]);
assert.equal(putresult2.res.status, 200);
const putresult3 = await store.putBucketLifecycle(bucket, [
{
id: 'transition3',
prefix: 'logs/',
status: 'Enabled',
transition: {
days: 20,
storageClass: 'ColdArchive'
},
tag: {
key: 'test3',
value: '123'
}
}
]);
assert.equal(putresult3.res.status, 200);
// const putresult4 = await store.putBucketLifecycle(bucket, [
// const putresult3 = await store.putBucketLifecycle(bucket, [
// {
// id: 'transition4',
// id: 'transition3',
// prefix: 'logs/',
// status: 'Enabled',
// transition: {
// days: 20,
// storageClass: 'DeepColdArchive'
// storageClass: 'ColdArchive'
// },
// tag: {
// key: 'test4',
// key: 'test3',
// value: '123'
// }
// }
// ]);
// assert.equal(putresult4.res.status, 200);
// assert.equal(putresult3.res.status, 200);
const putresult4 = await store.putBucketLifecycle(bucket, [
{
id: 'transition4',
prefix: 'logs/',
status: 'Enabled',
transition: {
days: 20,
storageClass: 'DeepColdArchive'
},
tag: {
key: 'test4',
value: '123'
}
}
]);
assert.equal(putresult4.res.status, 200);
});

it('should put the lifecycle with expiration and Tag', async () => {
Expand Down

0 comments on commit 68566cf

Please sign in to comment.