Versions in this module Expand all Collapse all v1 v1.13.3 Jan 25, 2017 Changes in this version + var InvalidTokenData = map[string]interface + var MockCompleteEnvVars = helpers.EnvVars + var ValidTokenData = map[string]interface + func CreateExternalServer(t *testing.T, test *BasicProxyTest) *httptest.Server + func NewTestRequest(method, path string, body []byte) (*httptest.ResponseRecorder, *http.Request) + func PrepareExternalServerCall(t *testing.T, c *controllers.SecureContext, testServer *httptest.Server, ...) (*httptest.ResponseRecorder, *http.Request, *web.Router) + func VerifyExternalCallResponse(t *testing.T, response *httptest.ResponseRecorder, test *BasicProxyTest) + type BasicConsoleUnitTest struct + Code int + EnvVars helpers.EnvVars + Location string + SessionData map[string]interface{} + TestName string + type BasicProxyTest struct + ExpectedPath string + RequestBody []byte + RequestMethod string + RequestPath string + Response string + ResponseCode int + type BasicSecureTest struct + ExpectedCode int + ExpectedLocation string + ExpectedResponse string + type MockSessionStore struct + Options *sessions.Options + Session *sessions.Session + func CreateRouterWithMockSession(sessionData map[string]interface{}, envVars helpers.EnvVars) (*web.Router, *MockSessionStore) + func (store *MockSessionStore) ResetSessionData(data map[string]interface{}, sessionName string) + func (store MockSessionStore) Get(r *http.Request, name string) (*sessions.Session, error) + func (store MockSessionStore) New(r *http.Request, name string) (*sessions.Session, error) + func (store MockSessionStore) Save(r *http.Request, w http.ResponseWriter, s *sessions.Session) error