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.
34 lines
896 B
34 lines
896 B
using System.Linq;
|
|
using FluentAssertions;
|
|
using Lidarr.Api.V1.DiskSpace;
|
|
using NUnit.Framework;
|
|
using NzbDrone.Integration.Test.Client;
|
|
|
|
namespace NzbDrone.Integration.Test.ApiTests
|
|
{
|
|
[TestFixture]
|
|
public class DiskSpaceFixture : IntegrationTest
|
|
{
|
|
public ClientBase<DiskSpaceResource> DiskSpace;
|
|
|
|
protected override void InitRestClients()
|
|
{
|
|
base.InitRestClients();
|
|
|
|
DiskSpace = new ClientBase<DiskSpaceResource>(RestClient, ApiKey, "diskSpace");
|
|
}
|
|
|
|
[Test]
|
|
[Ignore("Fails on build agent")]
|
|
public void get_all_diskspace()
|
|
{
|
|
var items = DiskSpace.All();
|
|
|
|
items.Should().NotBeEmpty();
|
|
items.First().FreeSpace.Should().NotBe(0);
|
|
items.First().TotalSpace.Should().NotBe(0);
|
|
items.First().Path.Should().NotBeNullOrEmpty();
|
|
}
|
|
}
|
|
}
|