-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathenvironment_variables.go
More file actions
45 lines (40 loc) · 2.07 KB
/
Copy pathenvironment_variables.go
File metadata and controls
45 lines (40 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0
package resource
// Environment variables for acceptance testing. Additional environment
// variable constants can be found in the internal/plugintest package.
const (
// Environment variable to enable acceptance tests using this package's
// ParallelTest and Test functions whose TestCase does not enable the
// IsUnitTest field. Defaults to disabled, in which each test will call
// (*testing.T).Skip(). Can be set to any value to enable acceptance tests,
// however "1" is conventional.
EnvTfAcc = "TF_ACC"
// Environment variable with hostname for the provider under acceptance
// test. The hostname is the first portion of the full provider source
// address, such as "example.com" in example.com/myorg/myprovider. Defaults
// to "registry.terraform.io".
//
// Only required if any Terraform configuration set via the TestStep
// type Config field includes a provider source, such as the terraform
// configuration block required_providers attribute.
EnvTfAccProviderHost = "TF_ACC_PROVIDER_HOST"
// Environment variable with namespace for the provider under acceptance
// test. The namespace is the second portion of the full provider source
// address, such as "myorg" in registry.terraform.io/myorg/myprovider.
// Defaults to "-" for Terraform 0.12-0.13 compatibility and "hashicorp".
//
// Only required if any Terraform configuration set via the TestStep
// type Config field includes a provider source, such as the terraform
// configuration block required_providers attribute.
EnvTfAccProviderNamespace = "TF_ACC_PROVIDER_NAMESPACE"
// This is an undocumented compatibility flag. When this is set, a
// `Config`-mode test step will invoke a refresh before successful
// completion.
//
// This is a compatibility measure for test cases that have different --
// but semantically-equal -- state representations in their test steps.
// When comparing two states, the testing framework is not aware of
// semantic equality or set equality.
EnvTfAccRefreshAfterApply = "TF_ACC_REFRESH_AFTER_APPLY"
)