-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#4076 - Queue Monitoring - Schedulers Refactor (Fed Restrictions and …
…Receipts) (#4135) - Refactored schedulers `disbursement-receipts-file-integration` and `federal-restrictions-integration`. - Adjusted existing E2Es. - As agreed in previous PRs - moving the audit user to the service instead of the processor. - removing the friendly start/end logs from the processor since the `BaseQueue` is already logging similar start/end logs. ### E2E `containLogMessages` changes To allow the below check to happen the method `containLogMessages` was changed to check if the string "contains" a value instead of "endsWith" it. The `endsWith` was used to have a more precise check and remove the log initial information (e.g. context and date). Using the "contains" will still give enough assertion precision and allow inspecting errors currently serialized to a JSON. ```ts // Act/Assert await expect(processor.processQueue(mockedJob.job)).rejects.toThrow( "One or more errors were reported during the process, please see logs for details.", ); expect( mockedJob.containLogMessages([ `Error downloading file ${expectedFileName}.`, "Invalid file footer.", ]), ).toBe(true); ```
- Loading branch information
1 parent
272e503
commit 77f6d41
Showing
7 changed files
with
220 additions
and
265 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
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
Oops, something went wrong.