Versions in this module Expand all Collapse all v2 v2.4.1 Jan 5, 2021 v2.4.0 Jan 5, 2021 Changes in this version + var Default = Defaults + func AssertAdapt(t *testing.T, rawConfig string, adapterName string, expectedResponse string) + func AssertLoadError(t *testing.T, rawConfig string, configType string, expectedError string) + func CompareAdapt(t *testing.T, rawConfig string, adapterName string, expectedResponse string) bool + func CreateTestingTransport() *http.Transport + type Defaults struct + AdminPort int + Certifcates []string + LoadRequestTimeout time.Duration + TestRequestTimeout time.Duration + type Tester struct + Client *http.Client + func NewTester(t *testing.T) *Tester + func (tc *Tester) AssertDeleteResponse(requestURI string, expectedStatusCode int, expectedBody string) (*http.Response, string) + func (tc *Tester) AssertGetResponse(requestURI string, expectedStatusCode int, expectedBody string) (*http.Response, string) + func (tc *Tester) AssertPatchResponseBody(requestURI string, requestHeaders []string, requestBody *bytes.Buffer, ...) (*http.Response, string) + func (tc *Tester) AssertPostResponseBody(requestURI string, requestHeaders []string, requestBody *bytes.Buffer, ...) (*http.Response, string) + func (tc *Tester) AssertPutResponseBody(requestURI string, requestHeaders []string, requestBody *bytes.Buffer, ...) (*http.Response, string) + func (tc *Tester) AssertRedirect(requestURI string, expectedToLocation string, expectedStatusCode int) *http.Response + func (tc *Tester) AssertResponse(req *http.Request, expectedStatusCode int, expectedBody string) (*http.Response, string) + func (tc *Tester) AssertResponseCode(req *http.Request, expectedStatusCode int) *http.Response + func (tc *Tester) InitServer(rawConfig string, configType string)