@@ -1728,8 +1728,8 @@ describe('test/OSSObject.test.ts', () => {
17281728 describe ( 'copy()' , ( ) => {
17291729 let name : string ;
17301730 let resHeaders : IncomingHttpHeaders ;
1731- let otherBucket : string ;
1732- let otherBucketObject : string ;
1731+ // let otherBucket: string;
1732+ // let otherBucketObject: string;
17331733 before ( async ( ) => {
17341734 name = `${ prefix } oss-client/oss/copy-meta.js` ;
17351735 const object = await ossObject . put ( name , __filename , {
@@ -1783,25 +1783,25 @@ describe('test/OSSObject.test.ts', () => {
17831783 assert . strictEqual ( res . headers [ 'content-disposition' ] , disposition ) ;
17841784 } ) ;
17851785
1786- it . skip ( 'should copy object from other bucket, sourceBucket in copySource' , async ( ) => {
1787- const copySource = `/${ otherBucket } /${ otherBucketObject } ` ;
1788- const copyTarget = `${ prefix } oss-client/oss/copy-target.js` ;
1789- const result = await ossObject . copy ( copyTarget , copySource ) ;
1790- assert . equal ( result . res . status , 200 ) ;
1791-
1792- const info = await ossObject . head ( copyTarget ) ;
1793- assert . equal ( info . status , 200 ) ;
1794- } ) ;
1795-
1796- it . skip ( 'should copy object from other bucket, sourceBucket is a separate parameter' , async ( ) => {
1797- const copySource = otherBucketObject ;
1798- const copyTarget = `${ prefix } oss-client/oss/has-bucket-name-copy-target.js` ;
1799- const result = await ossObject . copy ( copyTarget , copySource , otherBucket ) ;
1800- assert . equal ( result . res . status , 200 ) ;
1801-
1802- const info = await ossObject . head ( copyTarget ) ;
1803- assert . equal ( info . status , 200 ) ;
1804- } ) ;
1786+ // it.skip('should copy object from other bucket, sourceBucket in copySource', async () => {
1787+ // const copySource = `/${otherBucket}/${otherBucketObject}`;
1788+ // const copyTarget = `${prefix}oss-client/oss/copy-target.js`;
1789+ // const result = await ossObject.copy(copyTarget, copySource);
1790+ // assert.equal(result.res.status, 200);
1791+ //
1792+ // const info = await ossObject.head(copyTarget);
1793+ // assert.equal(info.status, 200);
1794+ // });
1795+
1796+ // it.skip('should copy object from other bucket, sourceBucket is a separate parameter', async () => {
1797+ // const copySource = otherBucketObject;
1798+ // const copyTarget = `${prefix}oss-client/oss/has-bucket-name-copy-target.js`;
1799+ // const result = await ossObject.copy(copyTarget, copySource, otherBucket);
1800+ // assert.equal(result.res.status, 200);
1801+ //
1802+ // const info = await ossObject.head(copyTarget);
1803+ // assert.equal(info.status, 200);
1804+ // });
18051805
18061806 it ( 'should copy object with non-english name' , async ( ) => {
18071807 const sourceName = `${ prefix } oss-client/oss/copy-meta_测试.js` ;
0 commit comments