Skip to content

dhcp/kea: Add unit tests, big smoke test via snapshots, a few smaller tests to catch regressions early#9455

Closed
Monviech wants to merge 10 commits intomasterfrom
kea-unit-test-golden-sample
Closed

dhcp/kea: Add unit tests, big smoke test via snapshots, a few smaller tests to catch regressions early#9455
Monviech wants to merge 10 commits intomasterfrom
kea-unit-test-golden-sample

Conversation

@Monviech
Copy link
Copy Markdown
Member

The snapshots use only real data I input to the GUI and is fully validated.

A config.xml is sent through the current model, and the resulting json is compared to the snapshot samples. If they do not match, a detailed error message is generated.

Other than that, some smaller tests are for firewall rules, enabled logic, and interface parsing.

With that in place, I can test for major regressions in here: #9450

And it is also handy for the future, if somebody changes something in KEA, the tests will trigger (most likely), catching most regressions early.

If new features are added, the tests need to be maintained and expanded.

@Monviech Monviech requested a review from fichtner November 26, 2025 07:58
@Monviech Monviech self-assigned this Nov 26, 2025
@Monviech Monviech added the feature Adding new functionality label Nov 26, 2025
@Monviech
Copy link
Copy Markdown
Member Author

With the latest changes this is already outdated. A unit test approach is better, lets scrap this for now.

@Monviech Monviech closed this Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Adding new functionality

Development

Successfully merging this pull request may close these issues.

1 participant