|
|
@ -11,7 +11,7 @@ namespace NzbDrone.Integration.Test.ApiTests
|
|
|
|
[Test, Order(0)]
|
|
|
|
[Test, Order(0)]
|
|
|
|
public void missing_should_be_empty()
|
|
|
|
public void missing_should_be_empty()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
EnsureNoArtist("266189", "The Blacklist");
|
|
|
|
EnsureNoArtist("8ac6cc32-8ddf-43b1-9ac4-4b04f9053176", "Alien Ant Farm");
|
|
|
|
|
|
|
|
|
|
|
|
var result = WantedMissing.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
|
var result = WantedMissing.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
|
|
|
|
|
|
|
|
@ -21,7 +21,7 @@ namespace NzbDrone.Integration.Test.ApiTests
|
|
|
|
[Test, Order(1)]
|
|
|
|
[Test, Order(1)]
|
|
|
|
public void missing_should_have_monitored_items()
|
|
|
|
public void missing_should_have_monitored_items()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
EnsureArtist("266189", "The Blacklist", true);
|
|
|
|
EnsureArtist("8ac6cc32-8ddf-43b1-9ac4-4b04f9053176", "Alien Ant Farm", true);
|
|
|
|
|
|
|
|
|
|
|
|
var result = WantedMissing.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
|
var result = WantedMissing.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
|
|
|
|
|
|
|
|
@ -31,7 +31,7 @@ namespace NzbDrone.Integration.Test.ApiTests
|
|
|
|
[Test, Order(1)]
|
|
|
|
[Test, Order(1)]
|
|
|
|
public void missing_should_have_artist()
|
|
|
|
public void missing_should_have_artist()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
EnsureArtist("266189", "The Blacklist", true);
|
|
|
|
EnsureArtist("8ac6cc32-8ddf-43b1-9ac4-4b04f9053176", "Alien Ant Farm", true);
|
|
|
|
|
|
|
|
|
|
|
|
var result = WantedMissing.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
|
var result = WantedMissing.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
|
|
|
|
|
|
|
|
@ -43,7 +43,7 @@ namespace NzbDrone.Integration.Test.ApiTests
|
|
|
|
public void cutoff_should_have_monitored_items()
|
|
|
|
public void cutoff_should_have_monitored_items()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
EnsureProfileCutoff(1, Quality.MP3_256);
|
|
|
|
EnsureProfileCutoff(1, Quality.MP3_256);
|
|
|
|
var artist = EnsureArtist("266189", "The Blacklist", true);
|
|
|
|
var artist = EnsureArtist("8ac6cc32-8ddf-43b1-9ac4-4b04f9053176", "Alien Ant Farm", true);
|
|
|
|
EnsureTrackFile(artist, 1, 1, Quality.MP3_192);
|
|
|
|
EnsureTrackFile(artist, 1, 1, Quality.MP3_192);
|
|
|
|
|
|
|
|
|
|
|
|
var result = WantedCutoffUnmet.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
|
var result = WantedCutoffUnmet.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
@ -54,7 +54,7 @@ namespace NzbDrone.Integration.Test.ApiTests
|
|
|
|
[Test, Order(1)]
|
|
|
|
[Test, Order(1)]
|
|
|
|
public void missing_should_not_have_unmonitored_items()
|
|
|
|
public void missing_should_not_have_unmonitored_items()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
EnsureArtist("266189", "The Blacklist", false);
|
|
|
|
EnsureArtist("8ac6cc32-8ddf-43b1-9ac4-4b04f9053176", "Alien Ant Farm", false);
|
|
|
|
|
|
|
|
|
|
|
|
var result = WantedMissing.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
|
var result = WantedMissing.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
|
|
|
|
|
|
|
|
@ -65,7 +65,7 @@ namespace NzbDrone.Integration.Test.ApiTests
|
|
|
|
public void cutoff_should_not_have_unmonitored_items()
|
|
|
|
public void cutoff_should_not_have_unmonitored_items()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
EnsureProfileCutoff(1, Quality.MP3_256);
|
|
|
|
EnsureProfileCutoff(1, Quality.MP3_256);
|
|
|
|
var artist = EnsureArtist("266189", "The Blacklist", false);
|
|
|
|
var artist = EnsureArtist("8ac6cc32-8ddf-43b1-9ac4-4b04f9053176", "Alien Ant Farm", false);
|
|
|
|
EnsureTrackFile(artist, 1, 1, Quality.MP3_192);
|
|
|
|
EnsureTrackFile(artist, 1, 1, Quality.MP3_192);
|
|
|
|
|
|
|
|
|
|
|
|
var result = WantedCutoffUnmet.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
|
var result = WantedCutoffUnmet.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
@ -77,19 +77,19 @@ namespace NzbDrone.Integration.Test.ApiTests
|
|
|
|
public void cutoff_should_have_artist()
|
|
|
|
public void cutoff_should_have_artist()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
EnsureProfileCutoff(1, Quality.MP3_256);
|
|
|
|
EnsureProfileCutoff(1, Quality.MP3_256);
|
|
|
|
var artist = EnsureArtist("266189", "The Blacklist", true);
|
|
|
|
var artist = EnsureArtist("8ac6cc32-8ddf-43b1-9ac4-4b04f9053176", "Alien Ant Farm", true);
|
|
|
|
EnsureTrackFile(artist, 1, 1, Quality.MP3_192);
|
|
|
|
EnsureTrackFile(artist, 1, 1, Quality.MP3_192);
|
|
|
|
|
|
|
|
|
|
|
|
var result = WantedCutoffUnmet.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
|
var result = WantedCutoffUnmet.GetPaged(0, 15, "releaseDate", "desc");
|
|
|
|
|
|
|
|
|
|
|
|
result.Records.First().Artist.Should().NotBeNull();
|
|
|
|
result.Records.First().Artist.Should().NotBeNull();
|
|
|
|
result.Records.First().Artist.ArtistName.Should().Be("The Blacklist");
|
|
|
|
result.Records.First().Artist.ArtistName.Should().Be("Alien Ant Farm");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test, Order(2)]
|
|
|
|
[Test, Order(2)]
|
|
|
|
public void missing_should_have_unmonitored_items()
|
|
|
|
public void missing_should_have_unmonitored_items()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
EnsureArtist("266189", "The Blacklist", false);
|
|
|
|
EnsureArtist("8ac6cc32-8ddf-43b1-9ac4-4b04f9053176", "Alien Ant Farm", false);
|
|
|
|
|
|
|
|
|
|
|
|
var result = WantedMissing.GetPaged(0, 15, "releaseDate", "desc", "monitored", "false");
|
|
|
|
var result = WantedMissing.GetPaged(0, 15, "releaseDate", "desc", "monitored", "false");
|
|
|
|
|
|
|
|
|
|
|
@ -100,7 +100,7 @@ namespace NzbDrone.Integration.Test.ApiTests
|
|
|
|
public void cutoff_should_have_unmonitored_items()
|
|
|
|
public void cutoff_should_have_unmonitored_items()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
EnsureProfileCutoff(1, Quality.MP3_256);
|
|
|
|
EnsureProfileCutoff(1, Quality.MP3_256);
|
|
|
|
var artist = EnsureArtist("266189", "The Blacklist", false);
|
|
|
|
var artist = EnsureArtist("8ac6cc32-8ddf-43b1-9ac4-4b04f9053176", "Alien Ant Farm", false);
|
|
|
|
EnsureTrackFile(artist, 1, 1, Quality.MP3_192);
|
|
|
|
EnsureTrackFile(artist, 1, 1, Quality.MP3_192);
|
|
|
|
|
|
|
|
|
|
|
|
var result = WantedCutoffUnmet.GetPaged(0, 15, "releaseDate", "desc", "monitored", "false");
|
|
|
|
var result = WantedCutoffUnmet.GetPaged(0, 15, "releaseDate", "desc", "monitored", "false");
|
|
|
|