Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update ApiTests.cs

Leendert de Borst6079a6004f09
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.");
}