inspec / kitchen-inspec

Test-Kitchen Plugin for InSpec
Other
109 stars 58 forks source link

kitchen-inspec breaks existing file pattern #11

Closed chris-rock closed 7 years ago

chris-rock commented 8 years ago

As reported by @burtlo: With ​bats​ we define a directory within the ./test/integration directory. With ​serverspec​ we define a similar directory. With ​inspec​ we change the ​verifier​ in the .kitchen.yml and its convention (according to this one example: https://github.com/chef/inspec/tree/master/examples/test-kitchen/test/integration/default) uses the entire default test suite directory instead of sub-directory.

burtlo commented 8 years ago

chef-dk 0.10.0 generates a test/integration/default/serverspec/default_spec.rb this requires a cookbook author to remove those files as they are automatically picked up by inspec and fails on execution.

chris-rock commented 8 years ago

@burtlo From my perspective, inspec should pick up serverspec and inspec directory. The solution should be to understand the missing pieces for serverspec and make this running our of the box

chris-rock commented 8 years ago

@burtlo kitchen-inspec detects if other frameworks are used with busser. In that case InSpec expects to find its test in the 'inspec` subdirectory.