Open wihobbs opened 3 months ago
And I know the testing and the code should be in separate commits... sigh (will fix)
PR title seems truncated?
Well, custom
is a new type of policy that this PR is enabling. Or will enable eventually. Maybe "resource: refactor policy options to allow a user-defined policy" is more descriptive?
Note that this is still WIP and needs some config work and testing for the custom options. Happy to incorporate any feedback on the initial draft (and thanks to those who have already reviewed!), but it's going to stay in draft state until the code can:
set_stop_on_k_matches=-100
and suchPer discussion with Tom:
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 62.1%. Comparing base (
996f999
) to head (2d176c4
). Report is 18 commits behind head on master.
Problem: the current fluxion policy matching factory doesn't allow for customizable policies.
Add a custom option and refactor existing policies to behave similarly. Add unit testing for the string parsing convenience functions.
Outstanding to-do: