quintodrome/server/subsonic/responses/.snapshots
Kendall Garner 6fb4cd277e
feat(subsonic): add OS readonly and validUntil properties in playlists (#4993)
* feat(subsonic): add OS readonly and validUntil properties

* remove duplicated test

* test: fix and enable disabled child smart playlist tests

Fixed the XContext("child smart playlists") tests that were disabled with
a TODO comment. The tests had several issues: nested playlists were missing
Public: true (required by InPlaylist criteria), the criteria matched no
test fixtures, the "not expired" test set EvaluatedAt on the parent too
(preventing it from refreshing at all), and the "expired" test dereferenced
a nil EvaluatedAt. Added proper cleanup with DeferCleanup and config
restoration via configtest.

* fix(subsonic): always include readonly field in JSON playlist responses

Removed omitempty from the JSON tag of the Readonly field in
OpenSubsonicPlaylist so that readonly: false is always serialized in
JSON responses, per the OpenSubsonic spec requirement that supported
fields must be returned with default values. Added a test case with an
empty OpenSubsonicPlaylist to verify the behavior.

---------

Co-authored-by: Deluan Quintão <deluan@navidrome.org>
2026-02-06 19:35:54 -05:00
..
Responses AlbumInfo with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumInfo with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumInfo without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumInfo without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumList with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses AlbumList with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses AlbumList with OS data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses AlbumList with OS data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses AlbumList without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumList without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumWithSongsID3 with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses AlbumWithSongsID3 with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses AlbumWithSongsID3 without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumWithSongsID3 without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumWithSongsID3 without data should match OpenSubsonic .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses AlbumWithSongsID3 without data should match OpenSubsonic .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Artist with data and MBID and Sort Name should match .JSON feat(bfr): Big Refactor: new scanner, lots of new fields and tags, improvements and DB schema changes (#2709) 2025-02-19 20:35:17 -05:00
Responses Artist with data and MBID and Sort Name should match .XML feat(bfr): Big Refactor: new scanner, lots of new fields and tags, improvements and DB schema changes (#2709) 2025-02-19 20:35:17 -05:00
Responses Artist with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Artist with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Artist with OpenSubsonic data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Artist with OpenSubsonic data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Artist without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Artist without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ArtistInfo with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ArtistInfo with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ArtistInfo without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ArtistInfo without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Bookmarks with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Bookmarks with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Bookmarks without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Bookmarks without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Child with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Child with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Child without data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Child without data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Child without data should match OpenSubsonic .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Child without data should match OpenSubsonic .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Directory with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Directory with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Directory without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Directory without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses EmptyResponse should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses EmptyResponse should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Genres with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Genres with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Genres without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Genres without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Indexes with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Indexes with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Indexes without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Indexes without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses InternetRadioStations with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses InternetRadioStations with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses InternetRadioStations without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses InternetRadioStations without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses License should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses License should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Lyrics with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Lyrics with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Lyrics without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Lyrics without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses LyricsList with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses LyricsList with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses LyricsList without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses LyricsList without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses MusicFolders with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses MusicFolders with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses MusicFolders without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses MusicFolders without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses OpenSubsonicExtensions with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses OpenSubsonicExtensions with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses OpenSubsonicExtensions without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses OpenSubsonicExtensions without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Playlists with data should match .JSON feat(subsonic): add OS readonly and validUntil properties in playlists (#4993) 2026-02-06 19:35:54 -05:00
Responses Playlists with data should match .XML feat(subsonic): add OS readonly and validUntil properties in playlists (#4993) 2026-02-06 19:35:54 -05:00
Responses Playlists without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Playlists without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses PlayQueue with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses PlayQueue with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses PlayQueue without data should match .JSON feat(subsonic): implement indexBasedQueue extension (#4244) 2025-11-09 12:52:05 -05:00
Responses PlayQueue without data should match .XML feat(subsonic): implement indexBasedQueue extension (#4244) 2025-11-09 12:52:05 -05:00
Responses PlayQueueByIndex with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses PlayQueueByIndex with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses PlayQueueByIndex without data should match .JSON feat(subsonic): implement indexBasedQueue extension (#4244) 2025-11-09 12:52:05 -05:00
Responses PlayQueueByIndex without data should match .XML feat(subsonic): implement indexBasedQueue extension (#4244) 2025-11-09 12:52:05 -05:00
Responses ScanStatus with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ScanStatus with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ScanStatus without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses ScanStatus without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Shares with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Shares with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses Shares with only required fields should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Shares with only required fields should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Shares without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Shares without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses SimilarSongs with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses SimilarSongs with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses SimilarSongs without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses SimilarSongs without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses SimilarSongs2 with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses SimilarSongs2 with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses SimilarSongs2 without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses SimilarSongs2 without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses TopSongs with data should match .JSON feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses TopSongs with data should match .XML feat: new "Subsonic Minimal Clients" configuration option (#4850) 2026-01-16 05:55:21 -05:00
Responses TopSongs without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses TopSongs without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses User with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses User with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses User without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses User without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Users with data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Users with data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Users without data should match .JSON chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00
Responses Users without data should match .XML chore(subsonic): update snapshot tests to use version 1.16.1 2025-03-27 22:50:22 -04:00