Documentation
¶
Index ¶
- func CheckSSHKeyDestroy(tt *acctest.TestTools) resource.TestCheckFunc
- func CheckSSHKeyExists(tt *acctest.TestTools, n string) resource.TestCheckFunc
- func FakeSideProjectProviders(ctx context.Context, tt *acctest.TestTools, project *account.Project, ...) map[string]func() (*schema.Provider, error)
- type FakeSideProjectTerminateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSSHKeyDestroy ¶
func CheckSSHKeyDestroy(tt *acctest.TestTools) resource.TestCheckFunc
func CheckSSHKeyExists ¶
func CheckSSHKeyExists(tt *acctest.TestTools, n string) resource.TestCheckFunc
func FakeSideProjectProviders ¶
func FakeSideProjectProviders(ctx context.Context, tt *acctest.TestTools, project *account.Project, iamAPIKey *iamSDK.APIKey) map[string]func() (*schema.Provider, error)
FakeSideProjectProviders creates a new provider alias "side" with a new Config that will use the given project and API key as default profile configuration.
This is useful to test resources that need to create resources in another project.
Types ¶
type FakeSideProjectTerminateFunc ¶
type FakeSideProjectTerminateFunc func() error
func CreateFakeIAMManager ¶
func CreateFakeIAMManager(tt *acctest.TestTools) (*account.Project, *iamSDK.APIKey, FakeSideProjectTerminateFunc, error)
CreateFakeIAMManager creates a temporary project with a temporary IAM application and policy manager.
The returned function is a cleanup function that should be called when to delete the project.
func CreateFakeSideProject ¶
func CreateFakeSideProject(tt *acctest.TestTools) (*account.Project, *iamSDK.APIKey, FakeSideProjectTerminateFunc, error)
CreateFakeSideProject creates a temporary project with a temporary IAM application and policy.
The returned function is a cleanup function that should be called when to delete the project.
Click to show internal directories.
Click to hide internal directories.