GRI-2080: acceptance tests for campus CRUD counts and in-use delete details #216
No reviewers
Labels
No labels
Area/Backend
Area/Database
Area/Docs
Area/Frontend
Area/Infra
Area/Security
Area/Tests
Area/Tooling
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Lang/Python
Lang/Rust
Lang/Shell
Lang/SQL
Lang/TypeScript
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Routing
Auto
Routing
Hold
Routing
Human
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grimoirix/grimoire-of-digital-signage!216
Loading…
Reference in a new issue
No description provided.
Delete branch "test/GRI-2080-campus-crud-counts-acceptance-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Acceptance tests for forge issue #213 (campus CRUD counts and in-use delete details, the contract for #207), written before the implementation lands, same convention as #161/#178 and #172/#174.
GET /api/v1/campusesgainingdevice_count/playlist_countper campus, ordered bycode.DELETE /api/v1/campuses/{id}'s409 campus_in_usenaming only the non-zero categories inmessage, withdetailsalways carrying all four (media/playlists/devices/ip_rules).POST/PATCH/DELETE,400on emptycode/name,404on an unknown id, andGET /campusesstill listing every campus for a campus-scoped caller.POST/PATCHmust keep returning the bare{id, code, name}row, not leak the two new counts onto it.Run against
dev(71a482f) before this change: 3 of 13 tests fail for the right reason (nodetails/counts exist yet); the other 10 pass today and anchor behaviour that must not move while #213 is implemented.Test plan
cargo fmt --check -p servercargo clippy -p server --tests./scripts/local-gates.sh --rust-only(every gate passed)dev: 3 fail for the right reason, 10 pass as regression anchors.Closing without merge: the diff is empty. The test commit
b0cf7dd(GRI-2080) is already in dev, carried by PR #219 (GRI-2075).fj landed GRI-2080= 0. The red frontend-web here is on a base 10 commits behind dev; dev tip is green.Pull request closed