acctest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provider *schema.Provider

Provider is the "main" provider instance

This Provider can be used in testing code for API calls without requiring the use of saving and referencing specific ProviderFactories instances.

PreCheck(t) must be called before using this provider instance.

View Source
var ProviderFactories map[string]func() (*schema.Provider, error)

ProviderFactories is a static map containing only the main provider instance

Use other ProviderFactories functions, such as FactoriesAlternate, for tests requiring special provider configurations.

Functions

func ErrorCheck

func ErrorCheck(t *testing.T) resource.ErrorCheckFunc

func PreCheck

func PreCheck(t *testing.T)

func PreCheckEnvironment

func PreCheckEnvironment(t *testing.T)

func PreCheckEnvironmentAndOrganisation

func PreCheckEnvironmentAndOrganisation(t *testing.T)

func ResourceNameGen

func ResourceNameGen() string

func ResourceNameGenDefaultPopulation

func ResourceNameGenDefaultPopulation() string

func ResourceNameGenEnvironment

func ResourceNameGenEnvironment() string

func TestAccCheckEnvironmentDestroy

func TestAccCheckEnvironmentDestroy(s *terraform.State) error

func TestClient

func TestClient(ctx context.Context) (*client.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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