diff --git a/cts-java/src/test/java/org/ga4gh/cts/api/TestData.java b/cts-java/src/test/java/org/ga4gh/cts/api/TestData.java index 1be38b5..b6a9fa4 100644 --- a/cts-java/src/test/java/org/ga4gh/cts/api/TestData.java +++ b/cts-java/src/test/java/org/ga4gh/cts/api/TestData.java @@ -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 diff --git a/cts-java/src/test/java/org/ga4gh/cts/api/datasets/DatasetsSearchIT.java b/cts-java/src/test/java/org/ga4gh/cts/api/datasets/DatasetsSearchIT.java index 71f1cd7..52fdd13 100644 --- a/cts-java/src/test/java/org/ga4gh/cts/api/datasets/DatasetsSearchIT.java +++ b/cts-java/src/test/java/org/ga4gh/cts/api/datasets/DatasetsSearchIT.java @@ -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 . + * + * @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. */ diff --git a/cts-java/src/test/java/org/ga4gh/cts/api/variants/VariantsSearchIT.java b/cts-java/src/test/java/org/ga4gh/cts/api/variants/VariantsSearchIT.java index 9234d5b..4d4141c 100644 --- a/cts-java/src/test/java/org/ga4gh/cts/api/variants/VariantsSearchIT.java +++ b/cts-java/src/test/java/org/ga4gh/cts/api/variants/VariantsSearchIT.java @@ -149,7 +149,8 @@ public void checkCallsForWellFormedness() throws InvalidProtocolBufferException, final SearchVariantsResponse vResp = client.variants.searchVariants(vReq); final List 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(); diff --git a/parent/pom.xml b/parent/pom.xml index 6d1ba9b..565d751 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -38,8 +38,8 @@ Then change the schemas.version to be the commit hash, release, or branch snapshot you would like to test. --> - com.github.ga4gh - master-SNAPSHOT + com.github.ejacox + 626_timestamps-SNAPSHOT schemas http://localhost:8000