Skip to content

Commit

Permalink
(cosmetic) defined the control constants used in the integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed Feb 1, 2024
1 parent 3dbc8c5 commit e0dc198
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/test/java/edu/harvard/iq/dataverse/api/FilesIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -2498,6 +2498,10 @@ public void testIngestWithAndWithoutVariableHeader() throws NoSuchAlgorithmExcep
// file as seen by the final Access API user (i.e., with the variable
// header line in it):
String tabularFileMD5 = "f298c2567cc8eb544e36ad83edf6f595";
// Expected byte sizes of the generated tab-delimited file as stored,
// with and without the header:
int tabularFileSizeWoutHeader = 4026;
int tabularFileSizeWithHeader = 4113;

String apiToken = createUserGetToken();
String dataverseAlias = createDataverseGetAlias(apiToken);
Expand Down Expand Up @@ -2528,7 +2532,7 @@ public void testIngestWithAndWithoutVariableHeader() throws NoSuchAlgorithmExcep
fileDataResponse.then().assertThat()
.body("data.dataFile.filename", equalTo("stata13-auto.tab"))
.body("data.dataFile.contentType", equalTo("text/tab-separated-values"))
.body("data.dataFile.filesize", equalTo(4026))
.body("data.dataFile.filesize", equalTo(tabularFileSizeWoutHeader))
.statusCode(OK.getStatusCode());


Expand Down Expand Up @@ -2576,7 +2580,7 @@ public void testIngestWithAndWithoutVariableHeader() throws NoSuchAlgorithmExcep
fileDataResponse.then().assertThat()
.body("data.dataFile.filename", equalTo("stata13-auto.tab"))
.body("data.dataFile.contentType", equalTo("text/tab-separated-values"))
.body("data.dataFile.filesize", equalTo(4113))
.body("data.dataFile.filesize", equalTo(tabularFileSizeWithHeader))
.statusCode(OK.getStatusCode());


Expand Down

0 comments on commit e0dc198

Please sign in to comment.