testutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// providerConfig is a shared configuration to combine with the actual test configuration so the Stytch client is
	// properly configured. The tester should set the STYTCH_ environment variables for the workspace key and secret to
	// allow the tests to run properly.
	ProviderConfig = `provider "stytch" {}`
)

Variables

View Source
var B2BProjectConfig = `
resource "stytch_project" "project" {
  name     = "test-b2b"
  vertical = "B2B"
}`
View Source
var ConsumerProjectConfig = `
resource "stytch_project" "project" {
  name     = "test"
  vertical = "CONSUMER"
}`
View Source
var TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
	"stytch": providerserver.NewProtocol6WithError(provider.New("test")()),
}

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.

Functions

This section is empty.

Types

type ErrorCase added in v0.0.5

type ErrorCase struct {
	Name   string
	Config string
	Error  *regexp.Regexp
}

func (*ErrorCase) AssertAnyError added in v0.0.5

func (e *ErrorCase) AssertAnyError(t *testing.T)

type TestCase

type TestCase struct {
	Name   string
	Config string
	Checks []resource.TestCheckFunc
}

Jump to

Keyboard shortcuts

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