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.
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