Skip to content

Commit

Permalink
Merge pull request #4199 from IQSS/4189-fix-api-tests
Browse files Browse the repository at this point in the history
4189 fix api tests
  • Loading branch information
kcondon authored Oct 17, 2017
2 parents 06c8dde + 736a1ca commit 4e75b2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/test/java/edu/harvard/iq/dataverse/api/DatasetsIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,11 @@ public void testCreateDatasetWithDcmDependency() {
.body("message", equalTo("User @" + noPermsUsername + " is not permitted to perform requested action."))
.statusCode(UNAUTHORIZED.getStatusCode());

boolean stopEarlyBecauseYouDoNotHaveDcmInstalled = true;
if (stopEarlyBecauseYouDoNotHaveDcmInstalled) {
return;
}

boolean stopEarlyToVerifyTheScriptWasCreated = false;
if (stopEarlyToVerifyTheScriptWasCreated) {
logger.info("On the DCM, does /deposit/gen/upload-" + datasetId + ".bash exist? It should! Creating the dataset should be enough to create it.");
Expand Down Expand Up @@ -1138,7 +1143,7 @@ public void testDcmChecksumValidationMessages() throws IOException, InterruptedE
* "files.sha" and (if checksum validation succeeds) the DCM moves the
* files and the "files.sha" file into the uploadFolder.
*/
boolean doExtraTesting = true;
boolean doExtraTesting = false;

if (doExtraTesting) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,7 @@ public void testCuratorSendsCommentsToAuthor() {
Response authorsChecksForCommentsPostPublication = UtilIT.getNotifications(authorApiToken);
authorsChecksForCommentsPostPublication.prettyPrint();
authorsChecksForCommentsPostPublication.then().assertThat()
// FIXME: Why is this ASSIGNROLE and not "your dataset has been published"?
.body("data.notifications[0].type", equalTo("ASSIGNROLE"))
.body("data.notifications[0].type", equalTo("PUBLISHEDDS"))
.body("data.notifications[1].type", equalTo("RETURNEDDS"))
// .body("data.notifications[1].reasonsForReturn[0].message", equalTo("You forgot to upload any files."))
// .body("data.notifications[1].reasonsForReturn[1].message", equalTo("A README is required."))
Expand Down

0 comments on commit 4e75b2b

Please sign in to comment.