Skip to content

MINOR: Refactor REST extension registration - #23150

Merged
mimaison merged 1 commit into
apache:trunkfrom
mimaison:admin-extensions
Aug 19, 2026
Merged

mimaison merged 1 commit into
apache:trunkfrom
mimaison:admin-extensions

Conversation

@mimaison

@mimaison mimaison commented Aug 13, 2026

Copy link
Copy Markdown
Member

Refactor the Connect REST extension registration logic

Reviewers: Manikumar Reddy manikumar.reddy@gmail.com

@omkreddy omkreddy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the PR. LGTM

@mimaison
mimaison merged commit 9521d77 into apache:trunk Aug 19, 2026
34 of 36 checks passed
@mimaison
mimaison deleted the admin-extensions branch August 19, 2026 13:26
mimaison added a commit that referenced this pull request Aug 21, 2026
Refactor the Connect REST extension registration logic

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
mimaison added a commit that referenced this pull request Aug 21, 2026
Refactor the Connect REST extension registration logic

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
mimaison added a commit that referenced this pull request Aug 21, 2026
Refactor the Connect REST extension registration logic

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>

HttpResponse response = executeRequest(server.advertisedUrl(), new HttpGet("/connectors"));
assertEquals(200, response.getStatusLine().getStatusCode());
assertNotNull(response.getFirstHeader(extension.name));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@mimaison we should also check if admin api is accessible via advertisedUrl with rest extensions enabled

Suggested change
assertNotNull(response.getFirstHeader(extension.name));
assertNotNull(response.getFirstHeader(extension.name));
HttpResponse adminResponse = executeRequest(server.advertisedUrl(), new HttpGet("/admin/loggers"));
assertEquals(200, adminResponse.getStatusLine().getStatusCode());
assertNotNull(adminResponse.getFirstHeader(extension.name));

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Feel free to followup with a PR. Thanks

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@mimaison I have raised the PR - #23494 . Can you please review it ? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants