Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests for freebsd network plugin; plus fixes #1841

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

jaymzh
Copy link
Collaborator

@jaymzh jaymzh commented Oct 22, 2024

This adds unittests for the FreeBSD network plugin. It also fixes
various issues:

  • It now running on modern freebsd which has extra columns in netstat output.
  • It now properly reports encapuslation, MTU, and metric

It also includes a test case with ::1 on lo1 to start building out
support for sorting out #1838

Signed-off-by: Phil Dibowitz [email protected]

@jaymzh jaymzh requested review from a team as code owners October 22, 2024 22:36
@jaymzh jaymzh force-pushed the freebsd-tests branch 2 times, most recently from 4e74657 to 96c9a73 Compare October 22, 2024 22:39
@jaymzh jaymzh force-pushed the freebsd-tests branch 2 times, most recently from b574ef5 to eb0f6d4 Compare October 22, 2024 22:47
This adds unittests for the FreeBSD network plugin. It also fixes
various issues:

* It now running on modern freebsd which has extra columns in netstat output.
* It now properly reports encapuslation, MTU, and metric

It also includes a test case with `::1` on `lo1` to start building out
support for sorting out chef#1838

Signed-off-by: Phil Dibowitz <[email protected]>
Copy link

@jaymzh
Copy link
Collaborator Author

jaymzh commented Oct 22, 2024

BTW, @feld and @ramereth since I changed plugin code here too, I'd love it if one of you could give it a whirl on a real freebsd box, please.

@ramereth
Copy link
Contributor

BTW, @feld and @ramereth since I changed plugin code here too, I'd love it if one of you could give it a whirl on a real freebsd box, please.

standard.json
lo1.json
ipv6.json

Let me know if you want me to test anything again. This is the output of doing ohai network.

@jaymzh
Copy link
Collaborator Author

jaymzh commented Oct 23, 2024

Thanks @ramereth - looks good, but can you also give me ohai counters, as this plugin generates those too?

@ramereth
Copy link
Contributor

counters.json

@jaymzh
Copy link
Collaborator Author

jaymzh commented Oct 23, 2024

Perfect, thanks! All looks good!

@johnmccrae johnmccrae merged commit 34dff3d into chef:main Oct 29, 2024
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants