helpers

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpTestFiles

func CleanUpTestFiles(t *testing.T, files []string, workDir string) error

Cleans up the common files created by terraform during init, plan, and apply

func CreateAzureProviderFile

func CreateAzureProviderFile(providerFilePath string, t *testing.T) error

Creates the required provider file on the system

func CreateAzureResourceGroup

func CreateAzureResourceGroup(t *testing.T, subscriptionID string, resourceGroup string, location *string) error

func CreateFile

func CreateFile(path string, content string) error

Creates a file if does not already exist on the specified path

func DeleteAzureResourceGroup

func DeleteAzureResourceGroup(t *testing.T, subscriptionID string, resourceGroup string) error

func GetMapKeys

func GetMapKeys(t *testing.T, terraformMap map[string]any) []string

Gets the keys of a terraform map and returns a slice of strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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