https://cerbos.dev logo
#help
Title
# help
p

Peter Vicherek

09/20/2023, 4:10 PM
Hi everyone, I'm getting the below error message
Copy code
Failed to load the test suite: invalid test "[RESOURCE] CRUD Actions": resource "[RESOURCE]" not found
My project structure looks like this
Copy code
resource_policies/
  |- [RESOURCE]/
    |- [RESOURCE]_test.yaml
    |- [RESOURCE].yaml
I skimmed through the testing docs to see if I missed anything, but without any luck. Could someone point me in the right direction please
c

Charith (Cerbos)

09/20/2023, 4:15 PM
Hi. I am assuming you're just redacting the name of the resource using
[RESOURCE]
as a placeholder. Your directory structure looks OK. The only thing I can think of is that perhaps there's a typo in the policy itself (Cerbos reads the resource name from the YAML contents, not the file name).
p

Peter Vicherek

09/20/2023, 4:27 PM
Aha, you're right, I did have a type. I was looking in the wrong place 😂
😄 1
Thank you!
👍 1