test

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockGateServerAuthLoggedOutHandler added in v0.2.0

func MockGateServerAuthLoggedOutHandler(w http.ResponseWriter, r *http.Request)

MockGateServerAuthLoggedOutHandler defines handler for spinnaker /auth/loggedOut endpoint

func MockGateServerReturn200

func MockGateServerReturn200(data string) *httptest.Server

MockGateServerReturn200 creates a HTTP server which returns code 200 and data.

func MockGateServerReturn202

func MockGateServerReturn202(data string) *httptest.Server

MockGateServerReturn202 creates a HTTP server which returns code 202.

func MockGateServerReturn404

func MockGateServerReturn404(data string) *httptest.Server

MockGateServerReturn404 creates a HTTP server which returns code 404 and data.

func MockGateServerReturn500

func MockGateServerReturn500(data string) *httptest.Server

MockGateServerReturn500 creates a HTTP server which returns code 500 and data.

func MockGateapiClient

func MockGateapiClient(gateURL string) *gateclient.GateapiClient

MockGateapiClient creates a basic API client without authentication.

Types

type MockGateServerFunction

type MockGateServerFunction func(string) *httptest.Server

MockGateServerFunction is a handler to a function for Gate server mock

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL