testutil

package
v0.0.0-...-3dd6856 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyECS

type DummyECS struct {
	Requests     chan *http.Request
	TaskListJSON string
	MetadataJSON string
}

DummyECS allows tests to mock a ECS's responses

func NewDummyECS

func NewDummyECS() (*DummyECS, error)

NewDummyECS create a mock of the ECS api

func (*DummyECS) ServeHTTP

func (d *DummyECS) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles the http requests

func (*DummyECS) Start

func (d *DummyECS) Start() (*httptest.Server, int, error)

Start starts the HTTP server

Jump to

Keyboard shortcuts

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