mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
Fixed: Integration tests on Mono 5.12 and 5.14
Mono 5.12 and 5.14 has a bug that means RestSharp can't handle non-200 responses. Fix status api call so tests start and disable the tests that use non-200 responses on these mono versions
This commit is contained in:
@@ -11,6 +11,8 @@ namespace NzbDrone.Integration.Test.ApiTests
|
||||
[Test, Order(0)]
|
||||
public void add_downloadclient_without_name_should_return_badrequest()
|
||||
{
|
||||
IgnoreOnMonoVersions("5.12", "5.14");
|
||||
|
||||
EnsureNoDownloadClient();
|
||||
|
||||
var schema = DownloadClients.Schema().First(v => v.Implementation == "UsenetBlackhole");
|
||||
@@ -25,6 +27,8 @@ namespace NzbDrone.Integration.Test.ApiTests
|
||||
[Test, Order(0)]
|
||||
public void add_downloadclient_without_nzbfolder_should_return_badrequest()
|
||||
{
|
||||
IgnoreOnMonoVersions("5.12", "5.14");
|
||||
|
||||
EnsureNoDownloadClient();
|
||||
|
||||
var schema = DownloadClients.Schema().First(v => v.Implementation == "UsenetBlackhole");
|
||||
@@ -39,6 +43,8 @@ namespace NzbDrone.Integration.Test.ApiTests
|
||||
[Test, Order(0)]
|
||||
public void add_downloadclient_without_watchfolder_should_return_badrequest()
|
||||
{
|
||||
IgnoreOnMonoVersions("5.12", "5.14");
|
||||
|
||||
EnsureNoDownloadClient();
|
||||
|
||||
var schema = DownloadClients.Schema().First(v => v.Implementation == "UsenetBlackhole");
|
||||
@@ -90,6 +96,8 @@ namespace NzbDrone.Integration.Test.ApiTests
|
||||
[Test]
|
||||
public void get_downloadclient_by_unknown_id_should_return_404()
|
||||
{
|
||||
IgnoreOnMonoVersions("5.12", "5.14");
|
||||
|
||||
var result = DownloadClients.InvalidGet(1000000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user