summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-12-27 09:17:44 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-12-27 09:17:44 +0000
commit8030c5033a6b2a9edaafb1cda587f8adaa2dbedc (patch)
tree2d1c4301bb79f46c2a650a1e9da81c417a47cc34
parent1469e367dd5d9360150378459c4c23f31ddf30c1 (diff)
Since we are now parsing rDNS proposals we can check for them.
-rw-r--r--regress/sbin/slaacd/process_ra.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/regress/sbin/slaacd/process_ra.py b/regress/sbin/slaacd/process_ra.py
index 13cd155b06c..5ee501b95f5 100644
--- a/regress/sbin/slaacd/process_ra.py
+++ b/regress/sbin/slaacd/process_ra.py
@@ -38,6 +38,14 @@ class TestRouterAdvertisementParsing(unittest.TestCase):
self.assertEqual(len(
slaac_show_interface.def_router_proposals), 1)
+ def test_number_rdns_proposals(self):
+ self.assertEqual(len(
+ slaac_show_interface.rdns_proposals), 1)
+
+ def test_number_rdns_proposals_rnds(self):
+ self.assertEqual(len(
+ slaac_show_interface.rdns_proposals[0]['rdns']), 2)
+
if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromTestCase(
TestRouterAdvertisementParsing)