Repository navigation
Conversation
After DeleteOrganization, nobody who had access can get the org, its projects or a resource inside one, no live policy is left on them or names the deleted group or service user, and the rows stay marked deleted.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
Coverage Report for CI Build 39987793044Coverage remained the same at 55.729%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
Summary
Adds an e2e test for the organization delete. After
DeleteOrganization, nobody who had access can get the org, its projects or a resource inside one; no live policy is left on them; no live policy names the deleted group or service user; and the rows stay withdeleted_atset. Test only.Changes
test/e2e/regression/api_test.go:TestOrganizationDeleteLeavesNoAccessAndNoLivePolicy.Technical Details
compute/orderresource in the enabled project, a group and a service user. Users get access through the org owner role, the org viewer role, a direct project policy, the group, and a role on the resource; the service user through a project policy.CheckFederatedResourcePermission. With ids it asks SpiceDB only, so a deleted object answers false.TestPATOfDeletedOrgStopsAuthenticatinginpat_test.gocovers it.Test Plan
go test ./test/e2e/...passes.golangci-lint run ./test/e2e/regression/...reports no issues.