Skip to content
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

Merged
merged 3 commits into from
Dec 6, 2019
Merged

Conversation

brunobottazzini
Copy link
Contributor

  • This patch also includes documentation for the methods inside
    the Match module class.
  • Add unit test case for the Match module

Bruno Bottazzini added 2 commits March 5, 2019 15:12
This patch also includes documentation for the methods inside
the Match module class.
@renner renner added this to the Version 0.16.0 milestone Mar 8, 2019
Copy link
Member

@renner renner left a 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"));
Copy link
Member

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.

Copy link
Contributor Author

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
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add it.

Copy link
Contributor Author

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 :)

@admd admd modified the milestones: Version 0.16.0, Next Apr 8, 2019
@renner renner modified the milestones: Next, Version 0.17.0 Dec 6, 2019
@renner renner merged commit 7e0765c into SUSE:master Dec 6, 2019
@renner
Copy link
Member

renner commented Dec 6, 2019

Sorry for the long delay @brunobottazzini, finally merged it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants