<@U07U5S8KCAJ> re: control repo testing, I've rece...
# puppet
g
@Adrian re: control repo testing, I've recently gone down this rabbit hole and found that
onceover
is a great tool but was lacking in the custom tests department. Being able to define a matrix of fact sets and classes, with function mocking and arbitrary pre_conditions is incredibly useful. It does have rudimentary support for custom tests wherein it copies and executes additional test files, but the mechanism for accessing the "special sauce" as it were of onceover is limited to just iterating over all of the fact sets that exist, totally ignoring config/mocks/pre_conditions/etc (see #378). It's also currently a little broken, with the quite necessary automatic `vendored_module` resolution erroring out. I have an additional fork with a new helper that allows for getting the same special sauce in custom tests as in the generated tests (similar to the example in the above linked issue), but waiting on opening the PR(s) as it currently also depends on a fork of `openvox` to fix deferred resolution of Puppet-lang functions. Once these get merged, it should be quite effective for comprehensive testing
t hanks 1