diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-02-27 22:51:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-27 22:51:45 +0100 |
| commit | 14605280a08dd4444361251b8a5d1231daff0833 (patch) | |
| tree | 8dcb1c65e9e5e9e516aef432eed325dfb8d3f31a /tests/Jellyfin.Networking.Tests/NetworkTesting | |
| parent | 64730b56613f3f71c174005c16df4db8c9d2b3a7 (diff) | |
| parent | cc19d281e7363748af0b42a063859df169bf71e3 (diff) | |
Merge pull request #5274 from BaronGreenback/bindfix
Diffstat (limited to 'tests/Jellyfin.Networking.Tests/NetworkTesting')
| -rw-r--r-- | tests/Jellyfin.Networking.Tests/NetworkTesting/NetworkParseTests.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/Jellyfin.Networking.Tests/NetworkTesting/NetworkParseTests.cs b/tests/Jellyfin.Networking.Tests/NetworkTesting/NetworkParseTests.cs index b7c1510d2..8d5d4884a 100644 --- a/tests/Jellyfin.Networking.Tests/NetworkTesting/NetworkParseTests.cs +++ b/tests/Jellyfin.Networking.Tests/NetworkTesting/NetworkParseTests.cs @@ -52,15 +52,20 @@ namespace Jellyfin.Networking.Tests } /// <summary> - /// Checks the ability to ignore interfaces + /// Checks the ability to ignore virtual interfaces. /// </summary> /// <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] + // All valid [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]")] + // eth16 only [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]")] + // All interfaces excluded. + [InlineData("192.168.1.208/24,-16,vEthernet1|192.168.2.208/24,-16,vEthernet212|200.200.200.200/24,11,eth11", "192.168.1.0/24", "[]")] + // vEthernet1 and vEthernet212 should be excluded. + [InlineData("192.168.1.200/24,-20,vEthernet1|192.168.2.208/24,-16,vEthernet212|200.200.200.200/24,11,eth11", "192.168.1.0/24;200.200.200.200/24", "[200.200.200.200/24]")] public void IgnoreVirtualInterfaces(string interfaces, string lan, string value) { var conf = new NetworkConfiguration() |
