Skip to content

Commit

Permalink
Add shared-networks test
Browse files Browse the repository at this point in the history
  • Loading branch information
devon-mar committed Aug 19, 2023
1 parent c4d682a commit a32cf7e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
12 changes: 12 additions & 0 deletions tests/files/kea_configs/kea-dhcp4.conf
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,18 @@
}
],

"shared-networks": [
{
"name": "test-shared-network-4",
"subnet4": [
{
"subnet": "198.51.100.0/24",
"pools": [ { "pool": "198.51.100.1 - 198.51.100.200" } ]
}
]
}
],

// There are many, many more parameters that DHCPv4 server is able to use.
// They were not added here to not overwhelm people with too much
// information at once.
Expand Down
12 changes: 12 additions & 0 deletions tests/files/kea_configs/kea-dhcp6.conf
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,18 @@
// }
],

"shared-networks": [
{
"name": "test-shared-network-6",
"subnet6": [
{
"subnet": "2001:db8:2::/64",
"pools": [ { "pool": "2001:db8:2::/64" } ]
}
]
}
],

// Client-classes can be defined here. See "client-classes" in Dhcp4 for
// an example.

Expand Down
4 changes: 2 additions & 2 deletions tests/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ def test_server_status(page: Page, kea: KeaClient) -> None:
@pytest.mark.parametrize(
("family", "subnets"),
(
(4, ("192.0.2.0/24",)),
(6, ("2001:db8:1::/64",)),
(4, ("192.0.2.0/24", "198.51.100.0/24")),
(6, ("2001:db8:1::/64", "2001:db8:2::/64")),
),
)
def test_dhcp_subnets(
Expand Down

0 comments on commit a32cf7e

Please sign in to comment.