Skip to content

Commit 5ffe8e1

Browse files
committed
Updating test name
1 parent 25614d6 commit 5ffe8e1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

http-clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/internal/utils/ApacheUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ private static void addPreemptiveAuthenticationProxy(HttpClientContext clientCon
156156
authCache.put(targetHost, basicAuth);
157157
clientContext.setAuthCache(authCache);
158158
} catch (Exception e) {
159-
logger.debug(() -> "Failed to process synthetic challenge for preemptive proxy authentication: " + e.getMessage());
159+
logger.debug(() -> "Failed to process synthetic challenge for preemptive proxy authentication: " +
160+
e.getMessage());
160161
}
161162

162163
clientContext.setCredentialsProvider(credsProvider);

http-clients/apache-client/src/test/java/software/amazon/awssdk/http/apache/ProxyPreemptiveAuthTest.java renamed to http-clients/apache-client/src/test/java/software/amazon/awssdk/http/apache/ApacheHttpClientProxyAuthTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* Verifies that when preemptiveBasicAuthenticationEnabled(true) is configured,
4242
* the Proxy-Authorization header is sent with the first request to the proxy.
4343
*/
44-
public class ProxyPreemptiveAuthTest {
44+
public class ApacheHttpClientProxyAuthTest {
4545

4646
private WireMockServer mockProxy;
4747
private SdkHttpClient httpClient;
@@ -63,7 +63,7 @@ public void teardown() {
6363
}
6464

6565
@Test
66-
public void addPreemptiveAuthenticationProxy_whenPreemptiveAuthEnabled_shouldSendProxyAuthorizationHeader() throws Exception {
66+
public void proxyAuthentication_whenPreemptiveAuthEnabled_shouldSendProxyAuthorizationHeader() throws Exception {
6767
mockProxy.stubFor(any(anyUrl())
6868
.withHeader("Proxy-Authorization", matching("Basic .+"))
6969
.willReturn(aResponse()
@@ -100,7 +100,7 @@ public void addPreemptiveAuthenticationProxy_whenPreemptiveAuthEnabled_shouldSen
100100
}
101101

102102
@Test
103-
public void addPreemptiveAuthenticationProxy_whenPreemptiveAuthDisabled_shouldUseChallengeResponseAuth() throws Exception {
103+
public void proxyAuthentication_whenPreemptiveAuthDisabled_shouldUseChallengeResponseAuth() throws Exception {
104104
// First request without auth header should get 407
105105
mockProxy.stubFor(any(anyUrl())
106106
.willReturn(aResponse()

0 commit comments

Comments
 (0)