You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
using FluentAssertions;
|
|
using NUnit.Framework;
|
|
using Radarr.Api.V3.Movies;
|
|
|
|
namespace NzbDrone.Integration.Test.ApiTests
|
|
{
|
|
[TestFixture]
|
|
public class BlacklistFixture : IntegrationTest
|
|
{
|
|
private MovieResource _movie;
|
|
|
|
[Test]
|
|
[Ignore("Adding to blacklist not supported")]
|
|
public void should_be_able_to_add_to_blacklist()
|
|
{
|
|
_movie = EnsureMovie(11, "The Blacklist");
|
|
|
|
Blacklist.Post(new Radarr.Api.V3.Blacklist.BlacklistResource
|
|
{
|
|
MovieId = _movie.Id,
|
|
SourceTitle = "Blacklist.S01E01.Brought.To.You.By-BoomBoxHD"
|
|
});
|
|
}
|
|
|
|
[Test]
|
|
[Ignore("Adding to blacklist not supported")]
|
|
public void should_be_able_to_get_all_blacklisted()
|
|
{
|
|
var result = Blacklist.GetPaged(0, 1000, "date", "desc");
|
|
|
|
result.Should().NotBeNull();
|
|
result.TotalRecords.Should().Be(1);
|
|
result.Records.Should().NotBeNullOrEmpty();
|
|
}
|
|
|
|
[Test]
|
|
[Ignore("Adding to blacklist not supported")]
|
|
public void should_be_able_to_remove_from_blacklist()
|
|
{
|
|
Blacklist.Delete(1);
|
|
|
|
var result = Blacklist.GetPaged(0, 1000, "date", "desc");
|
|
|
|
result.Should().NotBeNull();
|
|
result.TotalRecords.Should().Be(0);
|
|
}
|
|
}
|
|
}
|