cli icon indicating copy to clipboard operation
cli copied to clipboard

Support for contextual tuples in model tests

Open mbarralo opened this issue 1 year ago • 0 comments

Currently the contextual tuples don't seem to be supported in the model tests, although it is possible using API requests with curl, Postman, etc.

Example:

  - name: User can see account from specific branch
    check:
    - user: user:anne
      object: account:1
      contextual_tuples:
        - user: user:anne
          relation: assignee
          object: branch:lisbon
      assertions:
        can_view: true

mbarralo avatar May 09 '24 21:05 mbarralo