1
0
mirror of https://github.com/bitwarden/server synced 2026-01-02 00:23:40 +00:00

test(auth-validator): [PM-22975] Client Version Validator - Fixed the last test.

This commit is contained in:
Patrick Pimentel
2025-12-02 16:42:09 -05:00
parent 6696104e9d
commit aa4f8ab96e
2 changed files with 17 additions and 7 deletions

View File

@@ -23,7 +23,10 @@ public class ClientVersionGateTests : IClassFixture<IdentityApplicationFactory>
[Theory, BitAutoData, RegisterFinishRequestModelCustomize]
public async Task TokenEndpoint_GrantTypePassword_V2User_OnOldClientVersion_Blocked(RegisterFinishRequestModel requestModel)
{
var localFactory = new IdentityApplicationFactory();
var localFactory = new IdentityApplicationFactory
{
UseMockClientVersionValidator = false
};
var server = localFactory.Server;
var user = await localFactory.RegisterNewIdentityFactoryUserAsync(requestModel);
@@ -68,7 +71,10 @@ public class ClientVersionGateTests : IClassFixture<IdentityApplicationFactory>
[Theory, BitAutoData, RegisterFinishRequestModelCustomize]
public async Task TokenEndpoint_GrantTypePassword_V2User_OnMinClientVersion_Succeeds(RegisterFinishRequestModel requestModel)
{
var localFactory = new IdentityApplicationFactory();
var localFactory = new IdentityApplicationFactory
{
UseMockClientVersionValidator = false
};
var server = localFactory.Server;
var user = await localFactory.RegisterNewIdentityFactoryUserAsync(requestModel);