testutils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderConfig = `` /* 299-byte string literal not displayed */

Variables

View Source
var TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
	"dagster": providerserver.NewProtocol6WithError(TestAccProvider),
}

TestAccProtoV6ProviderFactories are used to instantiate a provider during acceptance testing. The factory function will be invoked for every Terraform CLI command executed to create a provider server to which the CLI can reattach.

View Source
var TestAccProvider provider.Provider = dagsterProvider.New()

Functions

func AccTestPreCheck

func AccTestPreCheck(t *testing.T)

AccTestPreCheck is a utility hook, which every test suite will call in order to verify if the necessary provider configurations are passed through the environment variables. https://developer.hashicorp.com/terraform/plugin/testing/acceptance-tests/testcase#precheck

func FetchValueFromState

func FetchValueFromState(resourceName string, attributeName string, target *string) resource.TestCheckFunc

func GetDagsterClientFromEnvVars

func GetDagsterClientFromEnvVars() client.DagsterClient

func MarshalJSONOrPanic

func MarshalJSONOrPanic(input map[string]interface{}) json.RawMessage

func UnmarshalJSONOrPanic

func UnmarshalJSONOrPanic(input json.RawMessage) map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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