|
|
@ -124,7 +124,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void should_return_permissions_error_if_local_client_download_root_missing()
|
|
|
|
public void should_return_permissions_error_if_local_client_download_root_missing()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Subject.Check().ShouldBeError(wikiFragment: "permissions_error");
|
|
|
|
Subject.Check().ShouldBeError(wikiFragment: "permissions-error");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -133,7 +133,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
_clientStatus.IsLocalhost = false;
|
|
|
|
_clientStatus.IsLocalhost = false;
|
|
|
|
_clientStatus.OutputRootFolders = new List<OsPath> { new OsPath("An invalid path") };
|
|
|
|
_clientStatus.OutputRootFolders = new List<OsPath> { new OsPath("An invalid path") };
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check().ShouldBeError(wikiFragment: "bad_remote_path_mapping");
|
|
|
|
Subject.Check().ShouldBeError(wikiFragment: "bad-remote-path-mapping");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -142,7 +142,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
_clientStatus.IsLocalhost = true;
|
|
|
|
_clientStatus.IsLocalhost = true;
|
|
|
|
_clientStatus.OutputRootFolders = new List<OsPath> { new OsPath("An invalid path") };
|
|
|
|
_clientStatus.OutputRootFolders = new List<OsPath> { new OsPath("An invalid path") };
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check().ShouldBeError(wikiFragment: "bad_download_client_settings");
|
|
|
|
Subject.Check().ShouldBeError(wikiFragment: "bad-download-client-settings");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -150,7 +150,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_clientStatus.IsLocalhost = false;
|
|
|
|
_clientStatus.IsLocalhost = false;
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check().ShouldBeError(wikiFragment: "bad_remote_path_mapping");
|
|
|
|
Subject.Check().ShouldBeError(wikiFragment: "bad-remote-path-mapping");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -170,7 +170,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
{
|
|
|
|
{
|
|
|
|
GivenDocker();
|
|
|
|
GivenDocker();
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check().ShouldBeError(wikiFragment: "docker_bad_remote_path_mapping");
|
|
|
|
Subject.Check().ShouldBeError(wikiFragment: "docker-bad-remote-path-mapping");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -193,7 +193,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
|
|
|
|
|
|
|
|
var importEvent = new TrackImportFailedEvent(new Exception(), localTrack, true, new DownloadClientItem { DownloadClientInfo = new DownloadClientItemClientInfo() });
|
|
|
|
var importEvent = new TrackImportFailedEvent(new Exception(), localTrack, true, new DownloadClientItem { DownloadClientInfo = new DownloadClientItemClientInfo() });
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions_error");
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions-error");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -203,7 +203,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
|
|
|
|
|
|
|
|
var importEvent = new TrackImportFailedEvent(null, null, true, _downloadItem);
|
|
|
|
var importEvent = new TrackImportFailedEvent(null, null, true, _downloadItem);
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions_error");
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions-error");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -211,7 +211,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var importEvent = new TrackImportFailedEvent(null, null, true, _downloadItem);
|
|
|
|
var importEvent = new TrackImportFailedEvent(null, null, true, _downloadItem);
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions_error");
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions-error");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -220,7 +220,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
_clientStatus.IsLocalhost = false;
|
|
|
|
_clientStatus.IsLocalhost = false;
|
|
|
|
var importEvent = new TrackImportFailedEvent(null, null, true, _downloadItem);
|
|
|
|
var importEvent = new TrackImportFailedEvent(null, null, true, _downloadItem);
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "bad_remote_path_mapping");
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "bad-remote-path-mapping");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -230,7 +230,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
_downloadItem.OutputPath = new OsPath("an invalid path");
|
|
|
|
_downloadItem.OutputPath = new OsPath("an invalid path");
|
|
|
|
var importEvent = new TrackImportFailedEvent(null, null, true, _downloadItem);
|
|
|
|
var importEvent = new TrackImportFailedEvent(null, null, true, _downloadItem);
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "bad_remote_path_mapping");
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "bad-remote-path-mapping");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -240,7 +240,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
_downloadItem.OutputPath = new OsPath("an invalid path");
|
|
|
|
_downloadItem.OutputPath = new OsPath("an invalid path");
|
|
|
|
var importEvent = new TrackImportFailedEvent(null, null, true, _downloadItem);
|
|
|
|
var importEvent = new TrackImportFailedEvent(null, null, true, _downloadItem);
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "bad_download_client_settings");
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "bad-download-client-settings");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -251,7 +251,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|
|
|
_clientStatus.IsLocalhost = false;
|
|
|
|
_clientStatus.IsLocalhost = false;
|
|
|
|
var importEvent = new TrackImportFailedEvent(null, null, true, _downloadItem);
|
|
|
|
var importEvent = new TrackImportFailedEvent(null, null, true, _downloadItem);
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "docker_bad_remote_path_mapping");
|
|
|
|
Subject.Check(importEvent).ShouldBeError(wikiFragment: "docker-bad-remote-path-mapping");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|