-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add pillar and data match modules #259
Conversation
123f8e7
to
0dd996d
Compare
This patch also includes documentation for the methods inside the Match module class.
0dd996d
to
6a5f2c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @brunobottazzini, thank you for the contribution. The patch looks good, only added two minor suggestions in the comments.
public WireMockRule wireMockRule = new WireMockRule(MOCK_HTTP_PORT); | ||
|
||
static final String JSON_CONFIG_MANAGE_MODE = ClientUtils.streamToString( | ||
FileTest.class.getResourceAsStream("/modules/match/match_output.json")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why the name was chosen as JSON_CONFIG_MANAGE_MODE
? I am only curious why it was not rather named JSON_MATCH_OUTPUT
or similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello Renner,
Sorry in the delay to answer your message. I was on Vacation :)...
You are right. I will change the name and update the PR. Today....
Thank you
* Return True if the minion matches the given pillar target. | ||
* The delimiter argument can be used to specify a different delimiter. | ||
* @param tgt | ||
* @param delimiter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you added javadoc comments I might suggest you to also add for completeness short descriptions of all the parameters as it is usually done, for example:
@param tgt pillar target
@param delimiter optional different delimiter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@renner, I just pushed everything... I hope it can me merged :)
Sorry for the long delay @brunobottazzini, finally merged it. |
the Match module class.