Skip to content

Share the RLS test options, setup and seed rows - #260

Merged
LucaCappelletti94 merged 1 commit into
mainfrom
dedup/rls-tests
Nov 6, 2026
Merged

LucaCappelletti94 merged 1 commit into
mainfrom
dedup/rls-tests

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Collaborator

The RLS tests built the same options chain, with blob UUIDs, uuidv7, the authenticated deployment, the current_app_user mapping and the rls_audit table, in about twenty places, and several files translated, applied and seeded their fixtures the same way inline. tests/helpers/rls.rs builds the standard chain, with an optional department setting. Setup goes through the existing translate_pg and apply_translated_ddl, and each file seeds its rows through one local helper. Chains that differ in roles, settings or UUID handling keep their own builder.

Base automatically changed from dedup/test-helper-reuse to main November 6, 2026 08:56
@LucaCappelletti94
LucaCappelletti94 force-pushed the dedup/rls-tests branch 2 times, most recently from 4dc5b28 to 73f7fa6 Compare November 6, 2026 08:57
@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LucaCappelletti94
LucaCappelletti94 merged commit 77bd14b into main Nov 6, 2026
19 checks passed
@LucaCappelletti94
LucaCappelletti94 deleted the dedup/rls-tests branch November 6, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant