Skip to content

Commit

Permalink
[MINOR] - Vertx and Netty minor version bumps (hyperledger#7156)
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
  • Loading branch information
Gabriel-Trintinalia authored May 31, 2024
1 parent b0823c4 commit 6f3650f
Show file tree
Hide file tree
Showing 5 changed files with 252 additions and 317 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ private int doRequest(final String hostname) throws IOException {
@Test
public void requestWithMalformedHostIsRejected() throws IOException {
graphQLConfig.setHostsAllowlist(hostsWhitelist);
Assertions.assertThat(doRequest("ally:friend")).isEqualTo(403);
Assertions.assertThat(doRequest("ally:123456")).isEqualTo(403);
Assertions.assertThat(doRequest("ally:friend:1234")).isEqualTo(403);
Assertions.assertThat(doRequest("ally:friend")).isEqualTo(400);
Assertions.assertThat(doRequest("ally:123456")).isEqualTo(400);
Assertions.assertThat(doRequest("ally:friend:1234")).isEqualTo(400);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ private int doRequest(final String hostname) throws IOException {
@Test
public void requestWithMalformedHostIsRejected() throws IOException {
jsonRpcConfig.setHostsAllowlist(hostsAllowlist);
assertThat(doRequest("ally:friend")).isEqualTo(403);
assertThat(doRequest("ally:123456")).isEqualTo(403);
assertThat(doRequest("ally:friend:1234")).isEqualTo(403);
assertThat(doRequest("ally:friend")).isEqualTo(400);
assertThat(doRequest("ally:123456")).isEqualTo(400);
assertThat(doRequest("ally:friend:1234")).isEqualTo(400);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ public void websocketRequestWithMalformedHostIsRejected(final String hostname) {
public void httpRequestWithMalformedHostIsRejected() throws Throwable {
webSocketConfiguration.setAuthenticationEnabled(false);
webSocketConfiguration.setHostsAllowlist(hostsAllowlist);
doHttpRequestAndVerify(testContext, "ally:friend", 403);
doHttpRequestAndVerify(testContext, "ally:123456", 403);
doHttpRequestAndVerify(testContext, "ally:friend:1234", 403);
doHttpRequestAndVerify(testContext, "ally:friend", 400);
doHttpRequestAndVerify(testContext, "ally:123456", 400);
doHttpRequestAndVerify(testContext, "ally:friend:1234", 400);
}

private void doHttpRequestAndVerify(
Expand Down
Loading

0 comments on commit 6f3650f

Please sign in to comment.