test

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Credentials = auth.StaticCredentialsSource(map[svchost.Hostname]map[string]interface{}{
		regHost: {"token": testCred},
	})
)

Functions

func Disco

func Disco(s *httptest.Server) *disco.Disco

Disco return a *disco.Disco mapping registry.terraform.io, localhost, localhost.localdomain, and example.com to the test server.

func Registry

func Registry() *httptest.Server

NewRegistry return an httptest server that mocks out some registry functionality.

Types

This section is empty.

Jump to

Keyboard shortcuts

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