Skip to content

Commit

Permalink
feat: signatures changed
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Nov 27, 2023
1 parent f0a6e33 commit d5c2a9d
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void getOneRecordExtentAsImage() throws Exception {
.andReturn().getResponse().getContentAsByteArray();

saveImageToDiskIfConfiguredToDoSo(reponseBuffer, name.getMethodName());
assertEquals("0a2ea00341921f0c6e8b8997e3b87c14", DigestUtils.md5DigestAsHex(reponseBuffer));
assertEquals("e7de4f5705ceb5a6c35f0d85d1fb4cd", DigestUtils.md5DigestAsHex(reponseBuffer));
}

@Test
Expand Down Expand Up @@ -156,7 +156,7 @@ public void lastModifiedModified() throws Exception {
.andExpect(content().contentType(API_PNG_EXPECTED_ENCODING))
.andReturn().getResponse().getContentAsByteArray();

assertEquals("0a2ea00341921f0c6e8b8997e3b87c14", DigestUtils.md5DigestAsHex(reponseBuffer));
assertEquals("e7de4f5705ceb5a6c35f0d85d1fb4cd", DigestUtils.md5DigestAsHex(reponseBuffer));
}

@Test
Expand All @@ -173,7 +173,7 @@ public void aggregatedWithTwoExtent() throws Exception {
.andReturn().getResponse().getContentAsByteArray();

saveImageToDiskIfConfiguredToDoSo(reponseBuffer, name.getMethodName());
assertEquals("5808105ac9395326b81e9d036a6f3e81", DigestUtils.md5DigestAsHex(reponseBuffer));
assertEquals("b381a4e5bde396b92ba4d798980f30fb", DigestUtils.md5DigestAsHex(reponseBuffer));
}

@Test
Expand All @@ -198,7 +198,7 @@ public void twoExtentFirstOneWithBothBoundingBoxAndPolygon() throws Exception {
.andReturn().getResponse().getContentAsByteArray();
saveImageToDiskIfConfiguredToDoSo(reponseBuffer, name.getMethodName() + "-1");

assertEquals("b3e8eef2afbfc83c363119f6e8e613e2", DigestUtils.md5DigestAsHex(reponseBuffer));
assertEquals("aeab4dba0d59418fa8ec209cc6a4efa0", DigestUtils.md5DigestAsHex(reponseBuffer));

reponseBuffer = mockMvc.perform(get(String.format("/srv/api/records/%s/extents/2.png", uuid))
.session(mockHttpSession)
Expand Down Expand Up @@ -244,7 +244,7 @@ public void threeExtentThirdOne() throws Exception {
.andReturn().getResponse().getContentAsByteArray();

saveImageToDiskIfConfiguredToDoSo(reponseBuffer, name.getMethodName());
assertEquals("0d28fdd025cb58cd50a5fa7c1f43995c", DigestUtils.md5DigestAsHex(reponseBuffer));
assertEquals("df9dc5ff0300a3891d6af9ce42c1847f", DigestUtils.md5DigestAsHex(reponseBuffer));
}

@Test
Expand All @@ -269,7 +269,7 @@ public void threeExtentThirdOne115_3() throws Exception {
.andReturn().getResponse().getContentAsByteArray();

saveImageToDiskIfConfiguredToDoSo(reponseBuffer, name.getMethodName());
assertEquals("d4d930688949095e2cd41996113a1455", DigestUtils.md5DigestAsHex(reponseBuffer));
assertEquals("649e43578b03e4ff74d8c0d8272da1a9", DigestUtils.md5DigestAsHex(reponseBuffer));
}

@Test
Expand All @@ -286,7 +286,7 @@ public void threeExtentThirdOneIsABoundingBox() throws Exception {
.andReturn().getResponse().getContentAsByteArray();

saveImageToDiskIfConfiguredToDoSo(reponseBuffer, name.getMethodName());
assertEquals("25812922c1f5f660d922e80a1ccc3689", DigestUtils.md5DigestAsHex(reponseBuffer));
assertEquals("a5cd33942f207a48d230b636505318dc", DigestUtils.md5DigestAsHex(reponseBuffer));
}

private String createTestData() throws Exception {
Expand Down

0 comments on commit d5c2a9d

Please sign in to comment.