-
-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
getsentry/sentry
#109786Description
Context
Comprehensive test coverage for the new bulk code mappings endpoint. Follows patterns from tests/sentry/integrations/api/endpoints/test_organization_code_mappings.py.
Test categories
| Category | Cases |
|---|---|
| Happy path | Create multiple, update existing, mixed create+update, single mapping |
| Validation | Missing fields, >200 mappings, invalid paths (spaces/quotes), invalid branch |
| Resolution errors | Unknown project slug, unknown repo name, repo without integration, integration not installed on org |
| Permissions | org:ci scope allows POST, no project access → 403, org member with org:read can POST |
| Security (IDOR) | Project from other org → 404, repo from other org → 404 |
| Edge cases | Duplicate stackRoots in request (last-write-wins), partial failure → 207, post-save signal fires |
Files
- Create:
tests/sentry/integrations/api/endpoints/test_organization_code_mappings_bulk.py
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Fields
Give feedbackNo fields configured for issues without a type.