Documentation
¶
Index ¶
- func CheckNestedKeyExistsWithValue(tfNode string, propertyName string, propertyValue 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 GetProviders() map[string]terraform.ResourceProvider
- func HclAgentPoolDataSource() string
- func HclAgentPoolResource(poolName string) string
- func HclAgentPoolResourceAppendPoolNameToResourceName(poolName string) string
- func HclAgentPoolsDataSource() string
- func HclAgentQueueResource(projectName, poolName string) string
- func HclBuildDefinitionResource(projectName string, buildDefinitionName string, buildPath 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 HclBuildDefinitionWithVariables(varValue, secretVarValue, name string) string
- func HclForkedGitRepoResource(projectName string, gitRepoName string, gitForkedRepoName string, ...) string
- func HclGitRepoResource(projectName string, gitRepoName string, initType string) string
- func HclGroupDataSource(projectName string, groupName string) string
- func HclGroupMembershipDependencies(projectName, groupName, userPrincipalName string) string
- func HclGroupMembershipResource(projectName, groupName, userPrincipalName string) string
- func HclGroupResource(groupResourceName, projectName, groupName string) string
- func HclProjectDataSource(projectName string) string
- func HclProjectFeatures(projectName string, featureStateTestplans string, featureStateArtifacts string) string
- func HclProjectGitRepositories(projectName string, gitRepoName 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 HclServiceEndpointAzureRMAutomaticResource(projectName string, serviceEndpointName string) string
- func HclServiceEndpointAzureRMResource(projectName string, serviceEndpointName string) string
- func HclServiceEndpointDockerRegistryResource(projectName string, serviceEndpointName string) string
- func HclServiceEndpointGitHubResource(projectName string, serviceEndpointName string) string
- func HclServiceEndpointKubernetesResource(projectName string, serviceEndpointName string, authorizationType string) string
- func HclUserEntitlementResource(principalName string) string
- func HclVariableGroupResource(projectName string, variableGroupName string, allowAccess bool) string
- func HclVariableGroupResourceKeyVault(variableGroupName string, allowAccess bool, keyVaultName string) string
- func HclVariableGroupResourceKeyVaultWithProject(projectName string, variableGroupName string, allowAccess bool, ...) string
- func HclVariableGroupResourceNoSecrets(projectName string, variableGroupName string, allowAccess bool) string
- func PreCheck(t *testing.T, additionalEnvVars *[]string)
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 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* terrafform 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 ¶
func GetProviders() map[string]terraform.ResourceProvider
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 HclAgentQueueResource ¶
HclAgentQueueResource HCL describing an AzDO Agent Pool and Agent Queue
func HclBuildDefinitionResource ¶
func HclBuildDefinitionResource( projectName string, 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 HclBuildDefinitionWithVariables ¶
HclBuildDefinitionWithVariables A build definition with variables
func HclForkedGitRepoResource ¶
func HclForkedGitRepoResource(projectName string, gitRepoName string, gitForkedRepoName string, initType string, forkedInitType string) string
HclForkedGitRepoResource HCL describing an AzDO GIT repository resource
func HclGitRepoResource ¶
HclGitRepoResource HCL describing an AzDO GIT repository resource
func HclGroupDataSource ¶
HclGroupDataSource HCL describing an AzDO Group Data Source
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 HclProjectDataSource ¶
HclProjectDataSource HCL describing a data source for an AzDO project
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 data source for an AzDO git repo
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 HclServiceEndpointAzureRMAutomaticResource ¶
func HclServiceEndpointAzureRMAutomaticResource(projectName string, serviceEndpointName string) string
HclServiceEndpointAzureRMAutomaticResource HCL describing an AzDO service endpoint
func HclServiceEndpointAzureRMResource ¶
HclServiceEndpointAzureRMResource HCL describing an AzDO service endpoint
func HclServiceEndpointDockerRegistryResource ¶
func HclServiceEndpointDockerRegistryResource(projectName string, serviceEndpointName string) string
HclServiceEndpointDockerRegistryResource HCL describing 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 HclUserEntitlementResource ¶
HclUserEntitlementResource HCL describing an AzDO UserEntitlement
func HclVariableGroupResource ¶
func HclVariableGroupResource(projectName string, variableGroupName string, allowAccess bool) string
HclVariableGroupResource HCL describing an AzDO variable 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
Types ¶
This section is empty.