mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 08:19:38 +02:00
Fix RemotePathMappingCheckFixture
This commit is contained in:
parent
a32bc21907
commit
d1bebd3e5b
@ -118,7 +118,7 @@ public void should_return_ok_if_setup_correctly()
|
||||
[Test]
|
||||
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]
|
||||
@ -127,7 +127,7 @@ public void should_return_mapping_error_if_remote_client_root_path_invalid()
|
||||
_clientStatus.IsLocalhost = false;
|
||||
_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]
|
||||
@ -136,7 +136,7 @@ public void should_return_download_client_error_if_local_client_root_path_invali
|
||||
_clientStatus.IsLocalhost = true;
|
||||
_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]
|
||||
@ -144,7 +144,7 @@ public void should_return_path_mapping_error_if_remote_client_download_root_miss
|
||||
{
|
||||
_clientStatus.IsLocalhost = false;
|
||||
|
||||
Subject.Check().ShouldBeError(wikiFragment: "bad-remote-path-mapping");
|
||||
Subject.Check().ShouldBeError(wikiFragment: "bad_remote_path_mapping");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -164,7 +164,7 @@ public void should_return_docker_path_mapping_error_if_on_docker_and_root_missin
|
||||
{
|
||||
GivenDocker();
|
||||
|
||||
Subject.Check().ShouldBeError(wikiFragment: "docker-bad-remote-path-mapping");
|
||||
Subject.Check().ShouldBeError(wikiFragment: "docker_bad_remote_path_mapping");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -187,7 +187,7 @@ public void should_return_permissions_error_on_movie_import_failed_event_if_file
|
||||
|
||||
var importEvent = new MovieImportFailedEvent(new Exception(), localMovie, true, new DownloadClientItem());
|
||||
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions-error");
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions_error");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -197,7 +197,7 @@ public void should_return_permissions_error_on_movie_import_failed_event_if_fold
|
||||
|
||||
var importEvent = new MovieImportFailedEvent(null, null, true, _downloadItem);
|
||||
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions-error");
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions_error");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -205,7 +205,7 @@ public void should_return_permissions_error_on_movie_import_failed_event_for_loc
|
||||
{
|
||||
var importEvent = new MovieImportFailedEvent(null, null, true, _downloadItem);
|
||||
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions-error");
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions_error");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -214,7 +214,7 @@ public void should_return_mapping_error_on_movie_import_failed_event_for_remote_
|
||||
_clientStatus.IsLocalhost = false;
|
||||
var importEvent = new MovieImportFailedEvent(null, null, true, _downloadItem);
|
||||
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "bad-remote-path-mapping");
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "bad_remote_path_mapping");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -224,7 +224,7 @@ public void should_return_mapping_error_on_movie_import_failed_event_for_remote_
|
||||
_downloadItem.OutputPath = new OsPath("an invalid path");
|
||||
var importEvent = new MovieImportFailedEvent(null, null, true, _downloadItem);
|
||||
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "bad-remote-path-mapping");
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "bad_remote_path_mapping");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -234,7 +234,7 @@ public void should_return_download_client_error_on_movie_import_failed_event_for
|
||||
_downloadItem.OutputPath = new OsPath("an invalid path");
|
||||
var importEvent = new MovieImportFailedEvent(null, null, true, _downloadItem);
|
||||
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "bad-download-client-settings");
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "bad_download_client_settings");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -245,7 +245,7 @@ public void should_return_docker_mapping_error_on_movie_import_failed_event_insi
|
||||
_clientStatus.IsLocalhost = false;
|
||||
var importEvent = new MovieImportFailedEvent(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]
|
||||
|
Loading…
Reference in New Issue
Block a user