acctest

package
v0.32.7 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestAccSecretFileId      = "2WnPVgLGSZW6KbApZuxeaw"
	TestAccDefaultUsageScope = `
	usage_scope {
		environment_filter_type = "NON_PRODUCTION_ENVIRONMENTS"
	}
`
)

Variables

View Source
var ProviderFactories = map[string]func() (*schema.Provider, error){
	"harness": func() (*schema.Provider, error) {
		return provider.Provider("dev")(), nil
	},
}

providerFactories are used to instantiate a provider during acceptance testing. The factory function will be invoked for every Terraform CLI command executed to create a provider server to which the CLI can reattach.

View Source
var TestAccProvider *schema.Provider
View Source
var TestAccProviderConfigure sync.Once

Functions

func AccountFilterImportStateIdFunc added in v0.19.2

func AccountFilterImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func AccountLevelResourceImportStateIdFunc added in v0.14.5

func AccountLevelResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func DBInstanceResourceImportStateIdFunc added in v0.31.8

func DBInstanceResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func EnvRelatedResourceImportStateIdFunc added in v0.6.11

func EnvRelatedResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func GitopsAgentAccountLevelResourceImportStateIdFunc added in v0.7.0

func GitopsAgentAccountLevelResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func GitopsAgentOrgLevelResourceImportStateIdFunc added in v0.29.0

func GitopsAgentOrgLevelResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func GitopsAgentProjectLevelResourceImportStateIdFunc added in v0.7.0

func GitopsAgentProjectLevelResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func GitopsAppProjectMappingResourceImportStateIdFunc added in v0.32.4

func GitopsAppProjectMappingResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

Import of GitopsAppProjectMapping resource is always on project level terraform import harness_platform_gitops_app_project_mapping.example org_id/projec_id/scope_prefixed_agent_id/argo_proj_name

func GitopsProjectImportStateIdFunc added in v0.31.8

func GitopsProjectImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func GitopsWebhookImportStateIdFunc added in v0.32.3

func GitopsWebhookImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func OrgFilterImportStateIdFunc added in v0.7.0

func OrgFilterImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func OrgResourceImportStateIdFunc added in v0.2.2

func OrgResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func OverridesV1ResourceImportStateIdFunc added in v0.23.2

func OverridesV1ResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func PipelineResourceImportStateIdFunc added in v0.3.0

func PipelineResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func ProjectFilterImportStateIdFunc added in v0.7.0

func ProjectFilterImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func ProjectResourceImportStateIdFunc added in v0.2.2

func ProjectResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func ProjectResourceImportStateIdGitFunc added in v0.31.8

func ProjectResourceImportStateIdGitFunc(resourceName string) resource.ImportStateIdFunc

func RepoResourceImportStateIdFunc added in v0.30.5

func RepoResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func RepoRuleProjectLevelResourceImportStateIdFunc added in v0.30.5

func RepoRuleProjectLevelResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func TestAccConfigureProvider

func TestAccConfigureProvider()

func TestAccGetApiClientFromProvider

func TestAccGetApiClientFromProvider() *internal.Session

func TestAccGetApplication

func TestAccGetApplication(resourceName string, state *terraform.State) (*graphql.Application, error)

func TestAccGetClientWithContext added in v0.8.0

func TestAccGetClientWithContext() (*openapi_client_nextgen.APIClient, context.Context)

func TestAccGetCodeClientWithContext added in v0.30.5

func TestAccGetCodeClientWithContext() (*code.APIClient, context.Context)

func TestAccGetDBOpsClientWithContext added in v0.31.8

func TestAccGetDBOpsClientWithContext() (*dbops.APIClient, context.Context)

func TestAccGetPlatformClientWithContext added in v0.2.12

func TestAccGetPlatformClientWithContext() (*nextgen.APIClient, context.Context)

func TestAccGetPolicyManagementClient added in v0.10.0

func TestAccGetPolicyManagementClient() *policymgmt.APIClient

func TestAccGetResource

func TestAccGetResource(resourceName string, state *terraform.State) *terraform.ResourceState

func TestAccPreCheck

func TestAccPreCheck(t *testing.T)

func TestAccResourceAwsCloudProvider

func TestAccResourceAwsCloudProvider(name string) string

func TestAccResourceGitConnector_default

func TestAccResourceGitConnector_default(name string) string

func TestAccResourceInfraDefEnvironment

func TestAccResourceInfraDefEnvironment(name string) string

func UserResourceImportStateIdFunc added in v0.14.6

func UserResourceImportStateIdFunc(resourceName string) resource.ImportStateIdFunc

func UserResourceImportStateIdFuncAccountLevel added in v0.14.6

func UserResourceImportStateIdFuncAccountLevel(resourceName string) resource.ImportStateIdFunc

func UserResourceImportStateIdFuncOrgLevel added in v0.14.6

func UserResourceImportStateIdFuncOrgLevel(resourceName string) resource.ImportStateIdFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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