acctest

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 StringSliceToTerraformString

func StringSliceToTerraformString(values []string) string

Convert a string slice to the format used in Terraform files

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 TfKeyValuePairToString added in v0.2.0

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

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