Fix test name
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Services
|
||||
[TestCase("127.0.0.1", "", ExpectedResult = false)]
|
||||
[TestCase("125.125.125.1", "125.125.125.0/24", ExpectedResult = true)]
|
||||
[TestCase("125.125.124.1", "125.125.125.0/24", ExpectedResult = false)]
|
||||
public bool IsBasicAuthEnabled(string clientIpAddress, string commaSeperatedAllowlist)
|
||||
public bool IsIpAllowListed(string clientIpAddress, string commaSeperatedAllowlist)
|
||||
{
|
||||
var allowedIPs = commaSeperatedAllowlist.Split(",").Select(x=>x.Trim()).ToArray();
|
||||
var sut = new BasicAuthService(Mock.Of<IOptionsMonitor<BasicAuthSettings>>(_ => _.CurrentValue == new BasicAuthSettings() {AllowedIPs = allowedIPs}));
|
||||
|
||||
Reference in New Issue
Block a user