setup_rls_and_roles
Apply RLS roles and members to a TMDL model, validate the role spec, write role definitions, and run test queries with rollback on failure.
Instructions
Apply RLS roles + members + run a test matrix against a TMDL model.
Validates the role spec, writes role <Name> blocks into
definition.tmdl (atomic), and runs each test_query through
the (injected) test_engine callable. Failures can roll back
edits when rollback_on_test_failure is True.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| dry_run | No | ||
| spec_json | No | ||
| spec_yaml | No | ||
| rollback_on_test_failure | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||