-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add way to define alternate test-path #70
Comments
@rndmh3ro This is not restricted to As highlighted in my response in dev-sec/ansible-ssh-hardening#61, I propose we use real InSpec profiles for the test suites and remote profiles in combination with
|
Based on the info in https://github.com/chef/inspec/tree/master/examples/profile, being able to specify path names either local paths or local git repo (bitbucket/stash) would be helpful. We don't use github for our vcs. |
My employer has enterprise github. I would like to have Inspec tests stored in separate |
You can easily pass a path:
@jcii right now, InSpec only understands github url, but we could find a way to make that happen. The only piece that needs some adaption is: https://github.com/chef/inspec/blob/master/lib/fetchers/url.rb Therefore it is not a limitation of kitchen-inspec, but inspec. |
@chris-rock I`m wondering to know is that possible to use bitbucket insted of github? |
@aidda Yes we have bitbucket support, although it is not well documented yet. Please help us to make it better! You can see possible urls here: https://github.com/chef/inspec/blob/master/lib/fetchers/url.rb#L46-L63 |
@chris-rock I was checking this link yesterday ;) and add bitbucket url in kitchen-inspec. it was working perefctly. I`ll update the documents! thanks |
Awesome. Thank you @aidda |
It appears this issue is resolved, and the generic |
Right now, the path kitchen-inspec searches for tests is hard-coded.(https://github.com/chef/kitchen-inspec/blob/master/lib/kitchen/verifier/inspec.rb#L72)
It takes the base path (e.g.
test/integration/
) and then appends the suite-name (default
).Now we have the problem that we want to share tests between different suites (dev-sec/ansible-ssh-hardening#61):
The tests are in
test/integration/default/inspec/
, but kitchen-inspec searches intest/integration/ansible-latest/inspec/
.Therefore I propose to let the user define the test search path, either as a relative variable to the base path (in this case
default/
or as an absolute path (test/integration/default
).The text was updated successfully, but these errors were encountered: