mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 15:48:03 +00:00
Add back UpdateUserPassword_Empty_RemoveSetPassword test
This commit is contained in:
@@ -147,5 +147,22 @@ namespace Jellyfin.Server.Integration.Tests.Controllers
|
|||||||
using var response = await UpdateUserPassword(client, _testUserId, createRequest);
|
using var response = await UpdateUserPassword(client, _testUserId, createRequest);
|
||||||
Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user