python-sonarqube-api icon indicating copy to clipboard operation
python-sonarqube-api copied to clipboard

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

Open iot123 opened this issue 4 years ago • 0 comments

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="<ANY-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?

iot123 avatar Jun 10 '21 15:06 iot123