jdamata / terraform-provider-sonarqube

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

Restore Quality profile for use customized built-in rules #231

Open humpalu opened 6 months ago

humpalu commented 6 months ago

Hi there,

Thank you for opening an issue.

Affected Resource(s)

Please list the resources as a list, for example:

Expected Behavior

Can not restore Quality profile from an exported backup

Actual Behavior

I have to make customization changes in a Built In Rule ( java:S2699 ). I created the Quality profile from a Sonar way and I need to change some parameters. The only way what I can see now to export the whole customized quality profile xml and restore it like that

curl -v POST -u admin:admin "http://localhost:9000/api/qualityprofiles/restore"  
--form backup=@test.xml

It would be a much better way to make customized quality profile rules. Since if I understood correctly the following resource is usable only for custom rules with templates but not to configure built-in ones. https://registry.terraform.io/providers/jdamata/sonarqube/latest/docs/resources/sonarqube_rules