Skip to content

Commit

Permalink
Debug help
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso committed Sep 12, 2024
1 parent 5413047 commit 5dc1fe6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,11 @@ protected void sso(final String baseURL, final String username, final String pas

// 3. verify that user is now authenticated
assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode());
assertTrue(EntityUtils.toString(response.getEntity()).contains(username));

String body = EntityUtils.toString(response.getEntity());
fail("SelfReg body for '" + get.getURI().toASCIIString() + "' :\n" + body);

assertTrue(body.contains(username));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,11 @@ protected void sso(final String baseURL, final String username, final String pas
get = new HttpGet(baseURL + StringUtils.removeStart(location, "../"));
try (CloseableHttpResponse response = httpclient.execute(get, context)) {
assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode());
assertTrue(EntityUtils.toString(response.getEntity()).contains(username));

String body = EntityUtils.toString(response.getEntity());
fail("SelfReg body for '" + get.getURI().toASCIIString() + "' :\n" + body);

assertTrue(body.contains(username));
}
}

Expand Down

0 comments on commit 5dc1fe6

Please sign in to comment.