10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8650288 commit 0fe17c5Copy full SHA for 0fe17c5
src/test/java/com/asquera/elasticsearch/plugins/http/auth/integration/EmptyWhitelistIntegrationTest.java
@@ -62,4 +62,11 @@ public void clientBadCredentialsBasicAuthenticationFails() throws Exception {
62
assertThat(response.getStatusCode()
63
, equalTo(RestStatus.UNAUTHORIZED.getStatus()));
64
}
65
+
66
+ @Test
67
+ public void clientBadCredentialsSanityCheckOk() throws Exception {
68
+ HttpResponse response = requestWithCredentials("admin:wrong").path("/").execute();
69
+ assertThat(response.getStatusCode()
70
+ , equalTo(RestStatus.OK.getStatus()));
71
+ }
72
0 commit comments