-
Notifications
You must be signed in to change notification settings - Fork 59
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
Vague error if 'platform' value is missing in platform section and inspec profile platfrom/os-family is set #101
Comments
At this point, InSpec supports only ssh, winrm and docker connectivity: https://github.com/chef/kitchen-inspec/blob/master/lib/kitchen/verifier/inspec.rb#L141-L157 |
I don't believe the issue is caused by LXC, because I use ssh connections - so this is transparent. |
Can you add a pry shell and verify that we get a |
ssh works as I said in #66. |
Since the creation of this issue, the logic on how the |
General info
My inspec profile had platform set to 'all'', while my platform section for debian7 did not specify 'platform' value at all. But on the other hand inspec profile has os-family set.
Thus, when invoking kitchen verify I got error like below:
backtrace goes to
/home/kaszpir/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/kitchen-inspec-0.15.0/lib/kitchen/verifier/inspec.rb:133:in
+'`where line 133 shows:
After adding some debugging messages I have found out that
config[:inspec_tests]
isnil
Then I verified platform on inspec profile and in kitchen.yml and they were different (well, actually platfrom was not set for debian in my case)
Steps to reproduce
I believe you can reproduce it with any driver, below is with LXC, also provisioner is rahter not important here.
Proper kitchen.yml - see comments
inspec file:
More info
Test Kitchen version 1.11.1
inspec version 0.32.0
kitchen-inspec (0.15.0)
Fix
Generate more sane message if test suite list is empty.
The text was updated successfully, but these errors were encountered: