Update NetworkParseTests.cs
This commit is contained in:
parent
a4a261e940
commit
8044f1f72f
|
@ -54,13 +54,13 @@ namespace Jellyfin.Networking.Tests
|
|||
/// <summary>
|
||||
/// Checks the ability to ignore interfaces
|
||||
/// </summary>
|
||||
/// <param name="interfaces">Mock network setup, in the format (IP address, interface index, interface name) : .... </param>
|
||||
/// <param name="interfaces">Mock network setup, in the format (IP address, interface index, interface name) | .... </param>
|
||||
/// <param name="lan">LAN addresses.</param>
|
||||
/// <param name="value">Bind addresses that are excluded.</param>
|
||||
[Theory]
|
||||
[InlineData("192.168.1.208/24,-16,eth16:200.200.200.200/24,11,eth11", "192.168.1.0/24;200.200.200.0/24", "[192.168.1.208/24,200.200.200.200/24]")]
|
||||
[InlineData("192.168.1.208/24,-16,eth16:200.200.200.200/24,11,eth11", "192.168.1.0/24", "[192.168.1.208/24]")]
|
||||
[InlineData("192.168.1.208/24,-16,vEthernet1:192.168.1.208/24,-16,vEthernet212;200.200.200.200/24,11,eth11", "192.168.1.0/24", "[192.168.1.208/24]")]
|
||||
[InlineData("192.168.1.208/24,-16,eth16|200.200.200.200/24,11,eth11", "192.168.1.0/24;200.200.200.0/24", "[192.168.1.208/24,200.200.200.200/24]")]
|
||||
[InlineData("192.168.1.208/24,-16,eth16|200.200.200.200/24,11,eth11", "192.168.1.0/24", "[192.168.1.208/24]")]
|
||||
[InlineData("192.168.1.208/24,-16,vEthernet1|192.168.1.208/24,-16,vEthernet212|200.200.200.200/24,11,eth11", "192.168.1.0/24", "[192.168.1.208/24]")]
|
||||
public void IgnoreVirtualInterfaces(string interfaces, string lan, string value)
|
||||
{
|
||||
var conf = new NetworkConfiguration()
|
||||
|
@ -434,7 +434,7 @@ namespace Jellyfin.Networking.Tests
|
|||
EnableIPV4 = true
|
||||
};
|
||||
|
||||
NetworkManager.MockNetworkSettings = "192.168.1.208/24,-16,eth16:200.200.200.200/24,11,eth11";
|
||||
NetworkManager.MockNetworkSettings = "192.168.1.208/24,-16,eth16|200.200.200.200/24,11,eth11";
|
||||
using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>());
|
||||
NetworkManager.MockNetworkSettings = string.Empty;
|
||||
|
||||
|
@ -501,7 +501,7 @@ namespace Jellyfin.Networking.Tests
|
|||
PublishedServerUriBySubnet = new string[] { publishedServers }
|
||||
};
|
||||
|
||||
NetworkManager.MockNetworkSettings = "192.168.1.208/24,-16,eth16:200.200.200.200/24,11,eth11";
|
||||
NetworkManager.MockNetworkSettings = "192.168.1.208/24,-16,eth16|200.200.200.200/24,11,eth11";
|
||||
using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>());
|
||||
NetworkManager.MockNetworkSettings = string.Empty;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user