allowing merge_dict calls to correctly update the main dict #16
allowing merge_dict calls to correctly update the main dict #16
Conversation
1695236
to
4f078b4
Compare
I did a force push to fix a small typo during the tests...is there a way to kick these off again ? |
It will run again, not need to worry but if ever need to force a rebuild, you have two options: add a comment with Also, alwats run |
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.
Please include a test that will prevent a future regression.
4016978
to
0a74eac
Compare
Pushed an update to fix the linting with Black. My pytesting foo is so-so, not sure how to correctly setup the testing so that a scenario is called with test values for config/provider options. I don't know if you were thinking along the lines for a test that just looked to make sure |
This is probably a silly question, but how did you notice the problem ? maybe this would help writing a test ? |
Not silly at all. In fact that is the best way to add a test, verifying that the expected outcome is met. Without a test I am not going to approve it, mainly because every time I did this I soon regretted it. |
I did not approve this yet due to the lack of tests (and other reviews). Anyone is welcomed to step-in and help writing tests. |
It turns out that on my quest for writing a test case for #20 not involving virtualbox (I'm trying to add vbox to the test suite but having to build a kernel module is a nightmare), I managed to write tests cases for theses two configuration options. I'll create a pull request for them, which will fail and hopefully, by triggering again the test suite on this pull request, theses two tests will be fixed. |
I've merged this tree with my tests for this commit in my branch https://github.com/apatard/molecule-vagrant/tree/mergedicts. I think it'll be easier to handle this way. I'll send a pull request once my vagrant-root branch is merged. |
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.
It's fixing real bugs and I've tested it locally. So, it's fine for me.
This fixes a bug where the params for
config_options
andprovider_options
were not being merged in the_get_vagrant_config_dict
functionManually tested this with my remote Libvirt setup.