voxpupuli / facterdb

A Database of OS facts provided by Facter

Home Page:http://voxpupuli.org/facterdb/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regression test to verify factsets have required facts

hbrown-uiowa opened this issue · comments

It would be nice to have some code to run that would allow a fact set to be tested for the appropriate set of facts as listed on https://puppet.com/docs/puppet/7/core_facts.html (I'm not sure how often that list changes). This could catch issues like the missing mountpoints fact.

If the facts are only ever generated by the script and not messed with by hand, that should never be a problem.

It was a problem, hence the issue.

In this particular case, a gem was not listing all of its dependencies which then caused the mountpoint facts not to get generated. Everything was done via the script, but assumptions which had been true for the script were no longer true and facts didn't get generated. If we had a test that all appropriate (whatever that gets defined to mean) facts were present, it would help detect this type of scenario.