-
Notifications
You must be signed in to change notification settings - Fork 8
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 support for additional flags #53
Conversation
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.
@mjourdan Thanks very much for contributing to this repo! Please take a look at my suggestions and let me know if you have any questions or concerns.
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.
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.
Thanks for your contribution! This all looks solid. I have some minor changes I'd like to see below.
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'd like to see some additional tests that cover the new options you have added. It may make sense to create some new molecule
scenarios for this, as is done, e.g., in cisagov/ansible-role-python#46.
Hi @jsf9k, |
Alphabetize, clean up wording, and fix typos/formatting Co-authored-by: dav3r <daver@geekpad.com>
Alphabetize Co-authored-by: dav3r <daver@geekpad.com>
Co-authored-by: dav3r <daver@geekpad.com>
avoid abbreviation Co-authored-by: Nick <50747025+mcdonnnj@users.noreply.github.com>
replace dict with list Co-authored-by: Shane Frasier <maverick@maverickdolphin.com>
remove unnecessary quotes on file mode Co-authored-by: Shane Frasier <maverick@maverickdolphin.com>
Add backticks to default values in readme Co-authored-by: Nick <50747025+mcdonnnj@users.noreply.github.com>
6cadc30
to
8225ff0
Compare
Thanks @ClementJ35 and @mjourdan! I rebased the PR; once the tests pass I'll re-review. |
The build is failing because of an issue in |
Hi @jsf9k, thanks for rebasing. |
Yep, once they release a new version of Molecule I can re-run the tests and they should pass. |
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.
Great work @mjourdan! Thank you for the contribution!
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.
Looks great - strong work! 🚀
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.
Thanks for the continued work in getting this implemented. I'm suggesting that the additional_flags
scenario's files more closely mirror the form of the modify_config
scenario so that we are consistent. Other than that all I saw was a typo.
This entailed making several files in molecule/additional_flags symlinks instead of hard copies. I also broke the tests that were in default/tests/test_default.py into two files so I could reuse most of them in molecule/additional_flags but still create a slightly different version of others specific to the scenario. Co-authored-by: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com>
2e1b063
to
9713cb1
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.
Still good, aside from one missed docstring update. 🚀
molecule/additional_flags/tests/test_files_and_dirs_additional_flags.py
Outdated
Show resolved
Hide resolved
Co-authored-by: dav3r <daver@geekpad.com>
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.
Just a small docstring fix from me.
Co-authored-by: Nick <50747025+mcdonnnj@users.noreply.github.com>
@mjourdan and @ClementJ35, thanks for the contribution and for sticking with us. This one is finally merged! |
Thank you @jsf9k @dav3r @mcdonnnj @ClementJ35 \o/ |
🗣 Description
💭 Motivation and context
Wanted to automatically move the infected files to a quarantine folder. Also, allow some tuning.
This PR resolves #51 and #50.
🧪 Testing
I ran the role against a Debian 11 target host.
✅ Pre-approval checklist