mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-06 14:32:56 +01:00
Add back UpdateUserPassword_Empty_RemoveSetPassword test
This commit is contained in:
parent
0fb6d930e1
commit
d43db230fa
1 changed files with 17 additions and 0 deletions
|
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue