Michael Chihlas
465b8ff880
test(l1): RLS regression tests for internal_tickets + l1_walk_sessions
...
Adds 8 synchronous psycopg2-based tests that connect as resolutionflow_app
and verify the tenant_isolation RLS policies (USING + WITH CHECK) on the two
new L1 Phase 1 tables block cross-tenant reads and reject cross-tenant INSERTs.
Uses psycopg2 (not asyncpg) to avoid the conftest pytest_runtest_teardown hook
that closes the asyncio event loop after every test — incompatible with
module-scoped asyncpg fixtures in pytest-asyncio 0.24.
conftest.py: extends _RLS_TEST_FILES set to include test_l1_rls.py so it is
excluded from the default create_all test suite (requires RUN_RLS_TESTS=1).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-28 13:49:39 -04:00
..
2026-05-28 13:49:39 -04:00
2026-05-06 19:14:30 -04:00
2026-05-07 18:42:20 +00:00
2026-05-06 19:14:30 -04:00
2026-03-04 20:44:25 -05:00
2026-05-06 19:14:30 -04:00
2026-03-04 20:44:25 -05:00
2026-02-08 06:05:59 -05:00
2026-04-12 03:48:30 +00:00
2026-02-08 06:05:59 -05:00
2026-02-08 06:05:59 -05:00
2026-04-11 04:24:36 +00:00
2026-05-11 05:07:07 +00:00
2026-02-08 06:05:59 -05:00
2026-04-13 04:44:51 -04:00
2026-03-01 14:21:48 -05:00
2026-03-07 15:51:37 -05:00
2026-04-25 06:13:23 -04:00
2026-02-26 17:25:38 -05:00
2026-02-26 17:25:34 -05:00
2026-02-27 00:08:20 -05:00
2026-03-07 15:51:37 -05:00
2026-02-28 19:18:02 -05:00
2026-04-11 04:24:36 +00:00
2026-02-16 15:23:14 -05:00
2026-03-04 20:44:25 -05:00
2026-02-07 02:39:01 -05:00
2026-02-17 12:29:04 -05:00
2026-05-07 18:42:20 +00:00
2026-05-06 19:14:30 -04:00
2026-05-07 18:42:20 +00:00
2026-05-06 19:14:30 -04:00
2026-05-06 19:14:30 -04:00
2026-03-24 08:36:13 +00:00
2026-04-25 06:13:23 -04:00
2026-04-11 04:24:36 +00:00
2026-03-07 15:51:37 -05:00
2026-05-11 05:07:07 +00:00
2026-05-28 12:23:16 -04:00
2026-04-11 04:24:36 +00:00
2026-05-06 19:14:30 -04:00
2026-05-06 19:14:30 -04:00
2026-03-04 20:44:25 -05:00
2026-04-27 19:47:43 -04:00
2026-02-08 14:53:22 -05:00
2026-02-18 17:56:29 -05:00
2026-04-30 17:32:37 -04:00
2026-04-23 15:08:43 -04:00
2026-04-24 02:34:06 -04:00
2026-04-27 15:25:46 -04:00
2026-05-06 19:14:30 -04:00
2026-04-30 16:21:20 -04:00
2026-05-28 13:11:21 -04:00
2026-05-11 05:07:07 +00:00
2026-05-28 13:07:09 -04:00
2026-05-06 19:14:30 -04:00
2026-05-28 13:33:18 -04:00
2026-05-28 13:49:39 -04:00
2026-05-28 13:37:55 -04:00
2026-05-28 13:25:17 -04:00
2026-04-11 04:24:36 +00:00
2026-02-17 10:54:39 -05:00
2026-04-13 02:38:01 -04:00
2026-05-07 18:42:20 +00:00
2026-05-06 19:14:30 -04:00
2026-05-06 19:14:30 -04:00
2026-05-07 18:42:20 +00:00
2026-05-07 18:42:20 +00:00
2026-03-17 00:28:22 -04:00
2026-04-12 03:48:30 +00:00
2026-02-08 17:58:48 -05:00
2026-04-11 07:02:35 +00:00
2026-04-22 00:15:29 -04:00
2026-04-22 02:37:49 -04:00
2026-05-06 19:14:30 -04:00
2026-05-11 05:07:07 +00:00
2026-03-10 09:49:51 -04:00
2026-04-23 15:17:21 -04:00
2026-03-15 01:45:35 -04:00
2026-03-15 01:45:35 -04:00
2026-02-13 13:12:52 -05:00
2026-04-16 03:01:21 +00:00
2026-04-25 06:13:23 -04:00
2026-04-11 04:24:36 +00:00
2026-02-16 15:23:14 -05:00
2026-02-14 00:11:20 -05:00
2026-04-11 04:24:36 +00:00
2026-04-24 16:09:13 -04:00
2026-05-07 18:42:20 +00:00
2026-04-11 04:24:36 +00:00
2026-04-24 02:24:57 -04:00
2026-04-25 06:13:23 -04:00
2026-03-14 20:18:59 -04:00
2026-04-09 17:18:38 +00:00
2026-04-09 17:18:38 +00:00
2026-05-28 12:40:48 -04:00
2026-03-18 02:38:42 +00:00
2026-04-12 02:44:36 +00:00
2026-04-25 06:13:23 -04:00
2026-04-21 21:13:44 -04:00
2026-04-30 16:21:20 -04:00
2026-05-13 17:07:14 -04:00
2026-04-25 06:13:23 -04:00
2026-04-25 06:13:23 -04:00
2026-04-25 12:01:05 -04:00
2026-03-11 01:59:12 -04:00
2026-02-08 17:58:48 -05:00
2026-03-16 01:35:16 -04:00
2026-02-25 23:17:29 -05:00
2026-05-07 18:42:20 +00:00
2026-05-06 19:14:30 -04:00
2026-05-06 19:14:30 -04:00
2026-05-06 19:14:30 -04:00
2026-03-17 00:22:40 -04:00
2026-03-05 07:55:49 -05:00
2026-04-11 07:02:35 +00:00
2026-04-10 03:50:59 +00:00
2026-05-06 19:14:30 -04:00
2026-02-07 19:10:47 -05:00
2026-02-10 09:45:26 -05:00
2026-04-25 06:13:23 -04:00
2026-03-07 15:51:37 -05:00
2026-02-23 00:03:54 -05:00
2026-04-10 04:17:31 +00:00
2026-04-25 06:13:23 -04:00
2026-05-06 19:14:30 -04:00
2026-02-10 09:45:26 -05:00