Skip to content

Commit

Permalink
gradle upgrade to 8.6 + one more edditional https proxy test
Browse files Browse the repository at this point in the history
  • Loading branch information
tkohegyi committed Feb 9, 2024
1 parent 89f7761 commit 3b93649
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,23 @@ public void testSimpleRemoteGetRequestOverHTTPSThroughProxy_Self() throws Except
assertEquals(requestCount.get(), responseCount.get());
}

@Test
public void testSimpleRemoteGetRequestOverHTTPSThroughProxy_ReqRes() throws Exception {
//check if external test server is available
String CALL = "/api/users?page/2";
HttpHost externalHost = new HttpHost("reqres.in", 443, "https");
try {
httpGetWithApacheClient(externalHost, CALL, false, false, ContentEncoding.ANY);
} catch (Exception e) {
externalHost = null;
}
Assumptions.assumeTrue(externalHost != null);
//do test if available
ResponseInfo proxiedResponse = httpGetWithApacheClient(externalHost, CALL, true, false, ContentEncoding.ANY);
assertEquals(200, proxiedResponse.getStatusCode());
assertTrue(requestCount.get() > 0);
assertTrue(responseCount.get() > 0);
assertEquals(requestCount.get(), responseCount.get());
}

}

0 comments on commit 3b93649

Please sign in to comment.