-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
saltcheck module updates #53024
saltcheck module updates #53024
Conversation
1) not require synchronizing the entire fileserver down to the minion, tests will be searched and generated from the sls low data 2) allow assertion checking multiple levels into a returned dictionary 3) allow custom saltcheck test locations inside a state/formula's folder
Remove test_update_master_cache test as this function is no longer in the module
Thanks for working on the saltcheck module! From your list of fixes:
|
@mchugh19 -- doh, I didn't look for pending PRs that made any updates :/ on 1), I think we're basically doing the same thing, I'm just looking for any on 2) that is much better than what I did, I should have looked through the utils for a better way to do it 3 & 4 shouldn't be a big deal to convert into your implementation when it is merged |
I tried it myself, and it does indeed work as you've described!
As for the logic of running tests based on the output of low state in order to better associate tests with states using includes, that's great! |
closing in favor of #53068 |
What does this PR do?
Update saltcheck to:
not require synchronizing the entire fileserver down to the minion,
tests will be searched and generated from the sls low data
allow assertion checking multiple levels into a returned dictionary
allow custom saltcheck test locations inside a state/formula's folder
provide more information on invalid tests
What issues does this PR fix or reference?
N/A
Previous Behavior
New Behavior
saltcheck_test_location
can be used to specify the relative path to the tests files from the state/formula's folderTests written?
No
Commits signed with GPG?
No
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.