Removed HclWorkItemQueryPermissions from azuredevops/internal/acceptancetests/testutils/hcl.go
@@ -702,49 +702,3 @@ resource "azuredevops_git_permissions" "git-permissions" {
}
`, projectResource, gitRepository)
}
-
-// HclWorkItemQueryPermissions creates HCL for testing to set permissions on Work Item Queries
-func HclWorkItemQueryPermissions(projectName string, path string) string {
- projectResource := HclProjectResource(projectName)
-
- if path == "" {
- return fmt.Sprintf(`
-%s
-
-data "azuredevops_group" "project-administrators" {
- project_id = azuredevops_project.project.id
- name = "Project administrators"
-}
-
-resource "azuredevops_workitemquery_permissions" "wiq-permissions" {
- project_id = azuredevops_project.project.id
- principal = data.azuredevops_group.project-administrators.id
- permissions = {
- Delete = "Deny"
- Contribute = "Allow"
- ManagePermissions = "NotSet"
- }
-}
-`, projectResource)
- }
-
- return fmt.Sprintf(`
-%s
-
-data "azuredevops_group" "project-administrators" {
- project_id = azuredevops_project.project.id
- name = "Project administrators"
-}
-
-resource "azuredevops_workitemquery_permissions" "wiq-permissions" {
- project_id = azuredevops_project.project.id
- principal = data.azuredevops_group.project-administrators.id
- path = "%s"
- permissions = {
- Delete = "Deny"
- Contribute = "Allow"
- ManagePermissions = "NotSet"
- }
-}
-`, projectResource, path)
-}
