Commit graph

15 commits

Author SHA1 Message Date
Anthony Alaribe
ba651f5040 Fix GHC 9.12 TypeAbstractions errors in test files
Replace type synonym Projects.ProjectId with UUIDId constructor
in all test files to fix "Illegal term-level use of type constructor"
errors that occur with GHC 9.12's TypeAbstractions extension.
2025-11-27 23:29:55 +01:00
Anthony Alaribe
f10795b158 Refactor integration tests to use simplified testServant helper
Simplified test code by:
- Replacing verbose toServantResponse pattern with concise testServant helper
- Changed test lambdas from \tr@TestResources{..} to \tr for cleaner syntax
- Updated field access to use dot notation (tr.trPool, tr.trATCtx, etc.)

This reduces boilerplate and improves test readability across all integration
test suites while maintaining the same functionality.

Affected test suites:
- Pages (ApiSpec, LogExplorer, Anomalies, Projects, Endpoints, Reports,
  Monitors, BusinessFlows, Share)
- MonitoringSpec
- ProcessMessageSpec
2025-11-17 09:04:28 +01:00
Anthony Alaribe
8477228369 Update integration tests to pass logger to logging helper
Pass logger parameter to logBackgroundJobsInfo calls to support
the new structured logging interface.
2025-11-15 21:48:42 +00:00
Anthony Alaribe
a4ccb14bd2 Refactor integration tests to use TestResources pattern
Update integration tests to use the new TestResources pattern for better
test organization and consistency.

Changes:
- Replace withSetup callback with withTestResources
- Use runTestBg helper instead of runTestBackground
- Access test resources via TestResources record fields
- Remove redundant imports (execute from DBT)
- Simplify test setup code

This refactoring improves test readability and reduces boilerplate.
2025-11-15 05:59:09 +00:00
Anthony Alaribe
5ab5c35edd improve background job handling and make tests more precise in job handling 2025-11-15 05:54:10 +00:00
Yussif Mohammed
d6fa7c1f66 fix integration tests with events table updates enabled 2025-10-22 21:00:39 +00:00
Yussif Mohammed
172d56083d fix tests 2025-10-05 07:58:27 +00:00
Yussif Mohammed
3678d62308 fix tests 2025-09-28 08:51:55 +00:00
Anthony Alaribe
4487a26482 fix issues so the projectspecs test passes 2025-09-05 02:30:31 +02:00
dawkaka
4f66fad302 remove trace show 2025-07-11 21:21:30 +00:00
Anthony Alaribe
4846c16286 checkpoint: down to 10 failing tests 2025-07-07 00:21:04 +02:00
Anthony Alaribe
8dc5cb8088 improve logic for regex masking 2025-07-07 00:21:03 +02:00
Anthony Alaribe
a7434075a7 checkpoint towards passing integration tests. only 10 tests are now failing and would need abstracting of email and slack for tests 2025-07-03 15:15:11 +02:00
Anthony Alaribe
5a05df2be9 improve spec imports 2025-07-03 15:15:11 +02:00
Anthony Alaribe
4dd34754ff move unit tests and integration tests to their own project s they run quickly 2025-07-02 01:41:15 +02:00
Renamed from src/ProcessMessageSpec.hs (Browse further)