Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/org/labkey/test/LabKeySiteWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ private void waitForStartup()
try
{
String startPage = buildURL("project", "home", "start");
SimpleHttpResponse httpResponse = WebTestHelper.getHttpResponse(startPage);
SimpleHttpResponse httpResponse = WebTestHelper.getHttpResponse(startPage, null, null);
if (httpResponse.getResponseCode() >= 400)
{
log("Waiting for server: " + httpResponse.getResponseCode());
Expand Down
4 changes: 2 additions & 2 deletions src/org/labkey/test/tests/ClientAPITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ public void contentTypeResponseTest()

Map<String, Object> expectedProps = new HashMap<>();
expectedProps.put("success", false);
expectedProps.put("exception", "You must log in to view this content.");
expectedProps.put("exception", "The email address and password you entered did not match any accounts on file.");

validateUnauthorizedResponses(cn, command, expectedProps);

Expand Down Expand Up @@ -1506,7 +1506,7 @@ protected HttpGet getHttpRequest(Connection connection, String folderPath) throw
assertThat(responseContentType, containsString(expectedResponseContentType));

// Command only supports parsing the body of a JSON response.
if ("application/json".equalsIgnoreCase(expectedResponseContentType) && expectedProps != null && expectedProps.size() > 0)
if ("application/json".equalsIgnoreCase(expectedResponseContentType) && expectedProps != null && !expectedProps.isEmpty())
{
Map<String, Object> body = exception.getProperties();

Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/test/util/SimpleHttpRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected PasswordAuthentication getPasswordAuthentication()
{
useCopiedSession(con);
}
else
else if (_username != null && _password != null)
{
// Authenticator.setDefault() call above doesn't seem to work (I don't know why), so add the basic auth header explicitly
String encoded = Base64.getEncoder().encodeToString((_username + ":" + _password).getBytes(StandardCharsets.UTF_8));
Expand Down