File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
tests/functional/aws-node-sdk/test/object Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 55 PutBucketVersioningCommand,
66 HeadObjectCommand,
77 GetObjectCommand,
8- ListObjectVersionsCommand,
98} = require ( '@aws-sdk/client-s3' ) ;
109
1110const withV4 = require ( '../support/withV4' ) ;
@@ -94,6 +93,8 @@ describe('Put object with same key as prior object', () => {
9493 } ) ;
9594
9695 it ( 'should preserve archived previous version in versioned bucket' , async ( ) => {
96+ await bucketUtil . empty ( bucketName ) ;
97+
9798 await s3 . send ( new PutBucketVersioningCommand ( {
9899 Bucket : bucketName ,
99100 VersioningConfiguration : { Status : 'Enabled' } ,
@@ -127,13 +128,6 @@ describe('Put object with same key as prior object', () => {
127128 const currentVersionMD = await getMetadataPromise (
128129 bucketName , objectName , secondPutRes . VersionId ) ;
129130 assert . strictEqual ( currentVersionMD . archive , undefined ) ;
130-
131- const listed = await s3 . send ( new ListObjectVersionsCommand ( {
132- Bucket : bucketName ,
133- Prefix : objectName ,
134- } ) ) ;
135- const objectVersions = ( listed . Versions || [ ] ) . filter ( v => v . Key === objectName ) ;
136- assert ( objectVersions . length >= 2 ) ;
137131 } ) ;
138132 } ) ;
139133} ) ;
You can’t perform that action at this time.
0 commit comments