test

package
v0.0.0-...-8bb9369 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	// contains filtered or unexported fields
}

func StartHTTP

func StartHTTP(domain, token, authz string) (*HTTPServer, error)

StartHTTP starts a new HTTP server to use in tests.

func (*HTTPServer) Stop

func (h *HTTPServer) Stop()

Stop stops the HTTP server.

type PebbleServer

type PebbleServer struct {
	// contains filtered or unexported fields
}

func StartPebble

func StartPebble() (*PebbleServer, error)

StartPebble starts a new Pebble server to use in tests.

func (*PebbleServer) Client

func (s *PebbleServer) Client() *http.Client

Client returns the http client configured to connect to the Pebble server with TLS and self-signed, trusted certificates.

func (*PebbleServer) ServerURL

func (s *PebbleServer) ServerURL() string

ServerURL returns the https url to the test server.

func (*PebbleServer) Stop

func (s *PebbleServer) Stop()

Stop stops the Pebble server.

Jump to

Keyboard shortcuts

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