Skip to content

Commit

Permalink
Fixes integ tests
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
  • Loading branch information
DarshitChanpura committed Apr 2, 2024
1 parent 0a08132 commit 4a6dff7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void shouldRespondWith401WhenPasswordIsIncorrect() {
}
}

/** Test `?auth_request_type=""` param to authinfo request **/
/** Test `?auth_type=""` param to authinfo request **/
@Test
public void testShouldAutomaticallyLoginAsAnonymousIfNoCredentialsArePassed() {
try (TestRestClient client = cluster.getRestClient()) {
Expand All @@ -89,7 +89,7 @@ public void testShouldAutomaticallyLoginAsAnonymousIfNoCredentialsArePassed() {
assertThat(response, is(notNullValue()));
response.assertStatusCode(SC_OK);

HttpResponse response2 = client.getAuthInfo(Map.of("auth_request_type", "anonymous"));
HttpResponse response2 = client.getAuthInfo(Map.of("auth_type", "anonymous"));

assertThat(response2, is(notNullValue()));
response2.assertStatusCode(SC_OK);
Expand All @@ -100,7 +100,7 @@ public void testShouldAutomaticallyLoginAsAnonymousIfNoCredentialsArePassed() {
public void testShouldNotAutomaticallyLoginAsAnonymousIfRequestIsNonAnonymousLogin() {
try (TestRestClient client = cluster.getRestClient()) {

HttpResponse response = client.getAuthInfo(Map.of("auth_request_type", "saml"));
HttpResponse response = client.getAuthInfo(Map.of("auth_type", "saml"));

assertThat(response, is(notNullValue()));
response.assertStatusCode(SC_UNAUTHORIZED);
Expand Down

0 comments on commit 4a6dff7

Please sign in to comment.