diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-08-28 20:34:04 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-08-28 20:53:34 +0200 |
| commit | 0f7c875076e29f0c86c536840c71cec29fab08fb (patch) | |
| tree | eb3e02556ab881850fde5889dbe7a3989a61b9bc /tests | |
| parent | 69ba539c700c502f189c9067c31860c889aed1f7 (diff) | |
Fix test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Jellyfin.Server.Integration.Tests/Controllers/MediaStructureControllerTests.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/Jellyfin.Server.Integration.Tests/Controllers/MediaStructureControllerTests.cs b/tests/Jellyfin.Server.Integration.Tests/Controllers/MediaStructureControllerTests.cs index 5855f0266..8af43050f 100644 --- a/tests/Jellyfin.Server.Integration.Tests/Controllers/MediaStructureControllerTests.cs +++ b/tests/Jellyfin.Server.Integration.Tests/Controllers/MediaStructureControllerTests.cs @@ -7,6 +7,7 @@ using System.Text.Json; using System.Threading.Tasks; using Jellyfin.Api.Models.LibraryStructureDto; using Jellyfin.Extensions.Json; +using MediaBrowser.Model.Configuration; using Xunit; namespace Jellyfin.Server.Integration.Tests.Controllers @@ -78,14 +79,18 @@ namespace Jellyfin.Server.Integration.Tests.Controllers } [Fact] - public async Task UpdateMediaPath_EmptyName_ReturnsBadRequest() + public async Task UpdateMediaPath_WhiteSpaceName_ReturnsBadRequest() { var client = _factory.CreateClient(); client.DefaultRequestHeaders.AddAuthHeader(_accessToken ??= await AuthHelper.CompleteStartupAsync(client).ConfigureAwait(false)); var data = new UpdateMediaPathRequestDto() { - Name = string.Empty, + Name = " ", + PathInfo = new MediaPathInfo + { + Path = "test" + } }; using var postContent = new ByteArrayContent(JsonSerializer.SerializeToUtf8Bytes(data, _jsonOptions)); |
