8000 refactor: DRY duplicated code in parent class · is00hcw/elasticsearch-http-basic@8650288 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8650288

Browse files
author
emiguez
committed
refactor: DRY duplicated code in parent class
1 parent e5e6971 commit 8650288

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/test/java/com/asquera/elasticsearch/plugins/http/auth/integration/IpAuthenticationIntegrationTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,4 @@ public void proxyViaLocalhostIpUnauthenticatesNonWhitelistedClients() throws Exc
102102
assertThat(response.getStatusCode(), equalTo(RestStatus.UNAUTHORIZED.getStatus()));
103103
}
104104
}
105-
106-
protected HttpRequestBuilder requestWithCredentials(String credentials) throws Exception {
107-
return httpClient().path("/_status")
108-
.addHeader("Authorization", "Basic " + Base64.encodeBytes(credentials.getBytes()));
109-
}
110-
111105
}

0 commit comments

Comments
 (0)
0