acctest

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIdHcl added in v0.9.0

func AddIdHcl(idKey, id string) string

func ConfigurationPreCheck

func ConfigurationPreCheck(t *testing.T)

Verify that any required environment variables are set before the test begins

func ExpectedDestroyError

func ExpectedDestroyError(resourceType, resourceName string) error

func FloatSliceToStringSlice

func FloatSliceToStringSlice(values []float64) []string

func FloatSliceToTerraformString

func FloatSliceToTerraformString(values []float64) string

Convert a float64 slice to the format used in Terraform files

func GetTransport added in v0.6.0

func GetTransport() *http.Transport

func InterfaceSliceToStringSlice

func InterfaceSliceToStringSlice(values []interface{}) []string

func ObjectSliceOfKvStringsToTerraformString

func ObjectSliceOfKvStringsToTerraformString(keyValue string, values []string) string

Convert a string slice to the format used in Terraform files

func StringSliceToString added in v0.10.0

func StringSliceToString(values []string) string

func StringSliceToTerraformString

func StringSliceToTerraformString(values []string) string

Convert a string slice to the format used in Terraform files

func TestAccessTokenContext added in v0.6.0

func TestAccessTokenContext(accessToken string) context.Context

lintignore:AT008

func TestAttributesMatchBool

func TestAttributesMatchBool(resourceType string, resourceName *string, attributeName string, expected, found bool) error

Test if boolean attributes match

func TestAttributesMatchFloat

func TestAttributesMatchFloat(resourceType string, resourceName *string, attributeName string, expected, found float64) error

Test if float64 attributes match

func TestAttributesMatchFloatSlice

func TestAttributesMatchFloatSlice(resourceType string, resourceName *string, attributeName string, expected, found []float64) error

Test if float slice attributes match

func TestAttributesMatchInt

func TestAttributesMatchInt(resourceType string, resourceName *string, attributeName string, expected, found int64) error

Test if int attributes match

func TestAttributesMatchString

func TestAttributesMatchString(resourceType string, resourceName *string, attributeName, expected, found string) error

Test if string attributes match

func TestAttributesMatchStringPointer

func TestAttributesMatchStringPointer(resourceType string, resourceName *string, attributeName, expected string, found *string) error

Test if expected string matches found string pointer

func TestAttributesMatchStringSlice

func TestAttributesMatchStringSlice(resourceType string, resourceName *string, attributeName string, expected, found []string) error

Test if string slice attributes match

func TestBasicAuthContext

func TestBasicAuthContext() context.Context

func TestClient

func TestClient() *client.APIClient

func TestOauth2Context added in v0.6.0

func TestOauth2Context() context.Context

func TfKeyValuePairToString added in v0.2.0

func TfKeyValuePairToString(key string, value string, addDoubleQuotes bool) string

func VersionAtLeast added in v0.5.0

func VersionAtLeast(minimumVersion version.SupportedVersion) bool

Types

This section is empty.

Directories

Path Synopsis
common

Jump to

Keyboard shortcuts

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