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

Fixes #8742: Test dry run in ncf #419

Conversation

amousset
Copy link
Member

@amousset amousset changed the title Fixes #8742: Test dry run of generic methods Fixes #8742: Test dry run in ncf Aug 11, 2016
@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the ust_8742/test_dry_run_of_generic_methods branch from c6ad12f to 74ae6b6 Compare August 11, 2016 11:19
@amousset
Copy link
Member Author

Fix and test dry-run in ncf, with a self-contained test for each way to enable dry-run and a complete test with a generic method.

@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the ust_8742/test_dry_run_of_generic_methods branch from 74ae6b6 to dc01284 Compare August 11, 2016 11:27
@amousset
Copy link
Member Author

Ready for review.

@@ -56,77 +56,86 @@ bundle agent set_dry_run_mode(mode)
# - ... and all promise types that are not for the agent
###############################################################################

body file control
{
namespace => "bodydefault";
Copy link
Member

Choose a reason for hiding this comment

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

This seems rather an odd name. Can't we use our standard conventions, and have something like "ncf_body_default"?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, this is the namespace used in CFEngine for default bodies (https://docs.cfengine.com/latest/reference-language-concepts-bodies.html#default-bodies)

Copy link
Member

Choose a reason for hiding this comment

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

I see.

@jooooooon
Copy link
Member

Aside from minor naming/indentation comments, this looks great.

@amousset amousset force-pushed the ust_8742/test_dry_run_of_generic_methods branch from dc01284 to 7e66ed8 Compare August 11, 2016 13:28
@amousset
Copy link
Member Author

Commit modified

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 7e66ed8 into Normation:master Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants