Skip to content

Commit

Permalink
additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
carterkozak committed Sep 23, 2024
1 parent 0340bcb commit 54369fd
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,15 @@ public void encodesPathParameters() throws InterruptedException {
assertThat(server.takeRequest().getRequestUrl()).isEqualTo(server.url("/%2F%C3%BC%2F"));
}

@Test
public void allowsColonPathParameter() throws InterruptedException {
endpoint.renderPath = (_params, url) -> url.pathSegment("foo:bar");
channel.execute(endpoint, request);
assertThat(server.takeRequest().getRequestUrl())
.as("Several GCP APIs require colons in url paths")
.isEqualTo(server.url("foo:bar"));
}

@Test
public void fillsHeaders() throws Exception {
request = Request.builder()
Expand Down

0 comments on commit 54369fd

Please sign in to comment.