From 9d465a0e4dbd5e8468f8eb34b10cea01a31728b3 Mon Sep 17 00:00:00 2001 From: Tara Drwenski Date: Wed, 17 Jan 2024 16:00:48 -0700 Subject: [PATCH] Add extra test for zarr and caching --- tds/src/integrationTests/java/thredds/tds/TestZarr.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tds/src/integrationTests/java/thredds/tds/TestZarr.java b/tds/src/integrationTests/java/thredds/tds/TestZarr.java index a23200d3b1..d296de7a80 100644 --- a/tds/src/integrationTests/java/thredds/tds/TestZarr.java +++ b/tds/src/integrationTests/java/thredds/tds/TestZarr.java @@ -27,6 +27,13 @@ public void shouldOpenObjectStoreZarrFile() { checkWithOpendap(ZARR_S3_PATH); } + @Test + public void shouldOpenZarrTwice() { + // Test it works correctly with the netcdf file cache + checkWithOpendap(ZARR_DIR_PATH); + checkWithOpendap(ZARR_DIR_PATH); + } + private static void checkWithOpendap(String path) { final String endpoint = TestOnLocalServer.withHttpPath("dodsC/" + path + ".dds"); final byte[] content = TestOnLocalServer.getContent(endpoint, HttpServletResponse.SC_OK);