acctest

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BloxOneClient will be used to do verification tests
	BloxOneClient *bloxoneclient.APIClient

	// ProtoV6ProviderFactories are used to instantiate a provider during
	// acceptance testing. The factory function will be invoked for every Terraform
	// CLI command executed to create a provider server to which the CLI can
	// reattach.
	ProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
		"bloxone": providerserver.NewProtocol6WithError(provider.New("test", "test")()),
	}
	ProtoV6ProviderFactoriesWithTags = map[string]func() (tfprotov6.ProviderServer, error){
		"bloxone": providerserver.NewProtocol6WithError(provider.NewWithTags(map[string]string{defaultKey: defaultValue})()),
	}
)

Functions

func PreCheck

func PreCheck(t *testing.T)

func RandomIP added in v1.1.0

func RandomIP() string

func RandomName added in v1.0.0

func RandomName() string

func RandomNameWithPrefix

func RandomNameWithPrefix(prefix string) string

RandomNameWithPrefix generates a random name with the given prefix. This is used in the acceptance tests where a unique name is required for the resource.

func TestAccBase_DhcpHosts added in v1.3.0

func TestAccBase_DhcpHosts() string

TestAccBase_DhcpHosts creates a Terraform datasource config that allows you to filter by tags

func VerifyDefaultTag added in v1.3.0

func VerifyDefaultTag(resourceName string) resource.TestCheckFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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