Skip to content
This repository was archived by the owner on Jan 24, 2018. It is now read-only.
Open
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
10 changes: 10 additions & 0 deletions cts-java/src/test/java/org/ga4gh/cts/api/TestData.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,16 @@ private TestData() {
*/
public static final String INDIVIDUAL_NAME = "HG00096";

/**
* The creation DateTime in the test data.
*/
public static final String CREATE_DATETIME = "2008-04-25T18:30:00+00:00";

/**
* The update DateTime in the test data.
*/
public static final String UPDATE_DATETIME = "2016-05-15T17:34:00-01:00";

/**
* Return the ID of the compliance dataset on the server being tested.
* By default this is the value of {@link #DEFAULT_DATASET_ID}, but
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ public void fetchDatasetById() throws InvalidProtocolBufferException, UnirestExc
assertThat(dataset.getId()).isEqualTo(TestData.getDatasetId());
}

/**
* Check that we can retrieve the compliance dataset creation and update
* datetimes </tt>.
*
* @throws GAWrapperException if the server finds the request invalid in some way
* @throws UnirestException if there's a problem speaking HTTP to the server
* @throws InvalidProtocolBufferException if there's a problem processing the JSON response from the server
*/
@Test
public void checkDatasetDateTimes() throws InvalidProtocolBufferException, UnirestException, GAWrapperException {
final Dataset dataset = client.metadata.getDataset(TestData.getDatasetId());
assertThat(dataset).isNotNull();
assertThat(dataset.getCreateDateTime()).isEqualTo(TestData.CREATE_DATETIME);
assertThat(dataset.getUpdateDateTime()).isEqualTo(TestData.UPDATE_DATETIME);
}

/**
* Try to fetch a dataset with a bogus ID and make sure it fails.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ public void checkCallsForWellFormedness() throws InvalidProtocolBufferException,
final SearchVariantsResponse vResp = client.variants.searchVariants(vReq);
final List<Variant> searchVariants = vResp.getVariantsList();

checkAllCalls(searchVariants, c -> assertThat(c.getGenotypeList()).isNotNull().isNotEmpty());
checkAllCalls(searchVariants, c -> assertThat(c.getGenotype()).isNotNull());
checkAllCalls(searchVariants, c -> assertThat(c.getGenotype().getValuesList()).isNotEmpty());
checkAllCalls(searchVariants, c -> assertThat(c.getGenotypeLikelihoodList()).isNotNull());
checkAllCalls(searchVariants, c -> {
assertThat(c.getInfo()).isNotNull();
Expand Down
4 changes: 2 additions & 2 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
Then change the schemas.version to be the commit hash, release,
or branch snapshot you would like to test.
-->
<ga4gh.schemas.groupId>com.github.ga4gh</ga4gh.schemas.groupId>
<ga4gh.schemas.version>master-SNAPSHOT</ga4gh.schemas.version>
<ga4gh.schemas.groupId>com.github.ejacox</ga4gh.schemas.groupId>
<ga4gh.schemas.version>626_timestamps-SNAPSHOT</ga4gh.schemas.version>
<ga4gh.schemas.artifactId>schemas</ga4gh.schemas.artifactId>
<ctk.tgt.urlRoot>http://localhost:8000</ctk.tgt.urlRoot>
<!-- Controls skipping of cts-java IT tests during build; skip the tests by passing
Expand Down