mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
added path validation to add series/ recent folders.
This commit is contained in:
parent
bf9946b653
commit
4465d50a31
19 changed files with 146 additions and 88 deletions
|
@ -58,5 +58,17 @@ namespace NzbDrone.Integration.Test
|
|||
|
||||
RootFolders.All().Should().BeEmpty();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void invalid_path_should_return_bad_request()
|
||||
{
|
||||
var rootFolder = new RootFolderResource
|
||||
{
|
||||
Path = "invalid_path"
|
||||
};
|
||||
|
||||
var postResponse = RootFolders.InvalidPost(rootFolder);
|
||||
postResponse.Should().NotBeEmpty();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue