-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RWA-3300: Received messages help check repo tests added (#697)
* RWA-3300: Received messages help check repo tests added * RWA-3300: Received messages help check repo tests changes * RWA-3300: Received messages help check repo tests added * RWA-3300: Tests corrected. * Updated test names * Renamed the tests
- Loading branch information
1 parent
627bc65
commit 770788e
Showing
4 changed files
with
157 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...egrationTest/resources/scripts/insert_case_event_messages_for_received_messages_check.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
TRUNCATE TABLE public.wa_case_event_messages; | ||
|
||
INSERT INTO public.wa_case_event_messages (message_id, | ||
sequence, | ||
case_id, | ||
event_timestamp, | ||
from_dlq, | ||
state, | ||
message_properties, | ||
message_content, | ||
received, | ||
delivery_count, | ||
hold_until, | ||
retry_count) | ||
VALUES | ||
('MessageId_bc8299fc-5d31-45c7-b847-c2622014a85b', | ||
7, | ||
'9140-9312-3701-4412', | ||
'2024-04-02 14:00:00.887100', | ||
false, | ||
'NEW', | ||
'null', | ||
'{"EventInstanceId":"77838838-2369-443d-a076-9c80bcda17d6","EventTimeStamp":[2022,1,14,12,45,54,887100000],"CaseId":"9140-9312-3701-4413","JurisdictionId":"ia","CaseTypeId":"asylum","EventId":"dummyEvent","PreviousStateId":"","NewStateId":"","UserId":"some user Id","AdditionalData":{"Data":{"lastModifiedDirection":{"dateDue":"","uniqueId":"","directionType":""},"appealType":"protection"},"Definition":null}}', | ||
'2024-04-02 14:00:00.350754', | ||
0, | ||
null, | ||
0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/test/resources/sql/insert_case_event_messages_for_received_messages_check.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
INSERT INTO public.wa_case_event_messages (message_id, | ||
sequence, | ||
case_id, | ||
event_timestamp, | ||
from_dlq, | ||
state, | ||
message_properties, | ||
message_content, | ||
received, | ||
delivery_count, | ||
hold_until, | ||
retry_count) | ||
VALUES | ||
('MessageId_bc8299fc-5d31-45c7-b847-c2622014a85b', | ||
7, | ||
'9140-9312-3701-4412', | ||
'2024-04-02 14:00:00.887100', | ||
false, | ||
'NEW', | ||
'null', | ||
'{"EventInstanceId":"77838838-2369-443d-a076-9c80bcda17d6","EventTimeStamp":[2022,1,14,12,45,54,887100000],"CaseId":"9140-9312-3701-4413","JurisdictionId":"ia","CaseTypeId":"asylum","EventId":"dummyEvent","PreviousStateId":"","NewStateId":"","UserId":"some user Id","AdditionalData":{"Data":{"lastModifiedDirection":{"dateDue":"","uniqueId":"","directionType":""},"appealType":"protection"},"Definition":null}}', | ||
'2024-04-02 14:00:00.350754', | ||
0, | ||
null, | ||
0); |