Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestResource ¶
type TestResource interface {
// Exists should check whether the resource exists within the remote API
// returning true if the resource exists, false if it doesn't exist and an
// error if something went wrong when checking for the existence of the resource.
Exists(ctx context.Context, client any, state *terraform.InstanceState) (*bool, error)
}
TestResource is an interface which should be implemented by all Terraform Resources for testing purposes - this allows a consistent approach to testing Resources.
type TestResourceVerifyingRemoved ¶
type TestResourceVerifyingRemoved interface {
TestResource
// Destroy manually destroys this resource
Destroy(ctx context.Context, client any, state *terraform.InstanceState) (*bool, error)
}
TestResourceVerifyingRemoved is an interface which extends TestResource for resources which also need to verify they can be manually removed (for testing destroy operations)
Click to show internal directories.
Click to hide internal directories.