mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
added path validation to add series/ recent folders.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user