Documentation
¶
Index ¶
- func CaptureResourceID(resourceName string, id *string) resource.TestCheckFunc
- func NewBlockName(resource string) string
- func NewResourceName() string
- func NewTestClient() (*oxide.Client, error)
- func NextSubnetCIDR(t *testing.T) string
- func ParsedAccConfig(config any, tpl string) (string, error)
- func PreCheck(t *testing.T)
- func ProviderFactories() map[string]func() (tfprotov6.ProviderServer, error)
- func SiloDNSName() string
- func VerifyResourceIDChanged(resourceName string, previousID *string) resource.TestCheckFunc
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 NewResourceName ¶
func NewResourceName() string
func NewTestClient ¶
func NextSubnetCIDR ¶
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 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.
Click to show internal directories.
Click to hide internal directories.