Hi everyone, I'm getting the below error message ...
# help
p
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
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
Aha, you're right, I did have a type. I was looking in the wrong place 😂
😄 1
Thank you!
👍 1