@@ -1728,8 +1728,8 @@ describe('test/OSSObject.test.ts', () => {
1728
1728
describe ( 'copy()' , ( ) => {
1729
1729
let name : string ;
1730
1730
let resHeaders : IncomingHttpHeaders ;
1731
- let otherBucket : string ;
1732
- let otherBucketObject : string ;
1731
+ // let otherBucket: string;
1732
+ // let otherBucketObject: string;
1733
1733
before ( async ( ) => {
1734
1734
name = `${ prefix } oss-client/oss/copy-meta.js` ;
1735
1735
const object = await ossObject . put ( name , __filename , {
@@ -1783,25 +1783,25 @@ describe('test/OSSObject.test.ts', () => {
1783
1783
assert . strictEqual ( res . headers [ 'content-disposition' ] , disposition ) ;
1784
1784
} ) ;
1785
1785
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
+ // });
1805
1805
1806
1806
it ( 'should copy object with non-english name' , async ( ) => {
1807
1807
const sourceName = `${ prefix } oss-client/oss/copy-meta_测试.js` ;
0 commit comments