Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit 65092e9

Browse files
committed
added unique to hashed_guid
1 parent e5f4d68 commit 65092e9

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/main/resources/db/changelog.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ databaseChangeLog:
1717
- include:
1818
file: changelog/v005-create-lab-id-claim-table.yml
1919
relativeToChangelogFile: true
20+
- include:
21+
file: changelog/v006-add-unique-to-hashed-guid.yml
22+
relativeToChangelogFile: true
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
databaseChangeLog:
2+
- changeSet:
3+
id: add-unique-to-hashed-guid
4+
author: mschulte-tsi
5+
changes:
6+
- addUniqueConstraint:
7+
columnNames: hashed_guid
8+
tableName: dcc_registration

src/test/java/app/coronawarn/dcc/service/DccRegistrationServiceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ void testFindPendingDcc() throws NoSuchAlgorithmException, DccRegistrationServic
178178
String registrationToken4 = "2".repeat(36);
179179

180180
String testId2 = "0".repeat(64);
181-
String testId3 = "0".repeat(64);
182-
String testId4 = "0".repeat(64);
181+
String testId3 = "1".repeat(64);
182+
String testId4 = "3".repeat(64);
183183

184184
when(verificationServerClientMock.result(eq(registrationToken))).thenReturn(new InternalTestResult(6, labId, testId, 0));
185185
when(verificationServerClientMock.result(eq(new RegistrationToken(registrationToken2)))).thenReturn(new InternalTestResult(6, labId, testId2, 0));

0 commit comments

Comments
 (0)