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

name: PayoneerProgramTestSuite
description: Test for verifying payoneer_program resource policies
tests:
  - name: Viewing a payoneer program
    input:
      principals:
        - rob
        - ciara
        - max
        - gab
      resources:
        - awal_us_usd_payoneer_program
      actions:
        - view
    expected:
      - principal: rob
        resource: awal_us_usd_payoneer_program
        actions:
          view: EFFECT_DENY
      - principal: ciara
        resource: awal_us_usd_payoneer_program
        actions:
          view: EFFECT_ALLOW
      - principal: max
        resource: awal_us_usd_payoneer_program
        actions:
          view: EFFECT_ALLOW
      - principal: gab
        resource: awal_us_usd_payoneer_program
        actions:
          view: EFFECT_ALLOW
