jdamata / terraform-provider-sonarqube

Terraform provider for managing Sonarqube configuration
GNU General Public License v3.0
62 stars 51 forks source link

Unable create azure binding Sonarqube version: 9.9.0 community #208

Closed CyrineG closed 9 months ago

CyrineG commented 9 months ago

Hello, In the sonarqube community edition it's now possible to edit the DevOps Platform Integration and enable the mono repository config, both using the UI and the API. So I think the provider should be updated to reflect this.

Terraform Version

Sonarqube version: 9.9.0 Terraform v1.4.6 on darwin_arm64

Affected Resource(s)

Terraform Configuration Files

resource "sonarqube_alm_azure" "az1" {
  key                   = "az1"
  personal_access_token = "my_pat"
  url                   = "https://dev.azure.com/my-org"
}

resource "sonarqube_project" "main" {
  name       = "SonarQube"
  project    = "main"
  visibility = "public"
}

resource "sonarqube_azure_binding" "main" {
  alm_setting     = sonarqube_alm_azure.az1.key
  project         = sonarqube_project.main.project
  project_name    = "my_azure_project"
  repository_name = "my_repo"
  monorepo  = true
}

Expected Behavior

create binding

Actual Behavior

returns error

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

References

PR with suggested edits to fix this : https://github.com/jdamata/terraform-provider-sonarqube/pull/209/commits