Skip to content

feat: support authorizations v2 api#192

Merged
BoxBoxJason merged 2 commits intomainfrom
feat/authorization-v2-api
Mar 14, 2026
Merged

feat: support authorizations v2 api#192
BoxBoxJason merged 2 commits intomainfrom
feat/authorization-v2-api

Conversation

@BoxBoxJason
Copy link
Copy Markdown
Owner

Description of your changes

This PR adds the support of the entire authorizations v2 API (all of its existing endpoints).

Closes #180
Closes #179

I have:

  • Followed the git conventional commit message format.
  • Made sure all changes are covered by proper tests, reaching a coverage of at least 80% when applicable.

How has this code been tested

I have:

  • Made sure make lint passes to verify that the code style is correct.
  • Made sure make test passes to verify that the code is working as intended.
  • Made sure make e2e passes to verify that end-to-end tests pass against a real SonarQube instance.
  • Added unit tests to cover the code changes.
  • Added end-to-end tests if necessary.

Signed-off-by: BoxBoxJason <contact@boxboxjason.dev>
@BoxBoxJason BoxBoxJason added this to the API V2 support milestone Mar 13, 2026
@BoxBoxJason BoxBoxJason requested a review from Copilot March 13, 2026 22:23
@BoxBoxJason BoxBoxJason self-assigned this Mar 13, 2026
@BoxBoxJason BoxBoxJason added enhancement New feature or request unit-test Unit test related work e2e end to end tests related work sdk SonarQube golang SDK related work labels Mar 13, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds SonarQube V2 Authorizations support to the Go SDK, implementing the missing REST endpoints for authorization groups and group memberships (issues #180, #179).

Changes:

  • Implemented V2 Authorizations service methods for groups and group-memberships CRUD/search.
  • Added unit tests for the new V2 Authorizations service.
  • Added end-to-end (Ginkgo) integration tests covering the new V2 endpoints.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
sonar/authorizations_v2_service.go Introduces V2 Authorizations service, request/response models, and validation + methods for groups and memberships.
sonar/authorizations_v2_service_test.go Adds unit tests for the new service methods and validations.
integration_testing/v2_authorizations_test.go Adds e2e coverage for group + membership workflows against a real SonarQube instance.

You can also share your feedback on Copilot code review. Take the survey.

Signed-off-by: BoxBoxJason <contact@boxboxjason.dev>
@BoxBoxJason BoxBoxJason merged commit 7f19def into main Mar 14, 2026
4 checks passed
@BoxBoxJason BoxBoxJason deleted the feat/authorization-v2-api branch March 14, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e end to end tests related work enhancement New feature or request sdk SonarQube golang SDK related work unit-test Unit test related work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement API V2 authorizations group endpoints Implement API V2 authorizations group membership endpoints

2 participants