shijl0925 / python-sonarqube-api

Python Client library for interacting with Community, Developer, and Enterprise Editions SonarQube's REST APIs and SonarCloud's REST APIs.
https://python-sonarqube-pro-api.readthedocs.io/en/latest/
GNU Affero General Public License v3.0
133 stars 77 forks source link

Sonar.qualityprofiles.get_projects_associate_with_quality_profile is not working for sonarqube -v7.1 but for 7.9.6 #32

Closed iot123 closed 1 year ago

iot123 commented 3 years ago

sonar.qualityprofiles.get_projects_associate_with_quality_profile(key="") api call is not working with sonarQube version - 7.1 but working with version : 7.9.6

Hi Team,

I am writing python script using “python-sonarqube-api” module to get a list of projects associated with particular qualityProfile Code Snippet as below:

from sonarqube import SonarQubeClient sonar = SonarQubeClient(sonarqube_url=url, token=sonar_token) print(sonar.qualityprofiles.get_projects_associate_with_quality_profile(key="")) I am refering below document for python scripting: https://python-sonarqube-api.readthedocs.io/en/latest/

When I try above code with sonarqube version 7.1, It giving below response which is unexpected: image

and When I try same code with sonarqube version 7.9.6, It giving below response as expecteted: image

and when I try same code with sonarqube version 8.8, it is again giving below response which unexpected: image

Any one can help me with this issue for this particular api of python?