mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-11 08:48:33 -04:00
Update ApiTests.cs
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user