File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1+ import { generateUUID } from "../src/utils" ;
12import { BucketPolicy } from "../src/core" ;
23import { MinioUtils } from "../src/minio" ;
34import { initRequestNoneOAuth2 } from "../src/request" ;
@@ -16,8 +17,10 @@ test("testAssumeRoleUpload", async ()=>{
1617 const resp = await minioUtils . fetchConfig ( false , true ) ;
1718 expect ( resp . response . ok ) . toBeTruthy ( ) ;
1819
19- const uploadResp = await minioUtils . upload ( BucketPolicy . Public , "tttt.txt" , "XXXXXX" ) ;
20+ const file = generateUUID ( )
21+ const uploadResp = await minioUtils . upload ( BucketPolicy . Public , `aaa/${ file } .txt` , "XXXXXX" ) ;
2022 const { response, data } = uploadResp ;
2123 expect ( response . ok ) . toBeTruthy ( ) ;
2224 expect ( response . status ) . toEqual ( 200 ) ;
25+ expect ( data . etag . length > 0 ) . toBeTruthy ( ) ;
2326 } ) ;
You can’t perform that action at this time.
0 commit comments