-
Notifications
You must be signed in to change notification settings - Fork 59
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
Overwriting test_base_path to test/recipes instead of test/integration #95
Conversation
let(:config) { | ||
{ | ||
kitchen_root: kitchen_root, | ||
test_base_path: File.join(kitchen_root, 'test', 'integration'), |
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.
Tabbing issue?
b8c14c8
to
be218b9
Compare
👍 |
@tyler-ball I understand the use-case as highlighted by @charlesjohnson in chef-boneyard/chef-dk#934. Is there any specific reason why we are not just using:
|
@chris-rock Because |
@tyler-ball How would the migration work? Currently a lot of users use the test/integration directory already. In addition I am not sure, how we are handling our support for puppet and ansible then. kitchen-inspec should act independent from any configuration management tool eg. if users run the shell provisioner, kitchen-inspec should still work perfectly. My feeling is, that it would sounds strange if we would use test/recipe for other cfgmgmt tools than chef. Any ideas? |
Maybe that spins up the question, that we should not assume any default directory and we have to name the test-directory all the time, e.g. like:
That would also make the behavior in kitchen-inspec more obvious, since we already support to use multiple test locations. The deprecation of |
@tyler-ball the point about migrations from @chris-rock above is important. Unless I'm missing something, this will break all the things since everyones tests are currently under |
@chris-rock just my 2 cents - I like having a default test location and not having to specify a location for simplicity. But makes sense to provid a way to override. |
Just to be clear - tests in |
cool @tyler-ball and thats why you rock! |
This is to support chef-boneyard/chef-dk#934
Long term, this is not the right solution. For example, kitchen-inspec is now ignoring the
-t
command line flag passed. But we want to get this included in the upcoming ChefDK release and then do the proper fix in the following ChefDK release. See test-kitchen/test-kitchen#1077\cc @tylercloke @afiune @mwrock