Documentation ¶
Index ¶
- Constants
- func FailIfAllEmpty(t *testing.T, names []string, usageMessage string) (string, string)
- func FailIfEmpty(t *testing.T, name string, usageMessage string) string
- func Require(name string, usageMessage string) (string, error)
- func RequireOneOf(names []string, usageMessage string) (string, string, error)
- func SkipIfAllEmpty(t *testing.T, names []string, usageMessage string) (string, string)
- func SkipIfEmpty(t *testing.T, name string, usageMessage string) string
Constants ¶
View Source
const ( // IonosToken is the environment variable name for the Ionos Cloud API token. IonosToken = "IONOS_TOKEN" // IonosUsername is the environment variable name for the Ionos Cloud API username. IonosUsername = "IONOS_USERNAME" // IonosPassword is the environment variable name for the Ionos Cloud API password. IonosPassword = "IONOS_PASSWORD" // IonosS3AccessKey is the environment variable name for the Ionos Cloud S3 access key. IonosS3AccessKey = "IONOS_S3_ACCESS_KEY" // IonosS3SecretKey is the environment variable name for the Ionos Cloud S3 secret key. IonosS3SecretKey = "IONOS_S3_SECRET_KEY" )
Variables ¶
This section is empty.
Functions ¶
func FailIfAllEmpty ¶
FailIfAllEmpty verifies that at least one environment variable is non-empty or fails the test.
If at least one environment variable is non-empty, returns the first name and value.
func FailIfEmpty ¶
FailIfEmpty verifies that an environment variable is non-empty or fails the test.
For acceptance tests, this function must be used outside PreCheck functions to set values for configurations.
func RequireOneOf ¶
RequireOneOf verifies that at least one environment variable is non-empty or returns an error.
func SkipIfAllEmpty ¶
SkipIfAllEmpty verifies that at least one environment variable is non-empty or skips the test.
If at least one environment variable is non-empty, returns the first name and value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.