Fix yml and import package
This commit is contained in:
@@ -12,6 +12,7 @@ before_install:
|
|||||||
install:
|
install:
|
||||||
- go get
|
- go get
|
||||||
- go build
|
- go build
|
||||||
|
- go build github.com/mattn/goveralls
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
- make ci-test
|
- make ci-test
|
||||||
|
|||||||
@@ -6,8 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
"github.com/tencentyun/cos-go-sdk-v5"
|
"github.com/toranger/cos-go-sdk-v5"
|
||||||
"github.com/tencentyun/cos-go-sdk-v5/debug"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net/http"
|
"net/http"
|
||||||
@@ -70,12 +69,6 @@ func (s *CosTestSuite) SetupSuite() {
|
|||||||
Transport: &cos.AuthorizationTransport{
|
Transport: &cos.AuthorizationTransport{
|
||||||
SecretID: os.Getenv("COS_SECRETID"),
|
SecretID: os.Getenv("COS_SECRETID"),
|
||||||
SecretKey: os.Getenv("COS_SECRETKEY"),
|
SecretKey: os.Getenv("COS_SECRETKEY"),
|
||||||
Transport: &debug.DebugRequestTransport{
|
|
||||||
// RequestHeader: true,
|
|
||||||
// RequestBody: true,
|
|
||||||
// ResponseHeader: true,
|
|
||||||
// ResponseBody: true,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user