Skip to content
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

Option to specify path to Inspec test with kitchen-inspec #139

Closed
AnotherWorkingNerd opened this issue Jun 1, 2017 · 2 comments
Closed

Comments

@AnotherWorkingNerd
Copy link

Description

Currently, with kitchen-inspec the inspec tests are supposed to be in a fixed location in test/integration/default/. it would be nice if the path could be specified instead of being forced into test/integration/default/

InSpec and Platform Version

0.19

Replication Case

see description. This issue was entered at the request of @chris-rock after some slack conversation with myself and slack member 'eulipion'

Possible Solutions

Option or setting to point to inspec test location.

Stacktrace

@AnotherWorkingNerd
Copy link
Author

this may be a duplicate of #70

@adamleff
Copy link
Contributor

kitchen-inspec supports the inspec_tests verifier configuration parameter which accepts a variety of test path formats, including local and remote. There are some examples in the project README.

To simply point to a different path in your cookbook or similar structure:

verifier:
  inspec_tests:
    - path/to/profile1
    - path/to/profile2

You can use both relative and absolute paths. The only gotcha here is that these are expected to be InSpec profiles at these paths, not just a collection of *_spec.rb files with tests in them. It's very easy to convert a set of test files to an InSpec profile, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants