Add ci test with the testify and travis, test the working

fix travis yml and test

fix travis yml and test

Fix yml and import package

fix

fix ci_test

go on test

ci

Remote other infos
This commit is contained in:
toranger
2019-01-31 10:27:19 +08:00
parent 44c9c3fb79
commit 4cc9e08da1
12 changed files with 570 additions and 23 deletions

3
cos.go
View File

@@ -24,7 +24,7 @@ const (
Version = "0.7.3"
userAgent = "cos-go-sdk-v5/" + Version
contentTypeXML = "application/xml"
defaultServiceBaseURL = "https://service.cos.myqcloud.com"
defaultServiceBaseURL = "http://service.cos.myqcloud.com"
)
var bucketURLTemplate = template.Must(
@@ -326,6 +326,7 @@ type ACLHeaderOptions struct {
type ACLGrantee struct {
Type string `xml:"type,attr"`
UIN string `xml:"uin,omitempty"`
URI string `xml:"URI,omitempty"`
ID string `xml:",omitempty"`
DisplayName string `xml:",omitempty"`
SubAccount string `xml:"Subaccount,omitempty"`