Merged in feature/permit-policy-cleanup (pull request #210)

cleanup permit policies and correct documentation

* docs

* policy cleanup

* refactor

* Merge remote-tracking branch 'origin/feature/permit-policy-cleanup' into feature/permit-policy-cleanup

* docs and edits
This commit is contained in:
Jay Brown
2026-02-19 20:22:59 +00:00
parent 58912a66d4
commit 6dccf494f8
70 changed files with 785 additions and 2221 deletions
+2 -2
View File
@@ -115,13 +115,13 @@ TEST_USER_DOMAIN=example.com
**Note:** The test suite automatically loads environment variables from `test/integration/.env` when you run the tests. You do NOT need to manually source the file.
Ensure the following roles exist in your Permit.io environment (as defined in `cmd/cognito_test/permit.setup/permit_policies.yaml`):
Ensure the following roles exist in your Permit.io environment (as defined in `cmd/auth_related/permit.setup/permit_policies.yaml`):
- `super_admin`
- `user_admin`
- `auditor`
- `client_user`
You can create roles through the Permit.io dashboard, API, or use the setup tool at `cmd/cognito_test/permit.setup/`.
You can create roles through the Permit.io dashboard, API, or use the setup tool at `cmd/auth_related/permit.setup/`.
## Running the Tests
+1 -1
View File
@@ -506,7 +506,7 @@ func (s *AdminIntegrationTestSuite) TestRoleAssignment() {
"To run this test, ensure the Permit.io environment has roles defined.\n" +
"Expected roles (from permit_policies.yaml):\n" +
" - super_admin\n - user_admin\n - auditor\n - client_user\n\n" +
"Run: task permit:setup (or use cmd/cognito_test/permit.setup/setup_permit)\n" +
"Run: task permit:setup (or use cmd/auth_related/permit.setup/setup_permit)\n" +
"Visit: https://app.permit.io")
return
}