AliyunOSSiOSTests/OSSConfigurationTest.m [223:251]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    OSSCreateBucketRequest *createBucketRequest = [OSSCreateBucketRequest new];
    createBucketRequest.bucketName = bucketName;
    OSSTask *task = [client createBucket:createBucketRequest];
    [task waitUntilFinished];
    XCTAssertNil(task.error);
    
    OSSPutObjectRequest *putObjectRequest = [OSSPutObjectRequest new];
    putObjectRequest.bucketName = bucketName;
    putObjectRequest.objectKey = objectKey;
    putObjectRequest.uploadingFileURL = fileURL;
    task = [client putObject:putObjectRequest];
    [task waitUntilFinished];
    XCTAssertNil(task.error);
    
    OSSGetObjectRequest *get = [OSSGetObjectRequest new];
    get.bucketName = bucketName;
    get.objectKey = objectKey;
    task = [client getObject:get];
    [task waitUntilFinished];
    XCTAssertNil(task.error);
    
    // OSSStsTokenCredentialProvider
    OSSFederationToken *federationToken = [OSSTestUtils getOssFederationToken];
    credentialProvider = [[OSSStsTokenCredentialProvider alloc] initWithAccessKeyId:federationToken.tAccessKey
                                                                        secretKeyId:federationToken.tSecretKey
                                                                      securityToken:federationToken.tToken];
    client = [[OSSClient alloc] initWithEndpoint:endpoint
                              credentialProvider:credentialProvider
                             clientConfiguration:config];
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



AliyunOSSiOSTests/OSSConfigurationTest.m [338:366]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    OSSCreateBucketRequest *createBucketRequest = [OSSCreateBucketRequest new];
    createBucketRequest.bucketName = bucketName;
    OSSTask *task = [client createBucket:createBucketRequest];
    [task waitUntilFinished];
    XCTAssertNil(task.error);
    
    OSSPutObjectRequest *putObjectRequest = [OSSPutObjectRequest new];
    putObjectRequest.bucketName = bucketName;
    putObjectRequest.objectKey = objectKey;
    putObjectRequest.uploadingFileURL = fileURL;
    task = [client putObject:putObjectRequest];
    [task waitUntilFinished];
    XCTAssertNil(task.error);
    
    OSSGetObjectRequest *get = [OSSGetObjectRequest new];
    get.bucketName = bucketName;
    get.objectKey = objectKey;
    task = [client getObject:get];
    [task waitUntilFinished];
    XCTAssertNil(task.error);
    
    // OSSStsTokenCredentialProvider
    OSSFederationToken *federationToken = [OSSTestUtils getOssFederationToken];
    credentialProvider = [[OSSStsTokenCredentialProvider alloc] initWithAccessKeyId:federationToken.tAccessKey
                                                                        secretKeyId:federationToken.tSecretKey
                                                                      securityToken:federationToken.tToken];
    client = [[OSSClient alloc] initWithEndpoint:endpoint
                              credentialProvider:credentialProvider
                             clientConfiguration:config];
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



