test

package
v0.134.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccTestsUser = "yc.terraform.acctest-sa"
)

Variables

View Source
var AccEnvVars = []string{
	"YC_FOLDER_ID",
	"YC_ZONE",
	"YC_LOGIN",
	"YC_LOGIN_2",
	"YC_STORAGE_ENDPOINT_URL",
	"YC_MESSAGE_QUEUE_ENDPOINT",
}
View Source
var AccForAuthEnvVars = []string{
	"YC_TOKEN",
	"YC_SERVICE_ACCOUNT_KEY_FILE",
}
View Source
var AccProvider provider.Provider
View Source
var AccProviderFactories map[string]func() (tfprotov6.ProviderServer, error)

Functions

func AccCheckCreatedAtAttr added in v0.119.0

func AccCheckCreatedAtAttr(resourceName string) resource.TestCheckFunc

func AccCheckResourceAttrWithValueFactory added in v0.131.0

func AccCheckResourceAttrWithValueFactory(name, key string, valueFactory func() string) resource.TestCheckFunc

func AccCheckResourceIDField added in v0.124.0

func AccCheckResourceIDField(resourceName string, idFieldName string) resource.TestCheckFunc

func AccPreCheck added in v0.119.0

func AccPreCheck(t *testing.T)

func ConfigForSweepers added in v0.119.0

func ConfigForSweepers() (*provider_config.Config, error)

func DebugLog added in v0.119.0

func DebugLog(format string, v ...interface{})

func ErrorMessage added in v0.124.0

func ErrorMessage(err error) string

func GetBillingAccountId added in v0.119.0

func GetBillingAccountId() string

func GetExampleCloudID added in v0.119.0

func GetExampleCloudID() string

func GetExampleCloudName added in v0.119.0

func GetExampleCloudName() string

func GetExampleFolderID added in v0.119.0

func GetExampleFolderID() string

func GetExampleFolderName added in v0.119.0

func GetExampleFolderName() string

func GetExampleOrganizationID added in v0.119.0

func GetExampleOrganizationID() string

func GetExampleRoleID added in v0.119.0

func GetExampleRoleID() string

func GetExampleStorageEndpoint added in v0.119.0

func GetExampleStorageEndpoint() string

func GetExampleUserID1 added in v0.119.0

func GetExampleUserID1() string

func GetExampleUserID2 added in v0.119.0

func GetExampleUserID2() string

func GetExampleUserLogin1 added in v0.119.0

func GetExampleUserLogin1() string

func GetExampleUserLogin2 added in v0.119.0

func GetExampleUserLogin2() string

func HandleSweepOperation added in v0.119.0

func HandleSweepOperation(ctx context.Context, conf *provider_config.Config, op *operation.Operation, err error) error

func ImportIamBindingIdFunc added in v0.119.0

func ImportIamBindingIdFunc(resourceName, role string) func(*terraform.State) (string, error)

func IsTestResourceName added in v0.119.0

func IsTestResourceName(name string) bool

func NewFrameworkProviderServer added in v0.100.0

func NewFrameworkProviderServer(ctx context.Context) (func() tfprotov6.ProviderServer, error)

func ResourceName added in v0.119.0

func ResourceName(length int) string

ResourceName - return randomized name for resource with common prefix

func SweepWithRetry added in v0.119.0

func SweepWithRetry(sf sweeperFunc, conf *provider_config.Config, resource, id string) bool

Types

This section is empty.

Directories

Path Synopsis
compute
iam
mdb

Jump to

Keyboard shortcuts

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