diff --git a/server/subsonic/responses/.snapshots/Responses AlbumInfo with data should match .JSON b/server/subsonic/responses/.snapshots/Responses AlbumInfo with data should match .JSON index bd090769..329f03ee 100644 --- a/server/subsonic/responses/.snapshots/Responses AlbumInfo with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses AlbumInfo with data should match .JSON @@ -1 +1,15 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"albumInfo":{"notes":"Believe is the twenty-third studio album by American singer-actress Cher...","musicBrainzId":"03c91c40-49a6-44a7-90e7-a700edf97a62","lastFmUrl":"https://www.last.fm/music/Cher/Believe","smallImageUrl":"https://lastfm.freetls.fastly.net/i/u/34s/3b54885952161aaea4ce2965b2db1638.png","mediumImageUrl":"https://lastfm.freetls.fastly.net/i/u/64s/3b54885952161aaea4ce2965b2db1638.png","largeImageUrl":"https://lastfm.freetls.fastly.net/i/u/174s/3b54885952161aaea4ce2965b2db1638.png"}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "albumInfo": { + "notes": "Believe is the twenty-third studio album by American singer-actress Cher...", + "musicBrainzId": "03c91c40-49a6-44a7-90e7-a700edf97a62", + "lastFmUrl": "https://www.last.fm/music/Cher/Believe", + "smallImageUrl": "https://lastfm.freetls.fastly.net/i/u/34s/3b54885952161aaea4ce2965b2db1638.png", + "mediumImageUrl": "https://lastfm.freetls.fastly.net/i/u/64s/3b54885952161aaea4ce2965b2db1638.png", + "largeImageUrl": "https://lastfm.freetls.fastly.net/i/u/174s/3b54885952161aaea4ce2965b2db1638.png" + } +} diff --git a/server/subsonic/responses/.snapshots/Responses AlbumInfo with data should match .XML b/server/subsonic/responses/.snapshots/Responses AlbumInfo with data should match .XML index 4a1015d8..e06da821 100644 --- a/server/subsonic/responses/.snapshots/Responses AlbumInfo with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses AlbumInfo with data should match .XML @@ -1 +1,10 @@ -Believe is the twenty-third studio album by American singer-actress Cher...03c91c40-49a6-44a7-90e7-a700edf97a62https://www.last.fm/music/Cher/Believehttps://lastfm.freetls.fastly.net/i/u/34s/3b54885952161aaea4ce2965b2db1638.pnghttps://lastfm.freetls.fastly.net/i/u/64s/3b54885952161aaea4ce2965b2db1638.pnghttps://lastfm.freetls.fastly.net/i/u/174s/3b54885952161aaea4ce2965b2db1638.png + + + Believe is the twenty-third studio album by American singer-actress Cher... + 03c91c40-49a6-44a7-90e7-a700edf97a62 + https://www.last.fm/music/Cher/Believe + https://lastfm.freetls.fastly.net/i/u/34s/3b54885952161aaea4ce2965b2db1638.png + https://lastfm.freetls.fastly.net/i/u/64s/3b54885952161aaea4ce2965b2db1638.png + https://lastfm.freetls.fastly.net/i/u/174s/3b54885952161aaea4ce2965b2db1638.png + + diff --git a/server/subsonic/responses/.snapshots/Responses AlbumInfo without data should match .JSON b/server/subsonic/responses/.snapshots/Responses AlbumInfo without data should match .JSON index 8322d184..b67514b7 100644 --- a/server/subsonic/responses/.snapshots/Responses AlbumInfo without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses AlbumInfo without data should match .JSON @@ -1 +1,8 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"albumInfo":{}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "albumInfo": {} +} diff --git a/server/subsonic/responses/.snapshots/Responses AlbumInfo without data should match .XML b/server/subsonic/responses/.snapshots/Responses AlbumInfo without data should match .XML index 422a7546..fa8d0ced 100644 --- a/server/subsonic/responses/.snapshots/Responses AlbumInfo without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses AlbumInfo without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses AlbumList with data should match .JSON b/server/subsonic/responses/.snapshots/Responses AlbumList with data should match .JSON index e0e81290..dbbf6396 100644 --- a/server/subsonic/responses/.snapshots/Responses AlbumList with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses AlbumList with data should match .JSON @@ -1 +1,20 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"albumList":{"album":[{"id":"1","isDir":false,"title":"title","genres":[],"isVideo":false,"bpm":0,"comment":""}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "albumList": { + "album": [ + { + "id": "1", + "isDir": false, + "title": "title", + "genres": [], + "isVideo": false, + "bpm": 0, + "comment": "" + } + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses AlbumList with data should match .XML b/server/subsonic/responses/.snapshots/Responses AlbumList with data should match .XML index d6d09ace..d17a9e81 100644 --- a/server/subsonic/responses/.snapshots/Responses AlbumList with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses AlbumList with data should match .XML @@ -1 +1,5 @@ - + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses AlbumList without data should match .JSON b/server/subsonic/responses/.snapshots/Responses AlbumList without data should match .JSON index 441f17c9..4a668e5a 100644 --- a/server/subsonic/responses/.snapshots/Responses AlbumList without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses AlbumList without data should match .JSON @@ -1 +1,8 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"albumList":{}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "albumList": {} +} diff --git a/server/subsonic/responses/.snapshots/Responses AlbumList without data should match .XML b/server/subsonic/responses/.snapshots/Responses AlbumList without data should match .XML index 7647de2f..54a9a774 100644 --- a/server/subsonic/responses/.snapshots/Responses AlbumList without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses AlbumList without data should match .XML @@ -1 +1,3 @@ - + + + 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 index 6190d65e..2c07f964 100644 --- a/server/subsonic/responses/.snapshots/Responses ArtistInfo with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses ArtistInfo with data should match .JSON @@ -1 +1,29 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"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"}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "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 index d53a9d2b..4ed465ec 100644 --- a/server/subsonic/responses/.snapshots/Responses ArtistInfo with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses ArtistInfo with data should match .XML @@ -1 +1,13 @@ -Black Sabbath is an English <a target='_blank' href="http://www.last.fm/tag/heavy%20metal" class="bbcode_tag" rel="tag">heavy metal</a> band5182c1d9-c7d2-4dad-afa0-ccfeada921a8https://www.last.fm/music/Black+Sabbathhttps://userserve-ak.last.fm/serve/64/27904353.jpghttps://userserve-ak.last.fm/serve/126/27904353.jpghttps://userserve-ak.last.fm/serve/_/27904353/Black+Sabbath+sabbath+1970.jpg + + + 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 + 5182c1d9-c7d2-4dad-afa0-ccfeada921a8 + https://www.last.fm/music/Black+Sabbath + https://userserve-ak.last.fm/serve/64/27904353.jpg + https://userserve-ak.last.fm/serve/126/27904353.jpg + https://userserve-ak.last.fm/serve/_/27904353/Black+Sabbath+sabbath+1970.jpg + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses ArtistInfo without data should match .JSON b/server/subsonic/responses/.snapshots/Responses ArtistInfo without data should match .JSON index 43d477ab..215bd61b 100644 --- a/server/subsonic/responses/.snapshots/Responses ArtistInfo without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses ArtistInfo without data should match .JSON @@ -1 +1,8 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"artistInfo":{}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "artistInfo": {} +} diff --git a/server/subsonic/responses/.snapshots/Responses ArtistInfo without data should match .XML b/server/subsonic/responses/.snapshots/Responses ArtistInfo without data should match .XML index 8e2fa628..cc4fe25b 100644 --- a/server/subsonic/responses/.snapshots/Responses ArtistInfo without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses ArtistInfo without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses Bookmarks with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Bookmarks with data should match .JSON index 8eb6dd66..9c860017 100644 --- a/server/subsonic/responses/.snapshots/Responses Bookmarks with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Bookmarks with data should match .JSON @@ -1 +1,27 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"bookmarks":{"bookmark":[{"entry":{"id":"1","isDir":false,"title":"title","genres":[],"isVideo":false,"bpm":0,"comment":""},"position":123,"username":"user2","comment":"a comment","created":"0001-01-01T00:00:00Z","changed":"0001-01-01T00:00:00Z"}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "bookmarks": { + "bookmark": [ + { + "entry": { + "id": "1", + "isDir": false, + "title": "title", + "genres": [], + "isVideo": false, + "bpm": 0, + "comment": "" + }, + "position": 123, + "username": "user2", + "comment": "a comment", + "created": "0001-01-01T00:00:00Z", + "changed": "0001-01-01T00:00:00Z" + } + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Bookmarks with data should match .XML b/server/subsonic/responses/.snapshots/Responses Bookmarks with data should match .XML index ba1c967d..f753cdc8 100644 --- a/server/subsonic/responses/.snapshots/Responses Bookmarks with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Bookmarks with data should match .XML @@ -1 +1,7 @@ - + + + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses Bookmarks without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Bookmarks without data should match .JSON index 41dfd365..693beb1b 100644 --- a/server/subsonic/responses/.snapshots/Responses Bookmarks without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Bookmarks without data should match .JSON @@ -1 +1,8 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"bookmarks":{}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "bookmarks": {} +} diff --git a/server/subsonic/responses/.snapshots/Responses Bookmarks without data should match .XML b/server/subsonic/responses/.snapshots/Responses Bookmarks without data should match .XML index 9424d82a..f1365599 100644 --- a/server/subsonic/responses/.snapshots/Responses Bookmarks without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Bookmarks without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses Child with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Child with data should match .JSON index 8e1cf0d2..2321f3a0 100644 --- a/server/subsonic/responses/.snapshots/Responses Child with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Child with data should match .JSON @@ -1 +1,36 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"directory":{"child":[{"id":"1","isDir":true,"title":"title","album":"album","artist":"artist","track":1,"year":1985,"genre":"Rock","genres":[],"coverArt":"1","size":8421341,"contentType":"audio/flac","suffix":"flac","starred":"2016-03-02T20:30:00Z","transcodedContentType":"audio/mpeg","transcodedSuffix":"mp3","duration":146,"bitRate":320,"isVideo":false,"bpm":0,"comment":""}],"id":"1","name":"N"}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "directory": { + "child": [ + { + "id": "1", + "isDir": true, + "title": "title", + "album": "album", + "artist": "artist", + "track": 1, + "year": 1985, + "genre": "Rock", + "genres": [], + "coverArt": "1", + "size": 8421341, + "contentType": "audio/flac", + "suffix": "flac", + "starred": "2016-03-02T20:30:00Z", + "transcodedContentType": "audio/mpeg", + "transcodedSuffix": "mp3", + "duration": 146, + "bitRate": 320, + "isVideo": false, + "bpm": 0, + "comment": "" + } + ], + "id": "1", + "name": "N" + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Child with data should match .XML b/server/subsonic/responses/.snapshots/Responses Child with data should match .XML index 07d28bb5..32d8fdc8 100644 --- a/server/subsonic/responses/.snapshots/Responses Child with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Child with data should match .XML @@ -1 +1,5 @@ - + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses Directory with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Directory with data should match .JSON index 7cb1c740..05c5efc0 100644 --- a/server/subsonic/responses/.snapshots/Responses Directory with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Directory with data should match .JSON @@ -1 +1,22 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"directory":{"child":[{"id":"1","isDir":false,"title":"title","genres":[],"isVideo":false,"bpm":0,"comment":""}],"id":"1","name":"N"}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "directory": { + "child": [ + { + "id": "1", + "isDir": false, + "title": "title", + "genres": [], + "isVideo": false, + "bpm": 0, + "comment": "" + } + ], + "id": "1", + "name": "N" + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Directory with data should match .XML b/server/subsonic/responses/.snapshots/Responses Directory with data should match .XML index fb87a2d9..2f1da276 100644 --- a/server/subsonic/responses/.snapshots/Responses Directory with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Directory with data should match .XML @@ -1 +1,5 @@ - + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses Directory without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Directory without data should match .JSON index e66f5ac2..9636d1b7 100644 --- a/server/subsonic/responses/.snapshots/Responses Directory without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Directory without data should match .JSON @@ -1 +1,11 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"directory":{"id":"1","name":"N"}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "directory": { + "id": "1", + "name": "N" + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Directory without data should match .XML b/server/subsonic/responses/.snapshots/Responses Directory without data should match .XML index cf5cea64..44b98990 100644 --- a/server/subsonic/responses/.snapshots/Responses Directory without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Directory without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses EmptyResponse should match .JSON b/server/subsonic/responses/.snapshots/Responses EmptyResponse should match .JSON index 3150c9a6..0972d329 100644 --- a/server/subsonic/responses/.snapshots/Responses EmptyResponse should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses EmptyResponse should match .JSON @@ -1 +1,7 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true +} diff --git a/server/subsonic/responses/.snapshots/Responses Genres with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Genres with data should match .JSON index a81a9666..b38c9736 100644 --- a/server/subsonic/responses/.snapshots/Responses Genres with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Genres with data should match .JSON @@ -1 +1,26 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"genres":{"genre":[{"value":"Rock","songCount":1000,"albumCount":100},{"value":"Reggae","songCount":500,"albumCount":50},{"value":"Pop","songCount":0,"albumCount":0}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "genres": { + "genre": [ + { + "value": "Rock", + "songCount": 1000, + "albumCount": 100 + }, + { + "value": "Reggae", + "songCount": 500, + "albumCount": 50 + }, + { + "value": "Pop", + "songCount": 0, + "albumCount": 0 + } + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Genres with data should match .XML b/server/subsonic/responses/.snapshots/Responses Genres with data should match .XML index cc69c08a..02034e7a 100644 --- a/server/subsonic/responses/.snapshots/Responses Genres with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Genres with data should match .XML @@ -1 +1,7 @@ -RockReggaePop + + + Rock + Reggae + Pop + + diff --git a/server/subsonic/responses/.snapshots/Responses Genres without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Genres without data should match .JSON index 80049cd5..45c5a7bc 100644 --- a/server/subsonic/responses/.snapshots/Responses Genres without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Genres without data should match .JSON @@ -1 +1,8 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"genres":{}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "genres": {} +} diff --git a/server/subsonic/responses/.snapshots/Responses Genres without data should match .XML b/server/subsonic/responses/.snapshots/Responses Genres without data should match .XML index 48a18fa5..d0a66c3e 100644 --- a/server/subsonic/responses/.snapshots/Responses Genres without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Genres without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses Indexes with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Indexes with data should match .JSON index 3ae84683..585815fb 100644 --- a/server/subsonic/responses/.snapshots/Responses Indexes with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Indexes with data should match .JSON @@ -1 +1,26 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"indexes":{"index":[{"name":"A","artist":[{"id":"111","name":"aaa","albumCount":2,"starred":"2016-03-02T20:30:00Z","userRating":3,"artistImageUrl":"https://lastfm.freetls.fastly.net/i/u/300x300/2a96cbd8b46e442fc41c2b86b821562f.png"}]}],"lastModified":1,"ignoredArticles":"A"}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "indexes": { + "index": [ + { + "name": "A", + "artist": [ + { + "id": "111", + "name": "aaa", + "albumCount": 2, + "starred": "2016-03-02T20:30:00Z", + "userRating": 3, + "artistImageUrl": "https://lastfm.freetls.fastly.net/i/u/300x300/2a96cbd8b46e442fc41c2b86b821562f.png" + } + ] + } + ], + "lastModified": 1, + "ignoredArticles": "A" + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Indexes with data should match .XML b/server/subsonic/responses/.snapshots/Responses Indexes with data should match .XML index 92836929..86495a75 100644 --- a/server/subsonic/responses/.snapshots/Responses Indexes with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Indexes with data should match .XML @@ -1 +1,7 @@ - + + + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses Indexes without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Indexes without data should match .JSON index c5c0607d..4dbdc361 100644 --- a/server/subsonic/responses/.snapshots/Responses Indexes without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Indexes without data should match .JSON @@ -1 +1,11 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"indexes":{"lastModified":1,"ignoredArticles":"A"}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "indexes": { + "lastModified": 1, + "ignoredArticles": "A" + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Indexes without data should match .XML b/server/subsonic/responses/.snapshots/Responses Indexes without data should match .XML index b4cdef1d..fad3a53e 100644 --- a/server/subsonic/responses/.snapshots/Responses Indexes without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Indexes without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses InternetRadioStations with data should match .JSON b/server/subsonic/responses/.snapshots/Responses InternetRadioStations with data should match .JSON index eb1a8dc4..35552360 100644 --- a/server/subsonic/responses/.snapshots/Responses InternetRadioStations with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses InternetRadioStations with data should match .JSON @@ -1 +1,17 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"internetRadioStations":{"internetRadioStation":[{"id":"12345678","name":"Example Stream","streamUrl":"https://example.com/stream","homePageUrl":"https://example.com"}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "internetRadioStations": { + "internetRadioStation": [ + { + "id": "12345678", + "name": "Example Stream", + "streamUrl": "https://example.com/stream", + "homePageUrl": "https://example.com" + } + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses InternetRadioStations with data should match .XML b/server/subsonic/responses/.snapshots/Responses InternetRadioStations with data should match .XML index a0794eeb..bf65d41d 100644 --- a/server/subsonic/responses/.snapshots/Responses InternetRadioStations with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses InternetRadioStations with data should match .XML @@ -1 +1,5 @@ - + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses InternetRadioStations without data should match .JSON b/server/subsonic/responses/.snapshots/Responses InternetRadioStations without data should match .JSON index a5dfc5e1..f4cee5c8 100644 --- a/server/subsonic/responses/.snapshots/Responses InternetRadioStations without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses InternetRadioStations without data should match .JSON @@ -1 +1,8 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"internetRadioStations":{}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "internetRadioStations": {} +} diff --git a/server/subsonic/responses/.snapshots/Responses InternetRadioStations without data should match .XML b/server/subsonic/responses/.snapshots/Responses InternetRadioStations without data should match .XML index d670c317..1c5ae82a 100644 --- a/server/subsonic/responses/.snapshots/Responses InternetRadioStations without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses InternetRadioStations without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses License should match .JSON b/server/subsonic/responses/.snapshots/Responses License should match .JSON index f815a209..4052c549 100644 --- a/server/subsonic/responses/.snapshots/Responses License should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses License should match .JSON @@ -1 +1,10 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"license":{"valid":true}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "license": { + "valid": true + } +} diff --git a/server/subsonic/responses/.snapshots/Responses License should match .XML b/server/subsonic/responses/.snapshots/Responses License should match .XML index e5a90c46..dc56efab 100644 --- a/server/subsonic/responses/.snapshots/Responses License should match .XML +++ b/server/subsonic/responses/.snapshots/Responses License should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses Lyrics with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Lyrics with data should match .JSON index 204a358f..35833e00 100644 --- a/server/subsonic/responses/.snapshots/Responses Lyrics with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Lyrics with data should match .JSON @@ -1 +1,12 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"lyrics":{"artist":"Rick Astley","title":"Never Gonna Give You Up","value":"Never gonna give you up\n\t\t\t\tNever gonna let you down\n\t\t\t\tNever gonna run around and desert you\n\t\t\t\tNever gonna say goodbye"}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "lyrics": { + "artist": "Rick Astley", + "title": "Never Gonna Give You Up", + "value": "Never gonna give you up\n\t\t\t\tNever gonna let you down\n\t\t\t\tNever gonna run around and desert you\n\t\t\t\tNever gonna say goodbye" + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Lyrics with data should match .XML b/server/subsonic/responses/.snapshots/Responses Lyrics with data should match .XML index c7e6f82d..51f0032d 100644 --- a/server/subsonic/responses/.snapshots/Responses Lyrics with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Lyrics with data should match .XML @@ -1 +1,3 @@ -Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna say goodbye + + Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna say goodbye + diff --git a/server/subsonic/responses/.snapshots/Responses Lyrics without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Lyrics without data should match .JSON index 10f5c211..1094e9e1 100644 --- a/server/subsonic/responses/.snapshots/Responses Lyrics without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Lyrics without data should match .JSON @@ -1 +1,10 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"lyrics":{"value":""}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "lyrics": { + "value": "" + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Lyrics without data should match .XML b/server/subsonic/responses/.snapshots/Responses Lyrics without data should match .XML index 9abc77e1..cc1821d7 100644 --- a/server/subsonic/responses/.snapshots/Responses Lyrics without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Lyrics without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses MusicFolders with data should match .JSON b/server/subsonic/responses/.snapshots/Responses MusicFolders with data should match .JSON index fb79b75c..01631083 100644 --- a/server/subsonic/responses/.snapshots/Responses MusicFolders with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses MusicFolders with data should match .JSON @@ -1 +1,19 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"musicFolders":{"musicFolder":[{"id":111,"name":"aaa"},{"id":222,"name":"bbb"}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "musicFolders": { + "musicFolder": [ + { + "id": 111, + "name": "aaa" + }, + { + "id": 222, + "name": "bbb" + } + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses MusicFolders with data should match .XML b/server/subsonic/responses/.snapshots/Responses MusicFolders with data should match .XML index da940c3f..3171c6f2 100644 --- a/server/subsonic/responses/.snapshots/Responses MusicFolders with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses MusicFolders with data should match .XML @@ -1 +1,6 @@ - + + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses MusicFolders without data should match .JSON b/server/subsonic/responses/.snapshots/Responses MusicFolders without data should match .JSON index ee512ae4..b2fdd22a 100644 --- a/server/subsonic/responses/.snapshots/Responses MusicFolders without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses MusicFolders without data should match .JSON @@ -1 +1,8 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"musicFolders":{}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "musicFolders": {} +} diff --git a/server/subsonic/responses/.snapshots/Responses MusicFolders without data should match .XML b/server/subsonic/responses/.snapshots/Responses MusicFolders without data should match .XML index 63848d75..12b4ff9c 100644 --- a/server/subsonic/responses/.snapshots/Responses MusicFolders without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses MusicFolders without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses PlayQueue with data should match .JSON b/server/subsonic/responses/.snapshots/Responses PlayQueue with data should match .JSON index b9dba55c..bbc33ddb 100644 --- a/server/subsonic/responses/.snapshots/Responses PlayQueue with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses PlayQueue with data should match .JSON @@ -1 +1,25 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"playQueue":{"entry":[{"id":"1","isDir":false,"title":"title","genres":[],"isVideo":false,"bpm":0,"comment":""}],"current":"111","position":243,"username":"user1","changed":"0001-01-01T00:00:00Z","changedBy":"a_client"}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "playQueue": { + "entry": [ + { + "id": "1", + "isDir": false, + "title": "title", + "genres": [], + "isVideo": false, + "bpm": 0, + "comment": "" + } + ], + "current": "111", + "position": 243, + "username": "user1", + "changed": "0001-01-01T00:00:00Z", + "changedBy": "a_client" + } +} diff --git a/server/subsonic/responses/.snapshots/Responses PlayQueue with data should match .XML b/server/subsonic/responses/.snapshots/Responses PlayQueue with data should match .XML index defcd4f5..5d7155d4 100644 --- a/server/subsonic/responses/.snapshots/Responses PlayQueue with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses PlayQueue with data should match .XML @@ -1 +1,5 @@ - + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses PlayQueue without data should match .JSON b/server/subsonic/responses/.snapshots/Responses PlayQueue without data should match .JSON index d13e3ae8..7af12aee 100644 --- a/server/subsonic/responses/.snapshots/Responses PlayQueue without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses PlayQueue without data should match .JSON @@ -1 +1,11 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"playQueue":{"username":"","changedBy":""}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "playQueue": { + "username": "", + "changedBy": "" + } +} diff --git a/server/subsonic/responses/.snapshots/Responses PlayQueue without data should match .XML b/server/subsonic/responses/.snapshots/Responses PlayQueue without data should match .XML index b2a09b36..1a3e0b52 100644 --- a/server/subsonic/responses/.snapshots/Responses PlayQueue without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses PlayQueue without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses Playlists with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Playlists with data should match .JSON index 9f1f57e0..3c87c80b 100644 --- a/server/subsonic/responses/.snapshots/Responses Playlists with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Playlists with data should match .JSON @@ -1 +1,32 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"playlists":{"playlist":[{"id":"111","name":"aaa","comment":"comment","songCount":2,"duration":120,"public":true,"owner":"admin","created":"0001-01-01T00:00:00Z","changed":"0001-01-01T00:00:00Z","coverArt":"pl-123123123123"},{"id":"222","name":"bbb","songCount":0,"duration":0,"public":false,"created":"0001-01-01T00:00:00Z","changed":"0001-01-01T00:00:00Z"}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "playlists": { + "playlist": [ + { + "id": "111", + "name": "aaa", + "comment": "comment", + "songCount": 2, + "duration": 120, + "public": true, + "owner": "admin", + "created": "0001-01-01T00:00:00Z", + "changed": "0001-01-01T00:00:00Z", + "coverArt": "pl-123123123123" + }, + { + "id": "222", + "name": "bbb", + "songCount": 0, + "duration": 0, + "public": false, + "created": "0001-01-01T00:00:00Z", + "changed": "0001-01-01T00:00:00Z" + } + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Playlists with data should match .XML b/server/subsonic/responses/.snapshots/Responses Playlists with data should match .XML index cd6d1cca..91a71d28 100644 --- a/server/subsonic/responses/.snapshots/Responses Playlists with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Playlists with data should match .XML @@ -1 +1,6 @@ - + + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses Playlists without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Playlists without data should match .JSON index cd9ece06..4a55658d 100644 --- a/server/subsonic/responses/.snapshots/Responses Playlists without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Playlists without data should match .JSON @@ -1 +1,8 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"playlists":{}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "playlists": {} +} diff --git a/server/subsonic/responses/.snapshots/Responses Playlists without data should match .XML b/server/subsonic/responses/.snapshots/Responses Playlists without data should match .XML index 90bf400e..0c091fe9 100644 --- a/server/subsonic/responses/.snapshots/Responses Playlists without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Playlists without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses ScanStatus with data should match .JSON b/server/subsonic/responses/.snapshots/Responses ScanStatus with data should match .JSON index 8e8b0e1b..576c5905 100644 --- a/server/subsonic/responses/.snapshots/Responses ScanStatus with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses ScanStatus with data should match .JSON @@ -1 +1,13 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"scanStatus":{"scanning":true,"count":456,"folderCount":123,"lastScan":"2006-01-02T15:04:00Z"}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "scanStatus": { + "scanning": true, + "count": 456, + "folderCount": 123, + "lastScan": "2006-01-02T15:04:00Z" + } +} diff --git a/server/subsonic/responses/.snapshots/Responses ScanStatus with data should match .XML b/server/subsonic/responses/.snapshots/Responses ScanStatus with data should match .XML index 69c2e9c0..fb6432bb 100644 --- a/server/subsonic/responses/.snapshots/Responses ScanStatus with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses ScanStatus with data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses ScanStatus without data should match .JSON b/server/subsonic/responses/.snapshots/Responses ScanStatus without data should match .JSON index 4b65e3fe..d880a2de 100644 --- a/server/subsonic/responses/.snapshots/Responses ScanStatus without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses ScanStatus without data should match .JSON @@ -1 +1,12 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"scanStatus":{"scanning":false,"count":0,"folderCount":0}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "scanStatus": { + "scanning": false, + "count": 0, + "folderCount": 0 + } +} diff --git a/server/subsonic/responses/.snapshots/Responses ScanStatus without data should match .XML b/server/subsonic/responses/.snapshots/Responses ScanStatus without data should match .XML index 9d3b38d1..6e9156ea 100644 --- a/server/subsonic/responses/.snapshots/Responses ScanStatus without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses ScanStatus without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses Shares with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Shares with data should match .JSON index 0eac71e0..1547d745 100644 --- a/server/subsonic/responses/.snapshots/Responses Shares with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Shares with data should match .JSON @@ -1 +1,47 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"shares":{"share":[{"entry":[{"id":"1","isDir":false,"title":"title","album":"album","artist":"artist","genres":[],"duration":120,"isVideo":false,"bpm":0,"comment":""},{"id":"2","isDir":false,"title":"title 2","album":"album","artist":"artist","genres":[],"duration":300,"isVideo":false,"bpm":0,"comment":""}],"id":"ABC123","url":"http://localhost/p/ABC123","description":"Check it out!","username":"deluan","created":"0001-01-01T00:00:00Z","expires":"0001-01-01T00:00:00Z","lastVisited":"0001-01-01T00:00:00Z","visitCount":2}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "shares": { + "share": [ + { + "entry": [ + { + "id": "1", + "isDir": false, + "title": "title", + "album": "album", + "artist": "artist", + "genres": [], + "duration": 120, + "isVideo": false, + "bpm": 0, + "comment": "" + }, + { + "id": "2", + "isDir": false, + "title": "title 2", + "album": "album", + "artist": "artist", + "genres": [], + "duration": 300, + "isVideo": false, + "bpm": 0, + "comment": "" + } + ], + "id": "ABC123", + "url": "http://localhost/p/ABC123", + "description": "Check it out!", + "username": "deluan", + "created": "0001-01-01T00:00:00Z", + "expires": "0001-01-01T00:00:00Z", + "lastVisited": "0001-01-01T00:00:00Z", + "visitCount": 2 + } + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Shares with data should match .XML b/server/subsonic/responses/.snapshots/Responses Shares with data should match .XML index 9a628c66..de0ba71d 100644 --- a/server/subsonic/responses/.snapshots/Responses Shares with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Shares with data should match .XML @@ -1 +1,8 @@ - + + + + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses Shares without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Shares without data should match .JSON index bf12c71e..393e1ab3 100644 --- a/server/subsonic/responses/.snapshots/Responses Shares without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Shares without data should match .JSON @@ -1 +1,8 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"shares":{}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "shares": {} +} diff --git a/server/subsonic/responses/.snapshots/Responses Shares without data should match .XML b/server/subsonic/responses/.snapshots/Responses Shares without data should match .XML index 6b8aec3f..4b9dde4e 100644 --- a/server/subsonic/responses/.snapshots/Responses Shares without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Shares without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses SimilarSongs with data should match .JSON b/server/subsonic/responses/.snapshots/Responses SimilarSongs with data should match .JSON index a67febe7..96c42074 100644 --- a/server/subsonic/responses/.snapshots/Responses SimilarSongs with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses SimilarSongs with data should match .JSON @@ -1 +1,20 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"similarSongs":{"song":[{"id":"1","isDir":false,"title":"title","genres":[],"isVideo":false,"bpm":0,"comment":""}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "similarSongs": { + "song": [ + { + "id": "1", + "isDir": false, + "title": "title", + "genres": [], + "isVideo": false, + "bpm": 0, + "comment": "" + } + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses SimilarSongs with data should match .XML b/server/subsonic/responses/.snapshots/Responses SimilarSongs with data should match .XML index 39429cbe..bfd6c31e 100644 --- a/server/subsonic/responses/.snapshots/Responses SimilarSongs with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses SimilarSongs with data should match .XML @@ -1 +1,5 @@ - + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses SimilarSongs without data should match .JSON b/server/subsonic/responses/.snapshots/Responses SimilarSongs without data should match .JSON index 642ee62b..37092e67 100644 --- a/server/subsonic/responses/.snapshots/Responses SimilarSongs without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses SimilarSongs without data should match .JSON @@ -1 +1,8 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"similarSongs":{}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "similarSongs": {} +} diff --git a/server/subsonic/responses/.snapshots/Responses SimilarSongs without data should match .XML b/server/subsonic/responses/.snapshots/Responses SimilarSongs without data should match .XML index ff1ad253..49ffa3eb 100644 --- a/server/subsonic/responses/.snapshots/Responses SimilarSongs without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses SimilarSongs without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses SimilarSongs2 with data should match .JSON b/server/subsonic/responses/.snapshots/Responses SimilarSongs2 with data should match .JSON index 7887668a..45aaf997 100644 --- a/server/subsonic/responses/.snapshots/Responses SimilarSongs2 with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses SimilarSongs2 with data should match .JSON @@ -1 +1,20 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"similarSongs2":{"song":[{"id":"1","isDir":false,"title":"title","genres":[],"isVideo":false,"bpm":0,"comment":""}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "similarSongs2": { + "song": [ + { + "id": "1", + "isDir": false, + "title": "title", + "genres": [], + "isVideo": false, + "bpm": 0, + "comment": "" + } + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses SimilarSongs2 with data should match .XML b/server/subsonic/responses/.snapshots/Responses SimilarSongs2 with data should match .XML index 1140d098..00da8075 100644 --- a/server/subsonic/responses/.snapshots/Responses SimilarSongs2 with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses SimilarSongs2 with data should match .XML @@ -1 +1,5 @@ - + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses SimilarSongs2 without data should match .JSON b/server/subsonic/responses/.snapshots/Responses SimilarSongs2 without data should match .JSON index e7e22062..24d873e8 100644 --- a/server/subsonic/responses/.snapshots/Responses SimilarSongs2 without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses SimilarSongs2 without data should match .JSON @@ -1 +1,8 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"similarSongs2":{}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "similarSongs2": {} +} diff --git a/server/subsonic/responses/.snapshots/Responses SimilarSongs2 without data should match .XML b/server/subsonic/responses/.snapshots/Responses SimilarSongs2 without data should match .XML index 0c07e934..ef8535e1 100644 --- a/server/subsonic/responses/.snapshots/Responses SimilarSongs2 without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses SimilarSongs2 without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses TopSongs with data should match .JSON b/server/subsonic/responses/.snapshots/Responses TopSongs with data should match .JSON index 6e5ea099..4deb5531 100644 --- a/server/subsonic/responses/.snapshots/Responses TopSongs with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses TopSongs with data should match .JSON @@ -1 +1,20 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"topSongs":{"song":[{"id":"1","isDir":false,"title":"title","genres":[],"isVideo":false,"bpm":0,"comment":""}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "topSongs": { + "song": [ + { + "id": "1", + "isDir": false, + "title": "title", + "genres": [], + "isVideo": false, + "bpm": 0, + "comment": "" + } + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses TopSongs with data should match .XML b/server/subsonic/responses/.snapshots/Responses TopSongs with data should match .XML index 34c8b82e..1acf56f1 100644 --- a/server/subsonic/responses/.snapshots/Responses TopSongs with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses TopSongs with data should match .XML @@ -1 +1,5 @@ - + + + + + diff --git a/server/subsonic/responses/.snapshots/Responses TopSongs without data should match .JSON b/server/subsonic/responses/.snapshots/Responses TopSongs without data should match .JSON index dba6277c..1dc04ae3 100644 --- a/server/subsonic/responses/.snapshots/Responses TopSongs without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses TopSongs without data should match .JSON @@ -1 +1,8 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"topSongs":{}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "topSongs": {} +} diff --git a/server/subsonic/responses/.snapshots/Responses TopSongs without data should match .XML b/server/subsonic/responses/.snapshots/Responses TopSongs without data should match .XML index 479cf867..28429110 100644 --- a/server/subsonic/responses/.snapshots/Responses TopSongs without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses TopSongs without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses User with data should match .JSON b/server/subsonic/responses/.snapshots/Responses User with data should match .JSON index f54aba0d..9581a7f1 100644 --- a/server/subsonic/responses/.snapshots/Responses User with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses User with data should match .JSON @@ -1 +1,27 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"user":{"username":"deluan","email":"navidrome@deluan.com","scrobblingEnabled":false,"adminRole":false,"settingsRole":false,"downloadRole":false,"uploadRole":false,"playlistRole":false,"coverArtRole":false,"commentRole":false,"podcastRole":false,"streamRole":false,"jukeboxRole":false,"shareRole":false,"videoConversionRole":false,"folder":[1]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "user": { + "username": "deluan", + "email": "navidrome@deluan.com", + "scrobblingEnabled": false, + "adminRole": false, + "settingsRole": false, + "downloadRole": false, + "uploadRole": false, + "playlistRole": false, + "coverArtRole": false, + "commentRole": false, + "podcastRole": false, + "streamRole": false, + "jukeboxRole": false, + "shareRole": false, + "videoConversionRole": false, + "folder": [ + 1 + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses User with data should match .XML b/server/subsonic/responses/.snapshots/Responses User with data should match .XML index cc107ad2..e3dafa52 100644 --- a/server/subsonic/responses/.snapshots/Responses User with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses User with data should match .XML @@ -1 +1,5 @@ -1 + + + 1 + + diff --git a/server/subsonic/responses/.snapshots/Responses User without data should match .JSON b/server/subsonic/responses/.snapshots/Responses User without data should match .JSON index f904447a..8da9efca 100644 --- a/server/subsonic/responses/.snapshots/Responses User without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses User without data should match .JSON @@ -1 +1,23 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"user":{"username":"deluan","scrobblingEnabled":false,"adminRole":false,"settingsRole":false,"downloadRole":false,"uploadRole":false,"playlistRole":false,"coverArtRole":false,"commentRole":false,"podcastRole":false,"streamRole":false,"jukeboxRole":false,"shareRole":false,"videoConversionRole":false}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "user": { + "username": "deluan", + "scrobblingEnabled": false, + "adminRole": false, + "settingsRole": false, + "downloadRole": false, + "uploadRole": false, + "playlistRole": false, + "coverArtRole": false, + "commentRole": false, + "podcastRole": false, + "streamRole": false, + "jukeboxRole": false, + "shareRole": false, + "videoConversionRole": false + } +} diff --git a/server/subsonic/responses/.snapshots/Responses User without data should match .XML b/server/subsonic/responses/.snapshots/Responses User without data should match .XML index 094b1e33..3ad33d7e 100644 --- a/server/subsonic/responses/.snapshots/Responses User without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses User without data should match .XML @@ -1 +1,3 @@ - + + + diff --git a/server/subsonic/responses/.snapshots/Responses Users with data should match .JSON b/server/subsonic/responses/.snapshots/Responses Users with data should match .JSON index eee65ff2..ba29ba2e 100644 --- a/server/subsonic/responses/.snapshots/Responses Users with data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Users with data should match .JSON @@ -1 +1,31 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"users":{"user":[{"username":"deluan","email":"navidrome@deluan.com","scrobblingEnabled":false,"adminRole":true,"settingsRole":false,"downloadRole":false,"uploadRole":false,"playlistRole":false,"coverArtRole":false,"commentRole":false,"podcastRole":false,"streamRole":false,"jukeboxRole":false,"shareRole":false,"videoConversionRole":false,"folder":[1]}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "users": { + "user": [ + { + "username": "deluan", + "email": "navidrome@deluan.com", + "scrobblingEnabled": false, + "adminRole": true, + "settingsRole": false, + "downloadRole": false, + "uploadRole": false, + "playlistRole": false, + "coverArtRole": false, + "commentRole": false, + "podcastRole": false, + "streamRole": false, + "jukeboxRole": false, + "shareRole": false, + "videoConversionRole": false, + "folder": [ + 1 + ] + } + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Users with data should match .XML b/server/subsonic/responses/.snapshots/Responses Users with data should match .XML index 4c5ebbe9..d3110592 100644 --- a/server/subsonic/responses/.snapshots/Responses Users with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Users with data should match .XML @@ -1 +1,7 @@ -1 + + + + 1 + + + diff --git a/server/subsonic/responses/.snapshots/Responses Users without data should match .JSON b/server/subsonic/responses/.snapshots/Responses Users without data should match .JSON index 601ea1d6..41ecdd67 100644 --- a/server/subsonic/responses/.snapshots/Responses Users without data should match .JSON +++ b/server/subsonic/responses/.snapshots/Responses Users without data should match .JSON @@ -1 +1,27 @@ -{"status":"ok","version":"1.8.0","type":"navidrome","serverVersion":"v0.0.0","openSubsonic":true,"users":{"user":[{"username":"deluan","scrobblingEnabled":false,"adminRole":false,"settingsRole":false,"downloadRole":false,"uploadRole":false,"playlistRole":false,"coverArtRole":false,"commentRole":false,"podcastRole":false,"streamRole":false,"jukeboxRole":false,"shareRole":false,"videoConversionRole":false}]}} +{ + "status": "ok", + "version": "1.8.0", + "type": "navidrome", + "serverVersion": "v0.0.0", + "openSubsonic": true, + "users": { + "user": [ + { + "username": "deluan", + "scrobblingEnabled": false, + "adminRole": false, + "settingsRole": false, + "downloadRole": false, + "uploadRole": false, + "playlistRole": false, + "coverArtRole": false, + "commentRole": false, + "podcastRole": false, + "streamRole": false, + "jukeboxRole": false, + "shareRole": false, + "videoConversionRole": false + } + ] + } +} diff --git a/server/subsonic/responses/.snapshots/Responses Users without data should match .XML b/server/subsonic/responses/.snapshots/Responses Users without data should match .XML index fb7ce116..fad50ed4 100644 --- a/server/subsonic/responses/.snapshots/Responses Users without data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Users without data should match .XML @@ -1 +1,5 @@ - + + + + + diff --git a/server/subsonic/responses/responses_test.go b/server/subsonic/responses/responses_test.go index 3945aa67..c2bc4c2b 100644 --- a/server/subsonic/responses/responses_test.go +++ b/server/subsonic/responses/responses_test.go @@ -30,10 +30,10 @@ var _ = Describe("Responses", func() { Describe("EmptyResponse", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -42,10 +42,10 @@ var _ = Describe("Responses", func() { response.License = &License{Valid: true} }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -56,10 +56,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -72,10 +72,10 @@ var _ = Describe("Responses", func() { }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -87,10 +87,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -112,10 +112,10 @@ var _ = Describe("Responses", func() { }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -136,10 +136,10 @@ var _ = Describe("Responses", func() { }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -151,10 +151,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -166,10 +166,10 @@ var _ = Describe("Responses", func() { }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -181,10 +181,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -196,10 +196,10 @@ var _ = Describe("Responses", func() { }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -211,10 +211,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -225,10 +225,10 @@ var _ = Describe("Responses", func() { }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -241,10 +241,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -258,10 +258,10 @@ var _ = Describe("Responses", func() { }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -273,10 +273,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -301,10 +301,10 @@ var _ = Describe("Responses", func() { }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -316,10 +316,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -333,10 +333,10 @@ var _ = Describe("Responses", func() { }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -348,10 +348,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -366,10 +366,10 @@ var _ = Describe("Responses", func() { }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -381,10 +381,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -403,10 +403,10 @@ var _ = Describe("Responses", func() { } }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -419,10 +419,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -433,10 +433,10 @@ var _ = Describe("Responses", func() { response.TopSongs.Song = child }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -448,10 +448,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -462,10 +462,10 @@ var _ = Describe("Responses", func() { response.SimilarSongs.Song = child }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -477,10 +477,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -491,10 +491,10 @@ var _ = Describe("Responses", func() { response.SimilarSongs2.Song = child }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -506,10 +506,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -525,10 +525,10 @@ var _ = Describe("Responses", func() { response.PlayQueue.Entry = child }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -540,10 +540,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -566,10 +566,10 @@ var _ = Describe("Responses", func() { response.Shares.Share = []Share{share} }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -581,10 +581,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -601,10 +601,10 @@ var _ = Describe("Responses", func() { response.Bookmarks.Bookmark = []Bookmark{bmk} }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -616,10 +616,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -635,10 +635,10 @@ var _ = Describe("Responses", func() { } }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) }) @@ -650,10 +650,10 @@ var _ = Describe("Responses", func() { Context("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -667,10 +667,10 @@ var _ = Describe("Responses", func() { Never gonna say goodbye` }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -683,10 +683,10 @@ var _ = Describe("Responses", func() { Describe("without data", func() { It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) @@ -703,10 +703,10 @@ var _ = Describe("Responses", func() { }) It("should match .XML", func() { - Expect(xml.Marshal(response)).To(MatchSnapshot()) + Expect(xml.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) It("should match .JSON", func() { - Expect(json.Marshal(response)).To(MatchSnapshot()) + Expect(json.MarshalIndent(response, "", " ")).To(MatchSnapshot()) }) }) })