Skip to content

Commit

Permalink
Adding debugging output to filesystem tests that are failing in Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
escowles committed Apr 10, 2014
1 parent 7811dc5 commit 5cdf71a
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -998,6 +998,7 @@ public void testUploadToProjection() throws IOException {
logger.debug("Uploading to federated filesystem via rest api: " + uploadLocation);
final HttpPost post = postDSMethod("files/" + pid, "ds1", uploadContent);
final HttpResponse response = client.execute(post);
logger.debug( "upload response: " + EntityUtils.toString(response.getEntity()) );
assertEquals(CREATED.getStatusCode(), response.getStatusLine().getStatusCode());
final String actualLocation = response.getFirstHeader("Location").getValue();
assertEquals("Wrong URI in Location header", uploadLocation, actualLocation);
Expand All @@ -1024,6 +1025,7 @@ public void testCopyToProjection() throws IOException {
final String pid = randomUUID().toString();
final HttpPost post = postDSMethod(pid, "ds1", "abc123");
final HttpResponse response = client.execute(post);
logger.debug( "upload response: " + EntityUtils.toString(response.getEntity()) );
assertEquals(CREATED.getStatusCode(), response.getStatusLine().getStatusCode());

// copy to federated filesystem
Expand Down Expand Up @@ -1052,6 +1054,7 @@ public void testCopyFromProjection() throws IOException {
final String pid = randomUUID().toString();
final HttpPost post = postDSMethod("files/" + pid, "ds1", "abc123");
final HttpResponse response = client.execute(post);
logger.debug( "upload response: " + EntityUtils.toString(response.getEntity()) );
assertEquals(CREATED.getStatusCode(), response.getStatusLine().getStatusCode());

// copy to repository
Expand Down

0 comments on commit 5cdf71a

Please sign in to comment.