Implements file hashing media library scan job

This commit is contained in:
BinaryAlley committed 2025-03-01 16:44:10 +02:00
1 parent 66998055f0
commit 03a000e1e4
63 files changed
+2009 -287

No files matched your search

@@ -25,7 +25,7 @@ public class ChangePasswordEndpointTests : IClassFixture<LuminaApiFactory>, IDis
{
private readonly LuminaApiFactory _apiFactory;
private readonly HttpClient _client;
private readonly HashService _hashService;
private readonly PasswordHashService _hashService;
private readonly string _testUsername;
private readonly JsonSerializerOptions _jsonOptions = new()
{
@@ -42,7 +42,7 @@ public class ChangePasswordEndpointTests : IClassFixture<LuminaApiFactory>, IDis
_client = apiFactory.CreateClient();
_client.DefaultRequestHeaders.Clear();
_client.DefaultRequestHeaders.Add("X-Forwarded-For", $"192.168.1.12");
_hashService = new HashService();
_hashService = new PasswordHashService();
_testUsername = $"testuser_{Guid.NewGuid()}";
}
@@ -26,7 +26,7 @@ namespace Lumina.Presentation.Api.SecurityTests.Core.Endpoints.UsersManagement.A
[ExcludeFromCodeCoverage]
public class LoginEndpointTests : IClassFixture<LuminaApiFactory>, IDisposable
{
private readonly HashService _hashService;
private readonly PasswordHashService _hashService;
private readonly ICryptographyService _cryptographyService;
private readonly TotpTokenGenerator _totpTokenGenerator;
private readonly LuminaApiFactory _apiFactory;
@@ -49,7 +49,7 @@ public class LoginEndpointTests : IClassFixture<LuminaApiFactory>, IDisposable
// set a fake IP for this test instance
_client.DefaultRequestHeaders.Clear();
_client.DefaultRequestHeaders.Add("X-Forwarded-For", $"192.168.1.1");
_hashService = new HashService();
_hashService = new PasswordHashService();
_totpTokenGenerator = new TotpTokenGenerator();
_testUsername = $"testuser_{Guid.NewGuid()}";
@@ -22,7 +22,7 @@ namespace Lumina.Presentation.Api.SecurityTests.Core.Endpoints.UsersManagement.A
[ExcludeFromCodeCoverage]
public class RegisterEndpointTests : IClassFixture<LuminaApiFactory>, IDisposable
{
private readonly HashService _hashService;
private readonly PasswordHashService _hashService;
private readonly LuminaApiFactory _apiFactory;
private readonly HttpClient _client;
private readonly JsonSerializerOptions _jsonOptions = new()
@@ -38,7 +38,7 @@ public class RegisterEndpointTests : IClassFixture<LuminaApiFactory>, IDisposabl
_client = apiFactory.CreateClient();
_client.DefaultRequestHeaders.Clear();
_client.DefaultRequestHeaders.Add("X-Forwarded-For", $"192.168.1.5");
_hashService = new HashService();
_hashService = new PasswordHashService();
_testUsername = $"testuser_{Guid.NewGuid()}";
}