test

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WithModuleLocationInBody sets to return the module's location in the response body
	WithModuleLocationInBody uint8 = iota
	// WithModuleLocationInHeader sets to return the module's location in the response header
	WithModuleLocationInHeader
)

Variables

This section is empty.

Functions

func Disco

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

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

func Registry

func Registry(flags ...uint8) *httptest.Server

Registry returns an httptest server that mocks out some registry functionality.

func RegistryRetryableErrorsServer

func RegistryRetryableErrorsServer() *httptest.Server

RegistryRetryableErrorsServer returns an httptest server that mocks out the registry API to return 502 errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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