-
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
InSpec verifier in Test Kitchen does not support the new reporter output #164
Comments
This work is scheduled for this week @jquick |
The old format should work fine but we should still update it via kitchen-inspec so we don't have deprecation.
|
When the |
It seems to dump the json output to the screen as well. |
If possible when I load more than one profile, if I only have one output file for my reporter I would like to condense the output to that one file. |
The new stable 2.0.17 should have all the fixes for this in it. The two profiles getting exported separately is news to me though. Ill have to take a look. |
Ok. Thanks. Let me know |
I have confirmed this is working as expected in 1.51.21 and 2.0.17 |
Seems to be ignoring the output option, selecting the right formatter, but forcing stdout. This is quick work-around that gets junit and json working; |
Thanks @tolland. Are you on version >= 1.51.21? A fix like yours has been added to more recent versions: |
Ah I missed that.. yeah that fix is good! |
Should this issue be closed? |
Yes, closing. |
For me it is not working as expected:
This will be ignored and I got the cli output.
|
I think kitchen is expecting it to be an array, so try to configure it like this:
|
Description
I started working on this learn chef rally module with pre-release of InSpec 2.0.x. In this module you use test kitchen with InSpec and kitchen-dokken.
At one point the module you demonstrate how you can set the format to JSON. I did that and execute:
I see the deprecations so I switch the verifier from
format
toreporter
.I run
verify
again and see no file is generated.I re-read the deprecation and and update the verifier to the following:
I run
verify
again and see no file is generated.InSpec and Platform Version
Commit: 8416c07a
The text was updated successfully, but these errors were encountered: