GRI-2147: test POST /playlists with no default_duration_seconds inherits default #293
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grimoirix/grimoire-of-digital-signage!293
Loading…
Reference in a new issue
No description provided.
Delete branch "test/GRI-2147-playlist-create-inherits-default"
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?
What
Adds the test coverage from forge #277 comment 14402, item 2: a server test
that
POST /playlistswith nodefault_duration_secondsstoresNULLandresolves to the campus/global default.
Branched from
dev(the earlier branch for this issue, from PR #281, isalready merged and deleted).
Two tests added to
crates/server/tests/playlist_integration.rs:creating_a_playlist_with_no_default_duration_stores_null_and_inherits_the_global_defaultcreating_a_playlist_with_no_default_duration_inherits_the_campus_overrideFail-first
Both tests pass against current
dev(the feature landed in #281/#292; thiscloses the coverage gap that was left open). Confirmed fail-first separately
against
281aede(dev before #281): both get422 missing field default_duration_seconds, since the old contract required the value.Criterion mapping
Forge #277 comment 14402, item 2 ("a server test that POST /playlists with no
default_duration_seconds stores NULL and returns source campus/global") -> the
two tests above, one per inheritance source (global, campus override).
Command run
Local gates (
scripts/local-gates.sh --rust-only): exit 0, every gate passed.