sharedtest

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureResourceID

func CaptureResourceID(
	resourceName string,
	id *string,
) resource.TestCheckFunc

CaptureResourceID captures the resource ID for later comparison. Use with resource.TestCheckResourceAttrPtr to verify updates don't recreate resources.

func NewBlockName

func NewBlockName(resource string) string

func NewResourceName

func NewResourceName() string

func NewTestClient

func NewTestClient() (*oxide.Client, error)

func NextSubnetCIDR

func NextSubnetCIDR(t *testing.T) string

NextSubnetCIDR returns sequential /24 subnet CIDRs from the 10.k.0.0/16 range, where k is a hash of the test name. TODO: extend if we ever need more than 256 subnets in tests.

func ParsedAccConfig

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

func PreCheck

func PreCheck(t *testing.T)

func ProviderFactories

func ProviderFactories() map[string]func() (tfprotov6.ProviderServer, error)

func SiloDNSName

func SiloDNSName() string

func VerifyResourceIDChanged

func VerifyResourceIDChanged(
	resourceName string,
	previousID *string,
) resource.TestCheckFunc

VerifyResourceIDChanged verifies the resource ID is different from the previously captured ID. Use to confirm a resource was replaced (destroyed and recreated).

Types

This section is empty.

Jump to

Keyboard shortcuts

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