testutils

package
v0.0.0-...-8fb3fdf Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
	"meraki": providerserver.NewProtocol6WithError(p.New("test")()),
}

TestAccProtoV6ProviderFactories initializes the provider for tests.

Functions

func DataSourceSchemaModelConsistency

func DataSourceSchemaModelConsistency(schemaAttributes map[string]schema.Attribute, modelStruct interface{}, entityType string) error

DataSourceSchemaModelConsistency performs schema-model validation for data sources.

func ResourceSchemaModelConsistency

func ResourceSchemaModelConsistency(schemaAttributes map[string]schema.Attribute, modelStruct interface{}, entityType string) error

ResourceSchemaModelConsistency performs schema-model validation for resources.

func ResourceTestCheck

func ResourceTestCheck(resourceName string, expectedAttrs map[string]string) resource.TestCheckFunc

ResourceTestCheck validates a resource's attributes.

func TestAccPreCheck

func TestAccPreCheck(t *testing.T)

TestAccPreCheck ensures all required environment variables are set.

func ValidateDataSourceSchemaModelConsistency

func ValidateDataSourceSchemaModelConsistency(t *testing.T, schemaAttributes map[string]schema.Attribute, modelStruct interface{})

ValidateDataSourceSchemaModelConsistency validates schema-model alignment for a data source.

func ValidateResourceSchemaModelConsistency

func ValidateResourceSchemaModelConsistency(t *testing.T, schemaAttributes map[string]schema.Attribute, modelStruct interface{})

ValidateResourceSchemaModelConsistency validates schema-model alignment for a resource.

Types

This section is empty.

Jump to

Keyboard shortcuts

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