SONAR-10945 Prevent access qgates and rules to none members of paid organization
* Add membership check for paid organization in api/qualitygates ws
* Add membership check for paid organization in api/rules ws
* Move membership check in UserSession
* Use UserSession#checkMemebership in QGates and Rules ws
SONAR-10945 Add membership check for paid organization in api/qualityprofiles
* Add membership check for paid organization in api/qualityprofiles/search
* Add membership check for paid organization in api/qualityprofiles/backup
* Add membership check for paid organization in api/qualityprofiles/changelog, compare, export, inheritance
* Add membership check for paid organization in api/qualityprofiles/projects
* Add membership check for paid organization in api/qualityprofiles/show
SONAR-10597 Update QPROFILE_CHANGES#USER_LOGIN to USER_UUID
* SONAR-10597 Refactor ChangelogActionTest
Improve unit tests to really check JSON response
Add some tests on not covered use cases
* SONAR-10597 Rename QPROFILE_CHANGES#USER_LOGIN to USER_UUID
* SONAR-10597 Fix ChangelogAction to not return user uuid
* SONAR-10597 Add ITs to check qProfile changes after login update
* SONAR-10597 Set user uuid instead of login when saving qprofile changes
Remove unused and conflicting dependency on securemock in unit tests
securemock is a fork of an old version of mockito. By removing it
some tests must be fixed to correctly support the latest version of
mockito:
- signature of ArgumentMatcher implementations (Object -> T). That's the
reason why they have been fixed and replaced by lambda
- any(Class) supports null values in securemock but not in mockito.
Replacing calls by any() fixes the issue.
SONAR-10074 Add QP actions "delete" and "associateProjects"
In api/qualityprofiles/search, the following actions are now availables :
- delete : Available when not built-it, not default, and have either QP admin permission or have rights to edit
- associateProjects : Available when not default and have either QP admin permission or have rights to edit