提交的内容
This commit is contained in:
8
vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectRequestPaymentTest.php
vendored
Executable file → Normal file
8
vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectRequestPaymentTest.php
vendored
Executable file → Normal file
@ -451,12 +451,12 @@ class OssClientObjectRequestPaymentTest extends TestOssClientBase
|
||||
{
|
||||
parent::setUp();
|
||||
$this->payerClient = new OssClient(
|
||||
getenv('OSS_PAYER_ACCESS_KEY_ID'),
|
||||
getenv('OSS_PAYER_ACCESS_KEY_SECRET'),
|
||||
getenv('OSS_ENDPOINT'), false);
|
||||
Common::getPayerAccessKeyId(),
|
||||
Common::getPayerAccessKeySecret(),
|
||||
Common::getEndpoint(), false);
|
||||
|
||||
$policy = '{"Version":"1","Statement":[{"Action":["oss:*"],"Effect": "Allow",'.
|
||||
'"Principal":["' . getenv('OSS_PAYER_UID') . '"],'.
|
||||
'"Principal":["' . Common::getPayerUid() . '"],'.
|
||||
'"Resource": ["acs:oss:*:*:' . $this->bucket . '","acs:oss:*:*:' . $this->bucket . '/*"]}]}';
|
||||
|
||||
$this->ossClient->putBucketPolicy($this->bucket, $policy);
|
||||
|
||||
Reference in New Issue
Block a user