[Flow] Functional Testing affected by Policy.yaml
Rocky
rockysynergy at gmail.com
Thu Jul 17 10:30:11 CEST 2014
Hi,
I have below content in my My\Package\Configuration\Testing\Policy.yaml
================
resources:
entities:
'My\Package\Domain\Model\School':
My_Package_Schools_All: 'ANY'
My_Package_Schools_Other: 'this.name != current.securityContext.party.name && this.name != NULL'
roles:
RegisteredUser: []
SchoolManager: []
acls:
SchoolManager:
entities:
My_Package_Schools_All: GRANT
===============
In the My\Package\Test\Functional\SchoolControllerTest, I did not turn on the testableSecurityEnabled. The \My\Package\Domain\Repository\SchoolRepository can add School, but the repository can not fetch any School. If I remove My\Package\Configuration\Testing\Policy.yaml, the repository works. The problem is I have some Content Security functional testing thus can not get rid of My\Package\Configuration\Testing\Policy.yaml.
Can anyone shed some light on this please?
More information about the Flow
mailing list