From 0cc1db54d4cc0f4be44ae8179fcc94749dce6108 Mon Sep 17 00:00:00 2001 From: Deluan <deluan@navidrome.org> Date: Mon, 5 Dec 2022 22:45:02 -0500 Subject: [PATCH] Bump github.com/bradleyjkemp/cupaloy to v2.8.0 --- go.mod | 2 +- go.sum | 4 ++-- ...> Responses AlbumList with data should match .JSON} | 0 ...=> Responses AlbumList with data should match .XML} | 0 ...esponses AlbumList without data should match .JSON} | 0 ...Responses AlbumList without data should match .XML} | 0 .../Responses ArtistInfo with data should match .JSON | 1 + .../Responses ArtistInfo with data should match .XML | 1 + ...sponses ArtistInfo without data should match .JSON} | 0 ...esponses ArtistInfo without data should match .XML} | 0 ...> Responses Bookmarks with data should match .JSON} | 0 ...=> Responses Bookmarks with data should match .XML} | 0 ...esponses Bookmarks without data should match .JSON} | 0 ...Responses Bookmarks without data should match .XML} | 0 ...ON => Responses Child with data should match .JSON} | 0 ...XML => Responses Child with data should match .XML} | 0 ...> Responses Directory with data should match .JSON} | 0 ...=> Responses Directory with data should match .XML} | 0 ...esponses Directory without data should match .JSON} | 0 ...Responses Directory without data should match .XML} | 0 ...JSON => Responses EmptyResponse should match .JSON} | 0 ... .XML => Responses EmptyResponse should match .XML} | 0 ...N => Responses Genres with data should match .JSON} | 0 ...ML => Responses Genres with data should match .XML} | 0 ...> Responses Genres without data should match .JSON} | 0 ...=> Responses Genres without data should match .XML} | 0 ... => Responses Indexes with data should match .JSON} | 0 ...L => Responses Indexes with data should match .XML} | 0 ... Responses Indexes without data should match .JSON} | 0 ...> Responses Indexes without data should match .XML} | 0 ...atch .JSON => Responses License should match .JSON} | 0 ... match .XML => Responses License should match .XML} | 0 ...N => Responses Lyrics with data should match .JSON} | 0 ...ML => Responses Lyrics with data should match .XML} | 0 ...> Responses Lyrics without data should match .JSON} | 0 ...=> Responses Lyrics without data should match .XML} | 0 ...esponses MusicFolders with data should match .JSON} | 0 ...Responses MusicFolders with data should match .XML} | 0 ...onses MusicFolders without data should match .JSON} | 0 ...ponses MusicFolders without data should match .XML} | 0 ...> Responses PlayQueue with data should match .JSON} | 0 ...=> Responses PlayQueue with data should match .XML} | 0 ...esponses PlayQueue without data should match .JSON} | 0 ...Responses PlayQueue without data should match .XML} | 0 ...> Responses Playlists with data should match .JSON} | 0 ...=> Responses Playlists with data should match .XML} | 0 ...esponses Playlists without data should match .JSON} | 0 ...Responses Playlists without data should match .XML} | 0 ... Responses ScanStatus with data should match .JSON} | 0 ...> Responses ScanStatus with data should match .XML} | 0 ...sponses ScanStatus without data should match .JSON} | 0 ...esponses ScanStatus without data should match .XML} | 0 ...esponses SimilarSongs with data should match .JSON} | 0 ...Responses SimilarSongs with data should match .XML} | 0 ...onses SimilarSongs without data should match .JSON} | 0 ...ponses SimilarSongs without data should match .XML} | 0 ...sponses SimilarSongs2 with data should match .JSON} | 0 ...esponses SimilarSongs2 with data should match .XML} | 0 ...nses SimilarSongs2 without data should match .JSON} | 0 ...onses SimilarSongs2 without data should match .XML} | 0 ...=> Responses TopSongs with data should match .JSON} | 0 ... => Responses TopSongs with data should match .XML} | 0 ...Responses TopSongs without data should match .JSON} | 0 ... Responses TopSongs without data should match .XML} | 0 ...SON => Responses User with data should match .JSON} | 0 ....XML => Responses User with data should match .XML} | 0 ... => Responses User without data should match .JSON} | 0 ...L => Responses User without data should match .XML} | 0 ...ON => Responses Users with data should match .JSON} | 0 ...XML => Responses Users with data should match .XML} | 0 ...=> Responses Users without data should match .JSON} | 0 ... => Responses Users without data should match .XML} | 0 ...h-Responses ArtistInfo with data should match .JSON | 1 - ...ch-Responses ArtistInfo with data should match .XML | 1 - server/subsonic/responses/responses_suite_test.go | 10 ++++++---- server/subsonic/responses/responses_test.go | 8 ++++---- 76 files changed, 15 insertions(+), 13 deletions(-) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses AlbumList with data should match .JSON => Responses AlbumList with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses AlbumList with data should match .XML => Responses AlbumList with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses AlbumList without data should match .JSON => Responses AlbumList without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses AlbumList without data should match .XML => Responses AlbumList without data should match .XML} (100%) create mode 100644 server/subsonic/responses/.snapshots/Responses ArtistInfo with data should match .JSON create mode 100644 server/subsonic/responses/.snapshots/Responses ArtistInfo with data should match .XML rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses ArtistInfo without data should match .JSON => Responses ArtistInfo without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses ArtistInfo without data should match .XML => Responses ArtistInfo without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Bookmarks with data should match .JSON => Responses Bookmarks with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Bookmarks with data should match .XML => Responses Bookmarks with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Bookmarks without data should match .JSON => Responses Bookmarks without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Bookmarks without data should match .XML => Responses Bookmarks without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Child with data should match .JSON => Responses Child with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Child with data should match .XML => Responses Child with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Directory with data should match .JSON => Responses Directory with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Directory with data should match .XML => Responses Directory with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Directory without data should match .JSON => Responses Directory without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Directory without data should match .XML => Responses Directory without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses EmptyResponse should match .JSON => Responses EmptyResponse should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses EmptyResponse should match .XML => Responses EmptyResponse should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Genres with data should match .JSON => Responses Genres with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Genres with data should match .XML => Responses Genres with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Genres without data should match .JSON => Responses Genres without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Genres without data should match .XML => Responses Genres without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Indexes with data should match .JSON => Responses Indexes with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Indexes with data should match .XML => Responses Indexes with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Indexes without data should match .JSON => Responses Indexes without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Indexes without data should match .XML => Responses Indexes without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses License should match .JSON => Responses License should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses License should match .XML => Responses License should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Lyrics with data should match .JSON => Responses Lyrics with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Lyrics with data should match .XML => Responses Lyrics with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Lyrics without data should match .JSON => Responses Lyrics without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Lyrics without data should match .XML => Responses Lyrics without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses MusicFolders with data should match .JSON => Responses MusicFolders with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses MusicFolders with data should match .XML => Responses MusicFolders with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses MusicFolders without data should match .JSON => Responses MusicFolders without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses MusicFolders without data should match .XML => Responses MusicFolders without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses PlayQueue with data should match .JSON => Responses PlayQueue with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses PlayQueue with data should match .XML => Responses PlayQueue with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses PlayQueue without data should match .JSON => Responses PlayQueue without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses PlayQueue without data should match .XML => Responses PlayQueue without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Playlists with data should match .JSON => Responses Playlists with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Playlists with data should match .XML => Responses Playlists with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Playlists without data should match .JSON => Responses Playlists without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Playlists without data should match .XML => Responses Playlists without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses ScanStatus with data should match .JSON => Responses ScanStatus with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses ScanStatus with data should match .XML => Responses ScanStatus with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses ScanStatus without data should match .JSON => Responses ScanStatus without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses ScanStatus without data should match .XML => Responses ScanStatus without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses SimilarSongs with data should match .JSON => Responses SimilarSongs with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses SimilarSongs with data should match .XML => Responses SimilarSongs with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses SimilarSongs without data should match .JSON => Responses SimilarSongs without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses SimilarSongs without data should match .XML => Responses SimilarSongs without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses SimilarSongs2 with data should match .JSON => Responses SimilarSongs2 with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses SimilarSongs2 with data should match .XML => Responses SimilarSongs2 with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses SimilarSongs2 without data should match .JSON => Responses SimilarSongs2 without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses SimilarSongs2 without data should match .XML => Responses SimilarSongs2 without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses TopSongs with data should match .JSON => Responses TopSongs with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses TopSongs with data should match .XML => Responses TopSongs with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses TopSongs without data should match .JSON => Responses TopSongs without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses TopSongs without data should match .XML => Responses TopSongs without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses User with data should match .JSON => Responses User with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses User with data should match .XML => Responses User with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses User without data should match .JSON => Responses User without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses User without data should match .XML => Responses User without data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Users with data should match .JSON => Responses Users with data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Users with data should match .XML => Responses Users with data should match .XML} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Users without data should match .JSON => Responses Users without data should match .JSON} (100%) rename server/subsonic/responses/.snapshots/{responses-snapshotMatcher-Match-Responses Users without data should match .XML => Responses Users without data should match .XML} (100%) delete mode 100644 server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ArtistInfo with data should match .JSON delete mode 100644 server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ArtistInfo with data should match .XML diff --git a/go.mod b/go.mod index e4ed32817..ee855888d 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/Masterminds/squirrel v1.5.3 github.com/ReneKroon/ttlcache/v2 v2.11.0 github.com/beego/beego/v2 v2.0.6 - github.com/bradleyjkemp/cupaloy v2.3.0+incompatible + github.com/bradleyjkemp/cupaloy/v2 v2.8.0 github.com/cespare/reflex v0.3.1 github.com/deluan/rest v0.0.0-20211101235434-380523c4bb47 github.com/dhowden/tag v0.0.0-20220618230019-adf36e896086 diff --git a/go.sum b/go.sum index 80a40184c..579e82b39 100644 --- a/go.sum +++ b/go.sum @@ -95,8 +95,8 @@ github.com/blizzy78/varnamelen v0.8.0 h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ github.com/blizzy78/varnamelen v0.8.0/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= github.com/bombsimon/wsl/v3 v3.3.0 h1:Mka/+kRLoQJq7g2rggtgQsjuI/K5Efd87WX96EWFxjM= github.com/bombsimon/wsl/v3 v3.3.0/go.mod h1:st10JtZYLE4D5sC7b8xV4zTKZwAQjCH/Hy2Pm1FNZIc= -github.com/bradleyjkemp/cupaloy v2.3.0+incompatible h1:UafIjBvWQmS9i/xRg+CamMrnLTKNzo+bdmT/oH34c2Y= -github.com/bradleyjkemp/cupaloy v2.3.0+incompatible/go.mod h1:Au1Xw1sgaJ5iSFktEhYsS0dbQiS1B0/XMXl+42y9Ilk= +github.com/bradleyjkemp/cupaloy/v2 v2.8.0 h1:any4BmKE+jGIaMpnU8YgH/I2LPiLBufr6oMMlVBbn9M= +github.com/bradleyjkemp/cupaloy/v2 v2.8.0/go.mod h1:bm7JXdkRd4BHJk9HpwqAI8BoAY1lps46Enkdqw6aRX0= github.com/breml/bidichk v0.2.3 h1:qe6ggxpTfA8E75hdjWPZ581sY3a2lnl0IRxLQFelECI= github.com/breml/bidichk v0.2.3/go.mod h1:8u2C6DnAy0g2cEq+k/A2+tr9O1s+vHGxWn0LTc70T2A= github.com/breml/errchkjson v0.3.0 h1:YdDqhfqMT+I1vIxPSas44P+9Z9HzJwCeAzjB8PxP1xw= diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList with data should match .JSON b/server/subsonic/responses/.snapshots/Responses AlbumList with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses AlbumList with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList with data should match .XML b/server/subsonic/responses/.snapshots/Responses AlbumList with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList with data should match .XML rename to server/subsonic/responses/.snapshots/Responses AlbumList with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList without data should match .JSON b/server/subsonic/responses/.snapshots/Responses AlbumList without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses AlbumList without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList without data should match .XML b/server/subsonic/responses/.snapshots/Responses AlbumList without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses AlbumList without data should match .XML rename to server/subsonic/responses/.snapshots/Responses AlbumList without data should match .XML diff --git a/server/subsonic/responses/.snapshots/Responses ArtistInfo with data should match .JSON b/server/subsonic/responses/.snapshots/Responses ArtistInfo with data should match .JSON new file mode 100644 index 000000000..4d4c99f5f --- /dev/null +++ b/server/subsonic/responses/.snapshots/Responses ArtistInfo with data should match .JSON @@ -0,0 +1 @@ +{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","artistInfo":{"biography":"Black Sabbath is an English \u003ca target='_blank' href=\"http://www.last.fm/tag/heavy%20metal\" class=\"bbcode_tag\" rel=\"tag\"\u003eheavy metal\u003c/a\u003e band","musicBrainzId":"5182c1d9-c7d2-4dad-afa0-ccfeada921a8","lastFmUrl":"https://www.last.fm/music/Black+Sabbath","smallImageUrl":"https://userserve-ak.last.fm/serve/64/27904353.jpg","mediumImageUrl":"https://userserve-ak.last.fm/serve/126/27904353.jpg","largeImageUrl":"https://userserve-ak.last.fm/serve/_/27904353/Black+Sabbath+sabbath+1970.jpg","similarArtist":[{"id":"22","name":"Accept"},{"id":"101","name":"Bruce Dickinson"},{"id":"26","name":"Aerosmith"}]}} diff --git a/server/subsonic/responses/.snapshots/Responses ArtistInfo with data should match .XML b/server/subsonic/responses/.snapshots/Responses ArtistInfo with data should match .XML new file mode 100644 index 000000000..a3cc029b6 --- /dev/null +++ b/server/subsonic/responses/.snapshots/Responses ArtistInfo with data should match .XML @@ -0,0 +1 @@ +<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0"><artistInfo><biography>Black Sabbath is an English <a target='_blank' href="http://www.last.fm/tag/heavy%20metal" class="bbcode_tag" rel="tag">heavy metal</a> band</biography><musicBrainzId>5182c1d9-c7d2-4dad-afa0-ccfeada921a8</musicBrainzId><lastFmUrl>https://www.last.fm/music/Black+Sabbath</lastFmUrl><smallImageUrl>https://userserve-ak.last.fm/serve/64/27904353.jpg</smallImageUrl><mediumImageUrl>https://userserve-ak.last.fm/serve/126/27904353.jpg</mediumImageUrl><largeImageUrl>https://userserve-ak.last.fm/serve/_/27904353/Black+Sabbath+sabbath+1970.jpg</largeImageUrl><similarArtist id="22" name="Accept"></similarArtist><similarArtist id="101" name="Bruce Dickinson"></similarArtist><similarArtist id="26" name="Aerosmith"></similarArtist></artistInfo></subsonic-response> diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ArtistInfo without data should match .JSON b/server/subsonic/responses/.snapshots/Responses ArtistInfo without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ArtistInfo without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses ArtistInfo without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ArtistInfo without data should match .XML b/server/subsonic/responses/.snapshots/Responses ArtistInfo without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ArtistInfo without data should match .XML rename to server/subsonic/responses/.snapshots/Responses ArtistInfo without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Bookmarks with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Bookmarks with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Bookmarks with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Bookmarks with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Bookmarks with data should match .XML b/server/subsonic/responses/.snapshots/Responses Bookmarks with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Bookmarks with data should match .XML rename to server/subsonic/responses/.snapshots/Responses Bookmarks with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Bookmarks without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Bookmarks without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Bookmarks without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Bookmarks without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Bookmarks without data should match .XML b/server/subsonic/responses/.snapshots/Responses Bookmarks without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Bookmarks without data should match .XML rename to server/subsonic/responses/.snapshots/Responses Bookmarks without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Child with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Child with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Child with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Child with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Child with data should match .XML b/server/subsonic/responses/.snapshots/Responses Child with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Child with data should match .XML rename to server/subsonic/responses/.snapshots/Responses Child with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Directory with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Directory with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory with data should match .XML b/server/subsonic/responses/.snapshots/Responses Directory with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory with data should match .XML rename to server/subsonic/responses/.snapshots/Responses Directory with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Directory without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Directory without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory without data should match .XML b/server/subsonic/responses/.snapshots/Responses Directory without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Directory without data should match .XML rename to server/subsonic/responses/.snapshots/Responses Directory without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses EmptyResponse should match .JSON b/server/subsonic/responses/.snapshots/Responses EmptyResponse should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses EmptyResponse should match .JSON rename to server/subsonic/responses/.snapshots/Responses EmptyResponse should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses EmptyResponse should match .XML b/server/subsonic/responses/.snapshots/Responses EmptyResponse should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses EmptyResponse should match .XML rename to server/subsonic/responses/.snapshots/Responses EmptyResponse should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Genres with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Genres with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres with data should match .XML b/server/subsonic/responses/.snapshots/Responses Genres with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres with data should match .XML rename to server/subsonic/responses/.snapshots/Responses Genres with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Genres without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Genres without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres without data should match .XML b/server/subsonic/responses/.snapshots/Responses Genres without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Genres without data should match .XML rename to server/subsonic/responses/.snapshots/Responses Genres without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Indexes with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Indexes with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes with data should match .XML b/server/subsonic/responses/.snapshots/Responses Indexes with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes with data should match .XML rename to server/subsonic/responses/.snapshots/Responses Indexes with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Indexes without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Indexes without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes without data should match .XML b/server/subsonic/responses/.snapshots/Responses Indexes without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Indexes without data should match .XML rename to server/subsonic/responses/.snapshots/Responses Indexes without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses License should match .JSON b/server/subsonic/responses/.snapshots/Responses License should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses License should match .JSON rename to server/subsonic/responses/.snapshots/Responses License should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses License should match .XML b/server/subsonic/responses/.snapshots/Responses License should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses License should match .XML rename to server/subsonic/responses/.snapshots/Responses License should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Lyrics with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Lyrics with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Lyrics with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Lyrics with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Lyrics with data should match .XML b/server/subsonic/responses/.snapshots/Responses Lyrics with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Lyrics with data should match .XML rename to server/subsonic/responses/.snapshots/Responses Lyrics with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Lyrics without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Lyrics without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Lyrics without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Lyrics without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Lyrics without data should match .XML b/server/subsonic/responses/.snapshots/Responses Lyrics without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Lyrics without data should match .XML rename to server/subsonic/responses/.snapshots/Responses Lyrics without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders with data should match .JSON b/server/subsonic/responses/.snapshots/Responses MusicFolders with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses MusicFolders with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders with data should match .XML b/server/subsonic/responses/.snapshots/Responses MusicFolders with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders with data should match .XML rename to server/subsonic/responses/.snapshots/Responses MusicFolders with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders without data should match .JSON b/server/subsonic/responses/.snapshots/Responses MusicFolders without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses MusicFolders without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders without data should match .XML b/server/subsonic/responses/.snapshots/Responses MusicFolders without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses MusicFolders without data should match .XML rename to server/subsonic/responses/.snapshots/Responses MusicFolders without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses PlayQueue with data should match .JSON b/server/subsonic/responses/.snapshots/Responses PlayQueue with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses PlayQueue with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses PlayQueue with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses PlayQueue with data should match .XML b/server/subsonic/responses/.snapshots/Responses PlayQueue with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses PlayQueue with data should match .XML rename to server/subsonic/responses/.snapshots/Responses PlayQueue with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses PlayQueue without data should match .JSON b/server/subsonic/responses/.snapshots/Responses PlayQueue without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses PlayQueue without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses PlayQueue without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses PlayQueue without data should match .XML b/server/subsonic/responses/.snapshots/Responses PlayQueue without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses PlayQueue without data should match .XML rename to server/subsonic/responses/.snapshots/Responses PlayQueue without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Playlists with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Playlists with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists with data should match .XML b/server/subsonic/responses/.snapshots/Responses Playlists with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists with data should match .XML rename to server/subsonic/responses/.snapshots/Responses Playlists with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Playlists without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Playlists without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists without data should match .XML b/server/subsonic/responses/.snapshots/Responses Playlists without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Playlists without data should match .XML rename to server/subsonic/responses/.snapshots/Responses Playlists without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ScanStatus with data should match .JSON b/server/subsonic/responses/.snapshots/Responses ScanStatus with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ScanStatus with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses ScanStatus with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ScanStatus with data should match .XML b/server/subsonic/responses/.snapshots/Responses ScanStatus with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ScanStatus with data should match .XML rename to server/subsonic/responses/.snapshots/Responses ScanStatus with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ScanStatus without data should match .JSON b/server/subsonic/responses/.snapshots/Responses ScanStatus without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ScanStatus without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses ScanStatus without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ScanStatus without data should match .XML b/server/subsonic/responses/.snapshots/Responses ScanStatus without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ScanStatus without data should match .XML rename to server/subsonic/responses/.snapshots/Responses ScanStatus without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs with data should match .JSON b/server/subsonic/responses/.snapshots/Responses SimilarSongs with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses SimilarSongs with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs with data should match .XML b/server/subsonic/responses/.snapshots/Responses SimilarSongs with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs with data should match .XML rename to server/subsonic/responses/.snapshots/Responses SimilarSongs with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs without data should match .JSON b/server/subsonic/responses/.snapshots/Responses SimilarSongs without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses SimilarSongs without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs without data should match .XML b/server/subsonic/responses/.snapshots/Responses SimilarSongs without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs without data should match .XML rename to server/subsonic/responses/.snapshots/Responses SimilarSongs without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs2 with data should match .JSON b/server/subsonic/responses/.snapshots/Responses SimilarSongs2 with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs2 with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses SimilarSongs2 with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs2 with data should match .XML b/server/subsonic/responses/.snapshots/Responses SimilarSongs2 with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs2 with data should match .XML rename to server/subsonic/responses/.snapshots/Responses SimilarSongs2 with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs2 without data should match .JSON b/server/subsonic/responses/.snapshots/Responses SimilarSongs2 without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs2 without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses SimilarSongs2 without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs2 without data should match .XML b/server/subsonic/responses/.snapshots/Responses SimilarSongs2 without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses SimilarSongs2 without data should match .XML rename to server/subsonic/responses/.snapshots/Responses SimilarSongs2 without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses TopSongs with data should match .JSON b/server/subsonic/responses/.snapshots/Responses TopSongs with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses TopSongs with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses TopSongs with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses TopSongs with data should match .XML b/server/subsonic/responses/.snapshots/Responses TopSongs with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses TopSongs with data should match .XML rename to server/subsonic/responses/.snapshots/Responses TopSongs with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses TopSongs without data should match .JSON b/server/subsonic/responses/.snapshots/Responses TopSongs without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses TopSongs without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses TopSongs without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses TopSongs without data should match .XML b/server/subsonic/responses/.snapshots/Responses TopSongs without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses TopSongs without data should match .XML rename to server/subsonic/responses/.snapshots/Responses TopSongs without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses User with data should match .JSON b/server/subsonic/responses/.snapshots/Responses User with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses User with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses User with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses User with data should match .XML b/server/subsonic/responses/.snapshots/Responses User with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses User with data should match .XML rename to server/subsonic/responses/.snapshots/Responses User with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses User without data should match .JSON b/server/subsonic/responses/.snapshots/Responses User without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses User without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses User without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses User without data should match .XML b/server/subsonic/responses/.snapshots/Responses User without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses User without data should match .XML rename to server/subsonic/responses/.snapshots/Responses User without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Users with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Users with data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Users with data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Users with data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Users with data should match .XML b/server/subsonic/responses/.snapshots/Responses Users with data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Users with data should match .XML rename to server/subsonic/responses/.snapshots/Responses Users with data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Users without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Users without data should match .JSON similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Users without data should match .JSON rename to server/subsonic/responses/.snapshots/Responses Users without data should match .JSON diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Users without data should match .XML b/server/subsonic/responses/.snapshots/Responses Users without data should match .XML similarity index 100% rename from server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses Users without data should match .XML rename to server/subsonic/responses/.snapshots/Responses Users without data should match .XML diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ArtistInfo with data should match .JSON b/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ArtistInfo with data should match .JSON deleted file mode 100644 index 35d7071da..000000000 --- a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ArtistInfo with data should match .JSON +++ /dev/null @@ -1 +0,0 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","artistInfo":{"biography":"Black Sabbath is an English \u003ca target='_blank' href=\"http://www.last.fm/tag/heavy%20metal\" class=\"bbcode_tag\" rel=\"tag\"\u003eheavy metal\u003c/a\u003e band","musicBrainzId":"5182c1d9-c7d2-4dad-afa0-ccfeada921a8","lastFmUrl":"http://www.last.fm/music/Black+Sabbath","smallImageUrl":"http://userserve-ak.last.fm/serve/64/27904353.jpg","mediumImageUrl":"http://userserve-ak.last.fm/serve/126/27904353.jpg","largeImageUrl":"http://userserve-ak.last.fm/serve/_/27904353/Black+Sabbath+sabbath+1970.jpg","similarArtist":[{"id":"22","name":"Accept"},{"id":"101","name":"Bruce Dickinson"},{"id":"26","name":"Aerosmith"}]}} diff --git a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ArtistInfo with data should match .XML b/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ArtistInfo with data should match .XML deleted file mode 100644 index a1c26adbe..000000000 --- a/server/subsonic/responses/.snapshots/responses-snapshotMatcher-Match-Responses ArtistInfo with data should match .XML +++ /dev/null @@ -1 +0,0 @@ -<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0" type="navidrome" serverVersion="v0.0.0"><artistInfo><biography>Black Sabbath is an English <a target='_blank' href="http://www.last.fm/tag/heavy%20metal" class="bbcode_tag" rel="tag">heavy metal</a> band</biography><musicBrainzId>5182c1d9-c7d2-4dad-afa0-ccfeada921a8</musicBrainzId><lastFmUrl>http://www.last.fm/music/Black+Sabbath</lastFmUrl><smallImageUrl>http://userserve-ak.last.fm/serve/64/27904353.jpg</smallImageUrl><mediumImageUrl>http://userserve-ak.last.fm/serve/126/27904353.jpg</mediumImageUrl><largeImageUrl>http://userserve-ak.last.fm/serve/_/27904353/Black+Sabbath+sabbath+1970.jpg</largeImageUrl><similarArtist id="22" name="Accept"></similarArtist><similarArtist id="101" name="Bruce Dickinson"></similarArtist><similarArtist id="26" name="Aerosmith"></similarArtist></artistInfo></subsonic-response> diff --git a/server/subsonic/responses/responses_suite_test.go b/server/subsonic/responses/responses_suite_test.go index 365316c0d..8728b949a 100644 --- a/server/subsonic/responses/responses_suite_test.go +++ b/server/subsonic/responses/responses_suite_test.go @@ -1,9 +1,10 @@ package responses import ( + "strings" "testing" - "github.com/bradleyjkemp/cupaloy" + "github.com/bradleyjkemp/cupaloy/v2" "github.com/navidrome/navidrome/log" "github.com/onsi/ginkgo/v2" "github.com/onsi/gomega" @@ -26,15 +27,16 @@ type snapshotMatcher struct { } func (matcher snapshotMatcher) Match(actual interface{}) (success bool, err error) { - err = matcher.c.SnapshotMulti(ginkgo.CurrentSpecReport().FullText(), actual) + actualJson := strings.TrimSpace(string(actual.([]byte))) + err = matcher.c.SnapshotWithName(ginkgo.CurrentSpecReport().FullText(), actualJson) success = err == nil return } -func (matcher snapshotMatcher) FailureMessage(actual interface{}) (message string) { +func (matcher snapshotMatcher) FailureMessage(_ interface{}) (message string) { return "Expected to match saved snapshot\n" } -func (matcher snapshotMatcher) NegatedFailureMessage(actual interface{}) (message string) { +func (matcher snapshotMatcher) NegatedFailureMessage(_ interface{}) (message string) { return "Expected to not match saved snapshot\n" } diff --git a/server/subsonic/responses/responses_test.go b/server/subsonic/responses/responses_test.go index b65491123..4a2715f23 100644 --- a/server/subsonic/responses/responses_test.go +++ b/server/subsonic/responses/responses_test.go @@ -352,10 +352,10 @@ var _ = Describe("Responses", func() { BeforeEach(func() { response.ArtistInfo.Biography = `Black Sabbath is an English <a target='_blank' href="http://www.last.fm/tag/heavy%20metal" class="bbcode_tag" rel="tag">heavy metal</a> band` response.ArtistInfo.MusicBrainzID = "5182c1d9-c7d2-4dad-afa0-ccfeada921a8" - response.ArtistInfo.LastFmUrl = "http://www.last.fm/music/Black+Sabbath" - response.ArtistInfo.SmallImageUrl = "http://userserve-ak.last.fm/serve/64/27904353.jpg" - response.ArtistInfo.MediumImageUrl = "http://userserve-ak.last.fm/serve/126/27904353.jpg" - response.ArtistInfo.LargeImageUrl = "http://userserve-ak.last.fm/serve/_/27904353/Black+Sabbath+sabbath+1970.jpg" + response.ArtistInfo.LastFmUrl = "https://www.last.fm/music/Black+Sabbath" + response.ArtistInfo.SmallImageUrl = "https://userserve-ak.last.fm/serve/64/27904353.jpg" + response.ArtistInfo.MediumImageUrl = "https://userserve-ak.last.fm/serve/126/27904353.jpg" + response.ArtistInfo.LargeImageUrl = "https://userserve-ak.last.fm/serve/_/27904353/Black+Sabbath+sabbath+1970.jpg" response.ArtistInfo.SimilarArtist = []Artist{ {Id: "22", Name: "Accept"}, {Id: "101", Name: "Bruce Dickinson"},