Skip to content

Commit

Permalink
Add extra test for zarr and caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Tara Drwenski committed Jan 17, 2024
1 parent 0393dfe commit 9d465a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tds/src/integrationTests/java/thredds/tds/TestZarr.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9d465a0

Please sign in to comment.