# yaml-language-server: $schema=https://api.cerbos.dev/latest/cerbos/policy/v1/TestSuite.schema.json
---
resources:
  resource_1:
    id: "resource_1"
    kind: "bank_info"
    attr:
      identity_uuid: "resource_1"

name: BankInfoTestSuite
description: Tests for verifying the BankInfo resource policy
tests:
  - name: bank_info
    input:
      principals:
        - payee
        - team_member
      resources:
        - resource_1
      actions:
        - edit
        - view
    expected:
      - principal: payee
        resource: resource_1
        actions:
          view: EFFECT_DENY
          edit: EFFECT_DENY
      - principal: team_member
        resource: resource_1
        actions:
          view: EFFECT_ALLOW
          edit: EFFECT_ALLOW
