From 5bdf7ec8546e15a6deb36b75dda72ee5f91a3104 Mon Sep 17 00:00:00 2001 From: Martin Alig Date: Wed, 23 Jun 2021 09:26:36 +0200 Subject: [PATCH] Fix for offset. --- .../src/main/resources/verificationRules.json | 2 +- .../bag/covidcertificate/backend/verifier/ws/EtagUtilTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ch-covidcertificate-backend-verifier/ch-covidcertificate-backend-verifier-ws/src/main/resources/verificationRules.json b/ch-covidcertificate-backend-verifier/ch-covidcertificate-backend-verifier-ws/src/main/resources/verificationRules.json index 5c07d7fe..997b713b 100644 --- a/ch-covidcertificate-backend-verifier/ch-covidcertificate-backend-verifier-ws/src/main/resources/verificationRules.json +++ b/ch-covidcertificate-backend-verifier/ch-covidcertificate-backend-verifier-ws/src/main/resources/verificationRules.json @@ -707,7 +707,7 @@ "2139" ], "acceptance-criteria": { - "single-vaccine-validity-offset": 22, + "single-vaccine-validity-offset": 21, "vaccine-immunity": 364, "rat-test-validity": 48, "pcr-test-validity": 72, diff --git a/ch-covidcertificate-backend-verifier/ch-covidcertificate-backend-verifier-ws/src/test/java/ch/admin/bag/covidcertificate/backend/verifier/ws/EtagUtilTest.java b/ch-covidcertificate-backend-verifier/ch-covidcertificate-backend-verifier-ws/src/test/java/ch/admin/bag/covidcertificate/backend/verifier/ws/EtagUtilTest.java index ebfb9a3a..97e22590 100644 --- a/ch-covidcertificate-backend-verifier/ch-covidcertificate-backend-verifier-ws/src/test/java/ch/admin/bag/covidcertificate/backend/verifier/ws/EtagUtilTest.java +++ b/ch-covidcertificate-backend-verifier/ch-covidcertificate-backend-verifier-ws/src/test/java/ch/admin/bag/covidcertificate/backend/verifier/ws/EtagUtilTest.java @@ -41,7 +41,7 @@ public void testUnsortedListHashcode() { @Test public void testFileHash() throws Exception { - String expected = "b12dc950b08474f264392d5ed919fe9d525f66f5"; + String expected = "f81d6bbe0d5f40320ec781dc0fdbc6b717a8d853"; String sha1 = EtagUtil.getSha1HashForFiles(PATH_TO_VERIFICATION_RULES); assertEquals(expected, sha1); assertNotEquals(expected, EtagUtil.getSha1HashForFiles(PATH_TO_TEST_VERIFICATION_RULES));