The Free Software Media System - Server Backend & API
Add back UpdateUserPassword_Empty_RemoveSetPassword test
Niels van Velzend43db230fa1f
diff --git a/tests/Jellyfin.Server.Integration.Tests/Controllers/UserControllerTests.cs b/tests/Jellyfin.Server.Integration.Tests/Controllers/UserControllerTests.csindex 4278fd0695..04d1b3dc27 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.Controllersusing 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);+ }}}