authtest

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 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 Server

type Server struct {
	*httptest.Server
	// contains filtered or unexported fields
}

Server is an extension of httptest.Server that uses our own CA

func NewServer

func NewServer(handle http.Handler, t *testing.T) *Server

NewServer is a passthrough wrapper for httptest.NewServer. It does not use the CA at all. This provided only for debugging purposes.

func NewTLSServer

func NewTLSServer(handle http.Handler, t *testing.T) *Server

NewTLSServer Wraps httptest.NewTLSServer, injecting our CA and TLS config

func (*Server) Client

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

Client wraps httptest.Server.Client(), injecting our CA and client cert

Jump to

Keyboard shortcuts

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