This repository has been archived by the owner on Jul 9, 2020. It is now read-only.
Making the path of the salt source a command line option for docker containers #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We were looking into writing both unit and integration tests for our own custom modules and states and thought it was a good idea to be using salts own framework in as a large extent as possible, we ran into the issue that the integration tests inside a docker container required the tests/ folder for the test runner to be adjacent to the salt source code, which it wasn't for us since we deploy custom states through the salt fileserver. We applied this patch to be able to run our own subset of integration tests against the salttesting docker containers using the salt test runner.
It is a bit ugly, though with a hard coded inclusion path destination. Maybe you want to make sure that the python interpreter is reading from the destination path in question as well. Right now it is only working for Debian/Ubuntu distributions running python 2.7. Suggestions on how to best fix this are welcome!
Addresses issue #12