@@ -1888,7 +1888,7 @@ describe(`backbeat routes for replication (${name})`, () => {
18881888 return next ( err ) ;
18891889 }
18901890 objMDUpdated = JSON . parse ( data . body ) . Body ;
1891- return next ( ) ;
1891+ return next ( null , data ) ;
18921892 } ) ,
18931893 // Lifecycle Simulation: Apply lifecycle changes to null version metadata
18941894 // Lifecycle changes can consist of:
@@ -1918,7 +1918,7 @@ describe(`backbeat routes for replication (${name})`, () => {
19181918 return next ( err ) ;
19191919 }
19201920 objMDReplicated = objectMDWithUpdatedAccountInfo ( data , src === dst ? null : dstAccountInfo ) ;
1921- return next ( ) ;
1921+ return next ( null , data ) ;
19221922 } ) ,
19231923 // Replication: PUT lifecycled null version to destination
19241924 replicateLifecycledNullVersionToDestination : next => makeBackbeatRequest ( {
@@ -1930,6 +1930,11 @@ describe(`backbeat routes for replication (${name})`, () => {
19301930 authCredentials : destinationAuthCredentials ,
19311931 requestBody : objMDReplicated ,
19321932 } , next ) ,
1933+ headObjectByVersionId : next => dstS3 . send ( new HeadObjectCommand ( {
1934+ Bucket : bucketDestination ,
1935+ Key : keyName ,
1936+ VersionId : versionId
1937+ } ) ) . then ( data => next ( null , data ) ) . catch ( err => next ( err ) ) ,
19331938 headObjectByNullVersion : next => dstS3 . send ( new HeadObjectCommand ( {
19341939 Bucket : bucketDestination ,
19351940 Key : keyName ,
0 commit comments