Skip to content

Commit d513007

Browse files
authored
Merge pull request #86 from agin719/common-dev
fix bucket encryption & test
2 parents 649bd02 + eb4e1ac commit d513007

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bucket_encryption.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type BucketEncryptionConfiguration struct {
1212

1313
type BucketPutEncryptionOptions struct {
1414
XMLName xml.Name `xml:"ServerSideEncryptionConfiguration"`
15-
Rule *BucketEncryptionConfiguration `xml:"Rule>ApplySideEncryptionConfiguration"`
15+
Rule *BucketEncryptionConfiguration `xml:"Rule>ApplyServerSideEncryptionByDefault"`
1616
}
1717

1818
type BucketGetEncryptionResult BucketPutEncryptionOptions

costesting/ci_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ const (
6161
kRepRegion = "ap-chengdu"
6262

6363
// Batch测试需要的源存储桶和目标存储桶,目前只在成都、重庆地域公测
64-
kBatchBucket = "testcd-1259654469"
65-
kTargetBatchBucket = "cosgosdkreptest-1259654469" //复用了存储桶
66-
kBatchRegion = "ap-chengdu"
64+
kBatchBucket = "cosgosdktest-1259654469"
65+
kTargetBatchBucket = "cosgosdktest-1259654469" //复用了存储桶
66+
kBatchRegion = "ap-guangzhou"
6767
)
6868

6969
func (s *CosTestSuite) SetupSuite() {
@@ -812,7 +812,7 @@ func (s *CosTestSuite) TestBatch() {
812812
assert.Equal(s.T(), res3.Priority, 3, "priority not right")
813813

814814
// 等待状态变成Suspended
815-
for i := 0; i < 10; i = i + 1 {
815+
for i := 0; i < 50; i = i + 1 {
816816
res, _, err := client.Batch.DescribeJob(context.Background(), jobid, headers)
817817
assert.Nil(s.T(), err, "describe job Failed")
818818
assert.Equal(s.T(), res2.Job.ConfirmationRequired, "true", "ConfirmationRequired not right")

0 commit comments

Comments
 (0)