providertest

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IDRegex = regexp.MustCompile(`[\w-]{36}`)

IDRegex expression for Pipeline IDs

Functions

func CheckMultipleErrors

func CheckMultipleErrors(err_strings []string) resource.ErrorCheckFunc

func ComputeImportId

func ComputeImportId(resourceName string) resource.ImportStateIdFunc

func GetCachedConfig

func GetCachedConfig(key string) string

func GetProviderConfig

func GetProviderConfig() string

func GetTestEndpoint

func GetTestEndpoint() string

func NewTestClient

func NewTestClient() client.Client

func ParsedAccConfig

func ParsedAccConfig(config any, tpl string) (string, error)

ParsedAccConfig applies config to tpl for acceptance tests

func SetCachedConfig

func SetCachedConfig(key string, body string) string

func StateDoesNotHaveFields

func StateDoesNotHaveFields(resourceName string, fields []string) resource.TestCheckFunc

func StateHasExpectedValues

func StateHasExpectedValues(resourceName string, expected map[string]any) resource.TestCheckFunc

Given a string map, compare the expected values for those in the state. Lookup syntax is supported for map values, e.g "#mezmo_stringify_processor.my_processor.id"

func TestDeletePipelineManually

func TestDeletePipelineManually(resourceName string) resource.TestCheckFunc

func TestDeletePipelineNodeManually

func TestDeletePipelineNodeManually(pipelineResourceName string, resourceName string) resource.TestCheckFunc

func TestPreCheck

func TestPreCheck(t *testing.T)

func ValidateUserConfig

func ValidateUserConfig(got, want map[string]any) error

Validate that UserConfig A and B are equal

Types

This section is empty.

Jump to

Keyboard shortcuts

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