Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support wj poc #60

Merged
merged 6 commits into from
Dec 21, 2017
Merged

support wj poc #60

merged 6 commits into from
Dec 21, 2017

Conversation

baiyubin
Copy link

变更内容

  • 添加:getBucketLocation接口;
  • 添加:putBucketStorageCapacity和getBucketStorageCapacity接口;
  • 添加:getBucketMeta接口;

$options[self::OSS_BUCKET] = $bucket;
$options[self::OSS_METHOD] = self::OSS_HTTP_GET;
$options[self::OSS_OBJECT] = '/';
$options[self::OSS_SUB_RESOURCE] = 'location';
Copy link
Contributor

@RobertYue19900425 RobertYue19900425 Oct 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

location, qos定义成一个宏比较好, 不过现存代码都是这样的,这个后面我来改吧

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个暂时不用改

$this->assertTrue(false);
} catch (OssException $e) {
$this->assertEquals('InvalidArgument', $e->getErrorCode());
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BucketStorageCapacity对用户有最大限制吗? 如果有应该增加一个case。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加入了一个限制用户容量的case测试

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed/ok

$this->ossClient->putBucketStorageCapacity($this->bucket, - 2);
$this->assertTrue(false);
} catch (OssException $e) {
$this->assertEquals('InvalidArgument', $e->getErrorCode());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里还要验证http status

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已经加上了

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@coveralls
Copy link

coveralls commented Dec 20, 2017

Coverage Status

Coverage increased (+0.4%) to 91.698% when pulling 914dfef on dev-head-bucket into f7c787b on master.

@coveralls
Copy link

coveralls commented Dec 20, 2017

Coverage Status

Coverage increased (+0.4%) to 91.698% when pulling 4e53c89 on dev-head-bucket into f7c787b on master.

Copy link
Contributor

@RobertYue19900425 RobertYue19900425 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@baiyubin baiyubin merged commit 6d1de8d into master Dec 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants