Skip to content

Commit

Permalink
Merge pull request #86 from agin719/common-dev
Browse files Browse the repository at this point in the history
fix bucket encryption & test
  • Loading branch information
agin719 authored Sep 17, 2020
2 parents 649bd02 + eb4e1ac commit d513007
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bucket_encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type BucketEncryptionConfiguration struct {

type BucketPutEncryptionOptions struct {
XMLName xml.Name `xml:"ServerSideEncryptionConfiguration"`
Rule *BucketEncryptionConfiguration `xml:"Rule>ApplySideEncryptionConfiguration"`
Rule *BucketEncryptionConfiguration `xml:"Rule>ApplyServerSideEncryptionByDefault"`
}

type BucketGetEncryptionResult BucketPutEncryptionOptions
Expand Down
8 changes: 4 additions & 4 deletions costesting/ci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ const (
kRepRegion = "ap-chengdu"

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

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

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

0 comments on commit d513007

Please sign in to comment.