From 6079a6004f097c35db070043ea4e5e9a70093a21 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Wed, 11 Feb 2026 20:11:17 +0100 Subject: [PATCH] Update ApiTests.cs --- .../Tests/AliasVault.E2ETests/Tests/Client/Shard1/ApiTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard1/ApiTests.cs b/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard1/ApiTests.cs index bf8416014..9f30dce4a 100644 --- a/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard1/ApiTests.cs +++ b/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard1/ApiTests.cs @@ -67,7 +67,7 @@ public class ApiTests : ClientPlaywrightTest // Check if the IP address is not anonymized as we enabled IP logging for this test file, see OneTimeSetUp(). var authLogEntry = await ApiDbContext.AuthLogs.FirstAsync(x => x.Username == TestUserUsername && x.EventType == AuthEventType.Register); - bool isValidLocalhostIp = authLogEntry.IpAddress == "::1" || authLogEntry.IpAddress == "127.0.0.1"; + bool isValidLocalhostIp = authLogEntry.IpAddress == "::1" || authLogEntry.IpAddress == "127.0.0.xxx"; Assert.That(isValidLocalhostIp, Is.True, $"IP address '{authLogEntry.IpAddress}' is anonymized while IP logging should be enabled. Check test configuration."); }