mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
Update NetworkParseTests.cs
This commit is contained in:
parent
a4a261e940
commit
8044f1f72f
1 changed files with 6 additions and 6 deletions
|
@ -54,13 +54,13 @@ namespace Jellyfin.Networking.Tests
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Checks the ability to ignore interfaces
|
/// Checks the ability to ignore interfaces
|
||||||
/// </summary>
|
/// </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="lan">LAN addresses.</param>
|
||||||
/// <param name="value">Bind addresses that are excluded.</param>
|
/// <param name="value">Bind addresses that are excluded.</param>
|
||||||
[Theory]
|
[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;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,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,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)
|
public void IgnoreVirtualInterfaces(string interfaces, string lan, string value)
|
||||||
{
|
{
|
||||||
var conf = new NetworkConfiguration()
|
var conf = new NetworkConfiguration()
|
||||||
|
@ -434,7 +434,7 @@ namespace Jellyfin.Networking.Tests
|
||||||
EnableIPV4 = true
|
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>());
|
using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>());
|
||||||
NetworkManager.MockNetworkSettings = string.Empty;
|
NetworkManager.MockNetworkSettings = string.Empty;
|
||||||
|
|
||||||
|
@ -501,7 +501,7 @@ namespace Jellyfin.Networking.Tests
|
||||||
PublishedServerUriBySubnet = new string[] { publishedServers }
|
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>());
|
using var nm = new NetworkManager(GetMockConfig(conf), new NullLogger<NetworkManager>());
|
||||||
NetworkManager.MockNetworkSettings = string.Empty;
|
NetworkManager.MockNetworkSettings = string.Empty;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue