1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

test-network: Add test for BareUDP srcportmin

This commit is contained in:
Susant Sahani 2024-08-14 23:17:44 +05:30
parent 7918894302
commit 3859ef162b
2 changed files with 2 additions and 0 deletions

View File

@ -5,4 +5,5 @@ Name=bareudp99
[BareUDP] [BareUDP]
DestinationPort=1000 DestinationPort=1000
MinSourcePort=1001
EtherType=ipv4 EtherType=ipv4

View File

@ -1556,6 +1556,7 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
print(output) print(output)
self.assertRegex(output, 'dstport 1000 ') self.assertRegex(output, 'dstport 1000 ')
self.assertRegex(output, 'ethertype ip ') self.assertRegex(output, 'ethertype ip ')
self.assertRegex(output, 'srcportmin 1001 ')
@expectedFailureIfModuleIsNotAvailable('batman-adv') @expectedFailureIfModuleIsNotAvailable('batman-adv')
def test_batadv(self): def test_batadv(self):