Documentation ¶
Index ¶
- func CheckNestedKeyExistsWithValue(tfNode string, propertyName string, propertyValue string) resource.TestCheckFunc
- func CheckPipelineCheckDestroyed(resourceType string) resource.TestCheckFunc
- func CheckPipelineCheckExistsWithName(tfNode string, expectedName string) resource.TestCheckFunc
- func CheckProjectDestroyed(s *terraform.State) error
- func CheckProjectExists(expectedName string) resource.TestCheckFunc
- func CheckServiceEndpointDestroyed(resourceType string) resource.TestCheckFunc
- func CheckServiceEndpointExistsWithName(tfNode string, expectedName string) resource.TestCheckFunc
- func ComputeProjectQualifiedResourceImportID(resourceNode string) resource.ImportStateIdFunc
- func GenerateResourceName() string
- func GetProvider() *schema.Provider
- func GetProviderFactories() map[string]func() (*schema.Provider, error)
- func GetProviders() map[string]*schema.Provider
- func HclAgentPoolDataSource() string
- func HclAgentPoolResource(poolName string) string
- func HclAgentPoolResourceAppendPoolNameToResourceName(poolName string) string
- func HclAgentPoolsDataSource() string
- func HclAgentQueueDataSource(projectName, queueName string) string
- func HclAgentQueueResource(projectName, poolName string) string
- func HclBuildDefinitionDataSource(path string) string
- func HclBuildDefinitionResource(buildDefinitionName string, buildPath string, repoType string, repoID string, ...) string
- func HclBuildDefinitionResourceBitbucket(projectName string, buildDefinitionName string, buildPath string, ...) string
- func HclBuildDefinitionResourceGitHub(projectName string, buildDefinitionName string, buildPath string) string
- func HclBuildDefinitionResourceTfsGit(projectName string, gitRepoName string, buildDefinitionName string, ...) string
- func HclBuildDefinitionResourceWithProject(projectName string, buildDefinitionName string, buildPath string, ...) string
- func HclBuildDefinitionWithVariables(varValue, secretVarValue, name string) string
- func HclBuildFolder(projectName string, path string, description string) string
- func HclDefinitionResourceAuthorization(resourceID, definitionID, resourceType string, authorized bool) string
- func HclEnvironmentResource(projectName string, environmentName string) string
- func HclEnvironmentResourceKubernetes(projectName string, environmentName string, serviceEndpointName string, ...) string
- func HclForkedGitRepoResource(projectName string, gitRepoName string, gitForkedRepoName string, ...) string
- func HclGitPermissions(projectName string) string
- func HclGitPermissionsForRepository(projectName string, gitRepoName string) string
- func HclGitRepoFileResource(projectName, gitRepoName, initType, branch, file, content string) string
- func HclGitRepoResource(projectName string, gitRepoName string, initType string) string
- func HclGroupDataSource(projectName string, groupName string) string
- func HclGroupEntitlementResource(displayName string) string
- func HclGroupEntitlementResourceAAD(originId string) string
- func HclGroupMembershipDependencies(projectName, groupName, userPrincipalName string) string
- func HclGroupMembershipResource(projectName, groupName, userPrincipalName string) string
- func HclGroupResource(groupResourceName, projectName, groupName string) string
- func HclProjectFeatures(projectName string, featureStateTestplans string, featureStateArtifacts string) string
- func HclProjectGitRepoImportPrivate(projectName, gitRepoName, gitImportRepoName, serviceEndpointName string) string
- func HclProjectGitRepositories(projectName string, gitRepoName string) string
- func HclProjectGitRepository(projectName string, gitRepoName string) string
- func HclProjectGitRepositoryImport(gitRepoName string, projectName string) string
- func HclProjectPermissions(projectName string) string
- func HclProjectPipelineSettings(projectName string, ...) string
- func HclProjectResource(projectName string) string
- func HclProjectResourceWithFeature(projectName string, featureStateTestplans string, featureStateArtifacts string) string
- func HclProjectsDataSource(projectName string) string
- func HclProjectsDataSourceWithStateAndInvalidName() string
- func HclResourceAuthorization(resourceID string, authorized bool) string
- func HclServiceEndpointAzureCRResource(projectName string, serviceEndpointName string) string
- func HclServiceEndpointAzureRMAutomaticResourceWithProject(projectName string, serviceEndpointName string, ...) string
- func HclServiceEndpointAzureRMDataSourceWithServiceEndpointID() string
- func HclServiceEndpointAzureRMDataSourceWithServiceEndpointName(serviceEndpointName string) string
- func HclServiceEndpointAzureRMNoKeyResource(projectName string, serviceEndpointName string, serviceprincipalid string, ...) string
- func HclServiceEndpointAzureRMResource(projectName string, serviceEndpointName string, serviceprincipalid string, ...) string
- func HclServiceEndpointAzureRMResourceWithMG(projectName string, serviceEndpointName string, serviceprincipalid string, ...) string
- func HclServiceEndpointAzureRMResourceWithValidate(projectName string, serviceEndpointName string, serviceprincipalid string, ...) string
- func HclServiceEndpointDockerRegistryResource(projectName string, serviceEndpointName string) string
- func HclServiceEndpointGenericResource(projectName string, serviceEndpointName string, serverUrl string, ...) string
- func HclServiceEndpointGitHubDataSourceWithServiceEndpointID() string
- func HclServiceEndpointGitHubDataSourceWithServiceEndpointName(serviceEndpointName string) string
- func HclServiceEndpointGitHubEnterpriseResource(projectName string, serviceEndpointName string) string
- func HclServiceEndpointGitHubResource(projectName string, serviceEndpointName string) string
- func HclServiceEndpointKubernetesResource(projectName string, serviceEndpointName string, authorizationType string) string
- func HclServiceEndpointRunPipelineResource(serviceEndpointName string, accessToken string, description string) string
- func HclServiceEndpointRunPipelineResourceSimple(serviceEndpointName string) string
- func HclServiceEndpointServiceFabricResource(projectName string, serviceEndpointName string, authorizationType string) string
- func HclServicehookStorageQeueuePipelinesResourceWithStageEvent(projectName, accountKey, queueName, stateFilter, resultFilter string) string
- func HclServicehookStorageQeueuePipelinesResourceWithoutEventConfig(projectName, accountKey, queueName, eventType string) string
- func HclTeamConfiguration(projectName string, teamName string, teamDescription string, ...) string
- func HclUserEntitlementResource(principalName string) string
- func HclVariableGroupDataSource() string
- func HclVariableGroupResource(variableGroupName string, allowAccess bool) string
- func HclVariableGroupResourceKeyVault(variableGroupName string, allowAccess bool, keyVaultName string) string
- func HclVariableGroupResourceKeyVaultWithProject(projectName string, variableGroupName string, allowAccess bool, ...) string
- func HclVariableGroupResourceNoSecretsWithProject(projectName string, variableGroupName string, allowAccess bool) string
- func HclVariableGroupResourceWithProject(projectName string, variableGroupName string, allowAccess bool) string
- func PreCheck(t *testing.T, additionalEnvVars *[]string)
- func RequiresImportError(resourceName string) *regexp.Regexp
- func RunTestsInSequence(t *testing.T, tests map[string]map[string]func(t *testing.T))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNestedKeyExistsWithValue ¶
func CheckNestedKeyExistsWithValue(tfNode string, propertyName string, propertyValue string) resource.TestCheckFunc
CheckNestedKeyExistsWithValue checks if a property exists with a certain value in an instance state
func CheckPipelineCheckDestroyed ¶
func CheckPipelineCheckDestroyed(resourceType string) resource.TestCheckFunc
CheckPipelineCheckDestroyed verifies that all checks of the given type in the state are destroyed. This will be invoked *after* terraform destroys the resource but *before* the state is wiped clean.
func CheckPipelineCheckExistsWithName ¶
func CheckPipelineCheckExistsWithName(tfNode string, expectedName string) resource.TestCheckFunc
CheckServiceEndpointExistsWithName verifies that a service endpoint of a particular type exists in the state, and that it has the expected name when compared against the data in Azure DevOps.
func CheckProjectDestroyed ¶
CheckProjectDestroyed verifies that all projects referenced in the state are destroyed. This will be invoked *after* terraform destroys the resource but *before* the state is wiped clean.
func CheckProjectExists ¶
func CheckProjectExists(expectedName string) resource.TestCheckFunc
CheckProjectExists Given the name of an AzDO project, this will return a function that will check whether or not the project (1) exists in the state and (2) exist in AzDO and (3) has the correct name
func CheckServiceEndpointDestroyed ¶
func CheckServiceEndpointDestroyed(resourceType string) resource.TestCheckFunc
CheckServiceEndpointDestroyed verifies that all service endpoints of the given type in the state are destroyed. This will be invoked *after* terraform destroys the resource but *before* the state is wiped clean.
func CheckServiceEndpointExistsWithName ¶
func CheckServiceEndpointExistsWithName(tfNode string, expectedName string) resource.TestCheckFunc
CheckServiceEndpointExistsWithName verifies that a service endpoint of a particular type exists in the state, and that it has the expected name when compared against the data in Azure DevOps.
func ComputeProjectQualifiedResourceImportID ¶
func ComputeProjectQualifiedResourceImportID(resourceNode string) resource.ImportStateIdFunc
ComputeProjectQualifiedResourceImportID returns a function that can be used to construct an import ID of a resource that has an import ID in the following form: <project ID>/<resource ID>
func GenerateResourceName ¶
func GenerateResourceName() string
GenerateResourceName generates a random name with a constant prefix, useful for acceptance tests
func GetProviders ¶
GetProviders returns a map of all providers needed for the project
func HclAgentPoolDataSource ¶
func HclAgentPoolDataSource() string
HclAgentPoolDataSource HCL describing a data source for an AzDO Agent Pool
func HclAgentPoolResource ¶
HclAgentPoolResource HCL describing an AzDO Agent Pool
func HclAgentPoolResourceAppendPoolNameToResourceName ¶
HclAgentPoolResourceAppendPoolNameToResourceName HCL describing an AzDO Agent Pool with agent pool name appended to resource name
func HclAgentPoolsDataSource ¶
func HclAgentPoolsDataSource() string
HclAgentPoolsDataSource HCL describing a data source for an AzDO Agent Pools
func HclAgentQueueDataSource ¶
HclAgentQueueDataSource HCL describing a data source for an AzDO Agent Queue
func HclAgentQueueResource ¶
HclAgentQueueResource HCL describing an AzDO Agent Pool and Agent Queue
func HclBuildDefinitionDataSource ¶
HclBuildDefinitionDataSource HCL describing a data source for an AzDO Variable Group
func HclBuildDefinitionResource ¶
func HclBuildDefinitionResource( buildDefinitionName string, buildPath string, repoType string, repoID string, branchName string, yamlPath string, serviceConnectionID string, ) string
HclBuildDefinitionResource HCL describing an AzDO build definition
func HclBuildDefinitionResourceBitbucket ¶
func HclBuildDefinitionResourceBitbucket(projectName string, buildDefinitionName string, buildPath string, serviceConnectionID string) string
HclBuildDefinitionResourceBitbucket HCL describing an AzDO build definition sourced from Bitbucket
func HclBuildDefinitionResourceGitHub ¶
func HclBuildDefinitionResourceGitHub(projectName string, buildDefinitionName string, buildPath string) string
HclBuildDefinitionResourceGitHub HCL describing an AzDO build definition sourced from GitHub
func HclBuildDefinitionResourceTfsGit ¶
func HclBuildDefinitionResourceTfsGit(projectName string, gitRepoName string, buildDefinitionName string, buildPath string) string
HclBuildDefinitionResourceTfsGit HCL describing an AzDO build definition sourced from AzDo Git Repo
func HclBuildDefinitionResourceWithProject ¶
func HclBuildDefinitionResourceWithProject( projectName string, buildDefinitionName string, buildPath string, repoType string, repoID string, branchName string, yamlPath string, serviceConnectionID string, ) string
HclBuildDefinitionResourceWithProject HCL describing an AzDO build definition and a project
func HclBuildDefinitionWithVariables ¶
HclBuildDefinitionWithVariables A build definition with variables
func HclBuildFolder ¶
HclBuildFolder creates HCL for testing Build Folders
func HclDefinitionResourceAuthorization ¶
func HclDefinitionResourceAuthorization(resourceID, definitionID, resourceType string, authorized bool) string
HclDefinitionResourceAuthorization HCL describing a resource authorization
func HclEnvironmentResource ¶
HclEnvironmentResource HCL describing an AzDO environment resource
func HclEnvironmentResourceKubernetes ¶
func HclEnvironmentResourceKubernetes(projectName string, environmentName string, serviceEndpointName string, resourceName string) string
HclEnvironmentResourceKubernetesResource HCL describing an AzDO environment kubernetes resource
func HclForkedGitRepoResource ¶
func HclForkedGitRepoResource(projectName string, gitRepoName string, gitForkedRepoName string, initType string, forkedInitType string) string
HclForkedGitRepoResource HCL describing an AzDO GIT repository resource
func HclGitPermissions ¶
HclGitPermissions creates HCl for testing to set permissions for a the all Git repositories of AzDO project
func HclGitPermissionsForRepository ¶
HclGitPermissionsForRepository creates HCl for testing to set permissions for a the all Git repositories of AzDO project
func HclGitRepoFileResource ¶
func HclGitRepoFileResource(projectName, gitRepoName, initType, branch, file, content string) string
HclGitRepoFileResource HCl describing a file in an AzDO GIT repository
func HclGitRepoResource ¶
HclGitRepoResource HCL describing an AzDO GIT repository resource
func HclGroupDataSource ¶
HclGroupDataSource HCL describing an AzDO Group Data Source
func HclGroupEntitlementResource ¶
HclGroupEntitlementResource HCL describing an AzDO GroupEntitlement
func HclGroupEntitlementResourceAAD ¶
HclGroupEntitlementResource HCL describing an AzDO GroupEntitlement linked with Azure AD
func HclGroupMembershipDependencies ¶
HclGroupMembershipDependencies all the dependencies needed to configure a group membership
func HclGroupMembershipResource ¶
HclGroupMembershipResource full terraform stanza to standup a group membership
func HclGroupResource ¶
HclGroupResource HCL describing an AzDO group, if the projectName is empty, only a azuredevops_group instance is returned
func HclProjectFeatures ¶
func HclProjectFeatures(projectName string, featureStateTestplans string, featureStateArtifacts string) string
HclProjectFeatures HCL describing an AzDO project including feature setup using azuredevops_git_repositories
func HclProjectGitRepositories ¶
HclProjectGitRepositories HCL describing a multi value data source for AzDO git repositories
func HclProjectGitRepository ¶
HclProjectGitRepository HCL describing a single-value data source for an AzDO git repository
func HclProjectGitRepositoryImport ¶
HclProjectGitRepositoryImport HCL describing a AzDO git repositories
func HclProjectPermissions ¶
HclProjectPermissions creates HCL for testing to set permissions for a AzDO project
func HclProjectPipelineSettings ¶
func HclProjectPipelineSettings(projectName string, enforceJobAuthScope, enforceReferencedRepoScopedToken, enforceSettableVar, publishPipelineMetadata, statusBadgesArePrivate, enforceJobAuthScopeForReleases bool) string
HclProjectFeatures HCL describing an AzDO project including feature setup using azuredevops_git_repositories
func HclProjectResource ¶
HclProjectResource HCL describing an AzDO project
func HclProjectResourceWithFeature ¶
func HclProjectResourceWithFeature(projectName string, featureStateTestplans string, featureStateArtifacts string) string
HclProjectResourceWithFeature HCL describing an AzDO project including internal feature setup
func HclProjectsDataSource ¶
HclProjectsDataSource HCL describing a data source for multiple AzDO projects
func HclProjectsDataSourceWithStateAndInvalidName ¶
func HclProjectsDataSourceWithStateAndInvalidName() string
HclProjectsDataSourceWithStateAndInvalidName creates HCL for a multi value data source for AzDo projects
func HclResourceAuthorization ¶
HclResourceAuthorization HCL describing a resource authorization
func HclServiceEndpointAzureCRResource ¶
HclServiceEndpointAzureCRResource HCL describing an AzDO service endpoint
func HclServiceEndpointAzureRMAutomaticResourceWithProject ¶
func HclServiceEndpointAzureRMAutomaticResourceWithProject(projectName string, serviceEndpointName string, serviceEndpointAuthenticationScheme string, subscriptionId string, subscriptionName string, tenantId string) string
HclServiceEndpointAzureRMAutomaticResourceWithProject HCL describing an AzDO service endpoint
func HclServiceEndpointAzureRMDataSourceWithServiceEndpointID ¶
func HclServiceEndpointAzureRMDataSourceWithServiceEndpointID() string
HclServiceEndpointAzureRMDataSourceWithServiceEndpointID HCL describing a data source for an AzDO service endpoint
func HclServiceEndpointAzureRMDataSourceWithServiceEndpointName ¶
HclServiceEndpointAzureRMDataSourceWithServiceEndpointName HCL describing a data source for an AzDO service endpoint
func HclServiceEndpointAzureRMNoKeyResource ¶
func HclServiceEndpointAzureRMNoKeyResource(projectName string, serviceEndpointName string, serviceprincipalid string, serviceEndpointAuthenticationScheme string) string
HclServiceEndpointAzureRMResource HCL describing an AzDO service endpoint
func HclServiceEndpointAzureRMResource ¶
func HclServiceEndpointAzureRMResource(projectName string, serviceEndpointName string, serviceprincipalid string, serviceprincipalkey string, serviceEndpointAuthenticationScheme string) string
HclServiceEndpointAzureRMResource HCL describing an AzDO service endpoint
func HclServiceEndpointAzureRMResourceWithMG ¶
func HclServiceEndpointAzureRMResourceWithMG(projectName string, serviceEndpointName string, serviceprincipalid string, serviceprincipalkey string) string
HclServiceEndpointAzureRMResourceMG HCL describing an AzDO service endpoint
func HclServiceEndpointDockerRegistryResource ¶
func HclServiceEndpointDockerRegistryResource(projectName string, serviceEndpointName string) string
HclServiceEndpointDockerRegistryResource HCL describing an AzDO service endpoint
func HclServiceEndpointGenericResource ¶
func HclServiceEndpointGenericResource(projectName string, serviceEndpointName string, serverUrl string, username string, password string) string
HclServiceEndpointGenericResource HCL describing an AzDO service endpoint
func HclServiceEndpointGitHubDataSourceWithServiceEndpointID ¶
func HclServiceEndpointGitHubDataSourceWithServiceEndpointID() string
HclServiceEndpointGitHubDataSourceWithServiceEndpointID HCL describing a data source for an AzDO service endpoint
func HclServiceEndpointGitHubDataSourceWithServiceEndpointName ¶
HclServiceEndpointGitHubDataSourceWithServiceEndpointName HCL describing a data source for an AzDO service endpoint
func HclServiceEndpointGitHubResource ¶
HclServiceEndpointGitHubResource HCL describing an AzDO service endpoint
func HclServiceEndpointKubernetesResource ¶
func HclServiceEndpointKubernetesResource(projectName string, serviceEndpointName string, authorizationType string) string
HclServiceEndpointKubernetesResource HCL describing an AzDO kubernetes service endpoint
func HclServiceEndpointRunPipelineResourceSimple ¶
HclServiceEndpointRunPipelineResource HCL describing an AzDO service endpoint
func HclServiceEndpointServiceFabricResource ¶
func HclServiceEndpointServiceFabricResource(projectName string, serviceEndpointName string, authorizationType string) string
HclServiceEndpointServiceFabricResource HCL describing an AzDO service endpoint
func HclServicehookStorageQeueuePipelinesResourceWithStageEvent ¶
func HclServicehookStorageQeueuePipelinesResourceWithStageEvent(projectName, accountKey, queueName, stateFilter, resultFilter string) string
HclServicehookStorageQeueuePipelinesResource HCL describing an AzDO subscription resource
func HclTeamConfiguration ¶
func HclUserEntitlementResource ¶
HclUserEntitlementResource HCL describing an AzDO UserEntitlement
func HclVariableGroupDataSource ¶
func HclVariableGroupDataSource() string
HclVariableGroupDataSource HCL describing a data source for an AzDO Variable Group
func HclVariableGroupResource ¶
HclVariableGroupResource HCL describing an AzDO group
func HclVariableGroupResourceKeyVault ¶
func HclVariableGroupResourceKeyVault(variableGroupName string, allowAccess bool, keyVaultName string) string
HclVariableGroupResourceKeyVault HCL describing an AzDO variable group with key vault
func HclVariableGroupResourceKeyVaultWithProject ¶
func HclVariableGroupResourceKeyVaultWithProject(projectName string, variableGroupName string, allowAccess bool, keyVaultName string) string
HclVariableGroupResourceKeyVaultWithProject HCL describing an AzDO project and variable group with key vault
func HclVariableGroupResourceNoSecretsWithProject ¶
func HclVariableGroupResourceNoSecretsWithProject(projectName string, variableGroupName string, allowAccess bool) string
HclVariableGroupResourceNoSecretsWithProject Similar to HclVariableGroupResource, but without a secret variable
func HclVariableGroupResourceWithProject ¶
func HclVariableGroupResourceWithProject(projectName string, variableGroupName string, allowAccess bool) string
HclVariableGroupResourceWithProject HCL describing an AzDO variable group
func RequiresImportError ¶
Types ¶
This section is empty.