From 56a4666288667eb759ec4462f62c7e366654a79b Mon Sep 17 00:00:00 2001 From: Philip Durbin Date: Tue, 29 Aug 2023 16:43:04 -0400 Subject: [PATCH 1/2] get FITS working again #9808 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1258761dd4c..3ff313743d5 100644 --- a/pom.xml +++ b/pom.xml @@ -294,7 +294,7 @@ gov.nasa.gsfc.heasarc nom-tam-fits - 1.18.0 + 1.12.0 net.handle From 7c0c9523c9522f093c5c7231f98658d2d7795a5f Mon Sep 17 00:00:00 2001 From: Philip Durbin Date: Wed, 30 Aug 2023 09:36:29 -0400 Subject: [PATCH 2/2] add test for file-level FITS metadata extraction #9808 --- src/test/java/edu/harvard/iq/dataverse/api/FitsIT.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/edu/harvard/iq/dataverse/api/FitsIT.java b/src/test/java/edu/harvard/iq/dataverse/api/FitsIT.java index 763b61000d8..e788efc9c87 100644 --- a/src/test/java/edu/harvard/iq/dataverse/api/FitsIT.java +++ b/src/test/java/edu/harvard/iq/dataverse/api/FitsIT.java @@ -60,6 +60,7 @@ public void testAstroFieldsFromFits() throws IOException { getJson.prettyPrint(); getJson.then().assertThat() .statusCode(OK.getStatusCode()) + .body("data.latestVersion.files[0].description", equalTo("FITS file, 2 HDUs total:\nThe primary HDU; 1 Table HDU(s) 1 Image HDU(s); \nThe following recognized metadata keys have been found in the FITS file:\nCRVAL2; NAXIS; INSTRUME; NAXIS1; NAXIS0; EXPTIME; CD1_1; CRVAL1; TARGNAME; DATE-OBS; \n")) .body("data.latestVersion.metadataBlocks.astrophysics.fields[0].value[0]", equalTo("Image")); // a bit more precise than the check for "Image" above (but annoyingly fiddly)