Skip to content

Conversation

rmannibucau
Copy link
Contributor

…rough headers to iceberg library

More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.

Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@rmannibucau rmannibucau changed the title [test] ensure iceberg rest catalog supports custom headers passing th… test(iceberg): ensure iceberg rest catalog supports custom headers passing th… Sep 24, 2025
@CLAassistant
Copy link

CLAassistant commented Sep 24, 2025

CLA assistant check
All committers have signed the CLA.

)));
final var catalog = new CatalogFactory.Builder(config).build();
assertInstanceOf(RESTCatalog.class, catalog).close();
assertEquals(List.of("GET /v1/config?warehouse=s3://my_bucket/iceberg"), requests);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice coverage here with the REST catalog setup. To make it bulletproof, could we also assert that the custom header (x-custom: my-x) is present on the request? Right now the handler only checks the URL, so the test would still pass if the header weren’t forwarded.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch (was the original intent), updated

@Gezi-lzq
Copy link
Contributor

LGTM

@Gezi-lzq Gezi-lzq merged commit c235b23 into AutoMQ:main Sep 26, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants