Update k8s client and the dependencies ACI client change for Mocking Add ACI Provider Mock Tests Add the Windows development environment Add UT for Default Resource Requests Enable the make test in Docker file Update the vendors
18 lines
377 B
Go
18 lines
377 B
Go
package http
|
|
|
|
import (
|
|
"github.com/stretchr/testify/mock"
|
|
"net/http"
|
|
)
|
|
|
|
// TestRoundTripper DEPRECATED USE net/http/httptest
|
|
type TestRoundTripper struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// RoundTrip DEPRECATED USE net/http/httptest
|
|
func (t *TestRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
|
|
args := t.Called(req)
|
|
return args.Get(0).(*http.Response), args.Error(1)
|
|
}
|