Skip to content

Commit

Permalink
test: update ITGrpcInterceptorTest to accept URL encoded header value…
Browse files Browse the repository at this point in the history
…s as valid
  • Loading branch information
BenWhitehead committed Jun 7, 2023
1 parent badb199 commit 64a387a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public void grpcStorageOptions_allowSpecifyingInterceptor() throws Exception {
System.out.println("requestParams = " + requestParams);

String expected = String.format("project=projects/%s", options.getProjectId());
assertThat(requestParams).contains(expected);
String expectedEncoded = String.format("project=projects%%2F%s", options.getProjectId());
assertThat(requestParams).containsAnyOf(expected, expectedEncoded);
}

private static final class Interceptor implements ClientInterceptor {
Expand Down

0 comments on commit 64a387a

Please sign in to comment.