Skip to content

Commit

Permalink
Merge pull request #18 from lion7/main
Browse files Browse the repository at this point in the history
Update debian dependencies
  • Loading branch information
pimvanpelt authored Oct 25, 2024
2 parents bc4b9b7 + 5570042 commit 19b0354
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ Source: vppcfg
Section: python
Priority: extra
Maintainer: Ray Kinsella <[email protected]>
Build-Depends: debhelper (>= 9), python3-all, dh-python
Build-Depends: debhelper (>= 9), python3-all, python3-setuptools, dh-python
Standards-Version: 3.9.5

Package: vppcfg
Architecture: any
Pre-Depends: dpkg (>= 1.16.1), python3 (>=3.8), ${misc:Pre-Depends}
Depends: python3-netaddr, python3-ipaddr, ${misc:Depends}
Pre-Depends: ${misc:Pre-Depends}
Depends: ${misc:Depends}, ${python3:Depends}, python3-importlib-metadata, python3-yamale, python3-vpp-api
Description: A configuration tool for FD.io VPP
12 changes: 6 additions & 6 deletions vppcfg/config/test_acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,28 +130,28 @@ def test_get_network_list(self):
for s in ["192.0.2.1", "192.0.2.1/24", "2001:db8::1", "2001:db8::1/64"]:
l = acl.get_network_list(self.cfg, s)
self.assertIsInstance(l, list)
self.assertEquals(1, len(l))
self.assertEqual(1, len(l))
n = l[0]

l = acl.get_network_list(self.cfg, "trusted")
self.assertIsInstance(l, list)
self.assertEquals(5, len(l))
self.assertEqual(5, len(l))

l = acl.get_network_list(self.cfg, "trusted", want_ipv6=False)
self.assertIsInstance(l, list)
self.assertEquals(2, len(l))
self.assertEqual(2, len(l))

l = acl.get_network_list(self.cfg, "trusted", want_ipv4=False)
self.assertIsInstance(l, list)
self.assertEquals(3, len(l))
self.assertEqual(3, len(l))

l = acl.get_network_list(self.cfg, "trusted", want_ipv4=False, want_ipv6=False)
self.assertIsInstance(l, list)
self.assertEquals(0, len(l))
self.assertEqual(0, len(l))

l = acl.get_network_list(self.cfg, "pl-notexist")
self.assertIsInstance(l, list)
self.assertEquals(0, len(l))
self.assertEqual(0, len(l))

def test_network_list_has_family(self):
l = acl.get_network_list(self.cfg, "trusted")
Expand Down
10 changes: 5 additions & 5 deletions vppcfg/config/test_prefixlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,22 @@ def test_is_empty(self):
def test_get_network_list(self):
l = prefixlist.get_network_list(self.cfg, "trusted")
self.assertIsInstance(l, list)
self.assertEquals(5, len(l))
self.assertEqual(5, len(l))

l = prefixlist.get_network_list(self.cfg, "trusted", want_ipv6=False)
self.assertIsInstance(l, list)
self.assertEquals(2, len(l))
self.assertEqual(2, len(l))

l = prefixlist.get_network_list(self.cfg, "trusted", want_ipv4=False)
self.assertIsInstance(l, list)
self.assertEquals(3, len(l))
self.assertEqual(3, len(l))

l = prefixlist.get_network_list(
self.cfg, "trusted", want_ipv4=False, want_ipv6=False
)
self.assertIsInstance(l, list)
self.assertEquals(0, len(l))
self.assertEqual(0, len(l))

l = prefixlist.get_network_list(self.cfg, "pl-notexist")
self.assertIsInstance(l, list)
self.assertEquals(0, len(l))
self.assertEqual(0, len(l))

0 comments on commit 19b0354

Please sign in to comment.