Skip to content

Commit

Permalink
[pfsense_dhcd_static] Add test for arp_table_static_entry=True
Browse files Browse the repository at this point in the history
  • Loading branch information
opoplawski committed Jan 11, 2024
1 parent 7b0a52f commit c6d9446
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/plugins/modules/test_pfsense_dhcp_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ def test_dhcp_static_create_display(self):
)
self.do_module_test(obj, command=command)

def test_dhcp_static_create_arp_table_static_entry(self):
""" test create with arp_table_static_entry """
obj = dict(name='test_entry', macaddr='ab:ab:ab:ab:ab:ab', ipaddr='10.0.0.101', netif='opt1', arp_table_static_entry=True)
command = (
"create dhcp_static 'test_entry', macaddr='ab:ab:ab:ab:ab:ab', ipaddr='10.0.0.101', arp_table_static_entry=True"
)
self.do_module_test(obj, command=command)

def test_dhcp_static_create_wrong_subnet(self):
""" test create with IP address in the wrong subnet """
obj = dict(name='test_entry', macaddr='ab:ab:ab:ab:ab:ab', ipaddr='1.2.3.4', netif='opt1')
Expand Down

0 comments on commit c6d9446

Please sign in to comment.