You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently discovered when specifying paths to tests using inspec_tests that the default expected path is still included in the tests and not sure if this is or should be desired.
The "default" suite loads test/integration/default and test/integration/default/default_test.rb, which also loads selinux_test.rb and fails while the "selinux" suite passes successfully (as test/integration/selinux doesn't exist).
My test directory structure has been in the form of test/integration/RECIPE_NAME/ and I hadn't come across this problem until now.
Option 1 would be to move test/integration/default/selinux_test.rb to test/integration/selinux/default_test.rb, but doesn't feel right.
Option 2 would be PR to disregard default path when a path is specified.
What are the thoughts on this?
Stephen
The text was updated successfully, but these errors were encountered:
shoekstra
added a commit
to shoekstra/kitchen-inspec
that referenced
this issue
Dec 10, 2018
Hi!
I recently discovered when specifying paths to tests using
inspec_tests
that the default expected path is still included in the tests and not sure if this is or should be desired.My
.kitchen.yml
file:The "default" suite loads
test/integration/default
andtest/integration/default/default_test.rb
, which also loadsselinux_test.rb
and fails while the "selinux" suite passes successfully (astest/integration/selinux
doesn't exist).My
test
directory structure has been in the form oftest/integration/RECIPE_NAME/
and I hadn't come across this problem until now.Option 1 would be to move
test/integration/default/selinux_test.rb
totest/integration/selinux/default_test.rb
, but doesn't feel right.Option 2 would be PR to disregard default path when a path is specified.
What are the thoughts on this?
Stephen
The text was updated successfully, but these errors were encountered: