Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth Manager API part 1: HTTPRequest, HTTPHeader #11769

Merged
merged 8 commits into from
Dec 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
review
  • Loading branch information
adutra committed Dec 17, 2024
commit 2848e4205e6559d4d37dfb45fb51e49c5534e423
15 changes: 15 additions & 0 deletions core/src/test/java/org/apache/iceberg/rest/TestHTTPHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@ class TestHTTPHeaders {

@Test
void entries() {
assertThat(headers.entries())
.containsExactlyInAnyOrder(
HTTPHeader.of("header1", "value1a"),
HTTPHeader.of("HEADER1", "value1b"),
HTTPHeader.of("header2", "value2"));

// duplicated entries
assertThat(
HTTPHeaders.of(HTTPHeader.of("header1", "value1"), HTTPHeader.of("header1", "value1"))
.entries())
.containsExactly(HTTPHeader.of("header1", "value1"));
}

@Test
void entriesByName() {
assertThat(headers.entries("header1"))
danielcweeks marked this conversation as resolved.
Show resolved Hide resolved
.containsExactlyInAnyOrder(
HTTPHeader.of("header1", "value1a"), HTTPHeader.of("HEADER1", "value1b"));
Expand Down