diff options
| author | Niels van Velzen <git@ndat.nl> | 2025-10-19 09:45:55 +0200 |
|---|---|---|
| committer | Niels van Velzen <git@ndat.nl> | 2025-10-19 09:45:55 +0200 |
| commit | d43db230fa1ff6f371a9ab16063152f5b632e2e9 (patch) | |
| tree | 88d9f24149c8df1b465f23157059314ce2bd65a3 | |
| parent | 0fb6d930e1ca14d1d3af06ecee310869d2e86dfe (diff) | |
Add back UpdateUserPassword_Empty_RemoveSetPassword test
| -rw-r--r-- | tests/Jellyfin.Server.Integration.Tests/Controllers/UserControllerTests.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/Jellyfin.Server.Integration.Tests/Controllers/UserControllerTests.cs b/tests/Jellyfin.Server.Integration.Tests/Controllers/UserControllerTests.cs index 4278fd069..04d1b3dc2 100644 --- a/tests/Jellyfin.Server.Integration.Tests/Controllers/UserControllerTests.cs +++ b/tests/Jellyfin.Server.Integration.Tests/Controllers/UserControllerTests.cs @@ -147,5 +147,22 @@ namespace Jellyfin.Server.Integration.Tests.Controllers using var response = await UpdateUserPassword(client, _testUserId, createRequest); Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); } + + [Fact] + [Priority(2)] + public async Task UpdateUserPassword_Empty_RemoveSetPassword() + { + var client = _factory.CreateClient(); + + client.DefaultRequestHeaders.AddAuthHeader(_accessToken!); + + var createRequest = new UpdateUserPassword() + { + CurrentPw = "4randomPa$$word", + }; + + using var response = await UpdateUserPassword(client, _testUserId, createRequest); + Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); + } } } |
