acctest

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2016 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package acctest contains for Terraform Acceptance Tests

Index

Constants

View Source
const (
	// CharSetAlphaNum is the alphanumeric character set for use with
	// RandStringFromCharSet
	CharSetAlphaNum = "abcdefghijklmnopqrstuvwxyz012346789"

	// CharSetAlpha is the alphabetical character set for use with
	// RandStringFromCharSet
	CharSetAlpha = "abcdefghijklmnopqrstuvwxyz"
)
View Source
const SkipRemoteTestsEnvVar = "TF_SKIP_REMOTE_TESTS"

SkipRemoteTestsEnvVar is an environment variable that can be set by a user running the tests in an environment with limited network connectivity. By default, tests requiring internet connectivity make an effort to skip if no internet is available, but in some cases the smoke test will pass even though the test should still be skipped.

Variables

This section is empty.

Functions

func RandInt

func RandInt() int

RandInt generates a random integer

func RandString

func RandString(strlen int) string

RandString generates a random alphanumeric string of the length specified

func RandStringFromCharSet

func RandStringFromCharSet(strlen int, charSet string) string

RandStringFromCharSet generates a random string by selecting characters from the charset provided

func RemoteTestPrecheck added in v0.6.10

func RemoteTestPrecheck(t *testing.T)

RemoteTestPrecheck is meant to be run by any unit test that requires outbound internet connectivity. The test will be skipped if it's unavailable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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