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

Question regarding verifier settings #206

Closed
paulcalabro opened this issue Sep 7, 2018 · 5 comments
Closed

Question regarding verifier settings #206

paulcalabro opened this issue Sep 7, 2018 · 5 comments

Comments

@paulcalabro
Copy link

Hi,

Will the latest tagged release support the new verifier settings provided in the docs:

verifier:
  name: inspec
  format: junit
  output: path/to/results/%{platform}_%{suite}_inspec.xml

Thanks,
Paul

@paulcalabro paulcalabro changed the title Question regarding output settings Question regarding verifier settings Sep 7, 2018
@paulcalabro
Copy link
Author

p.s. The reason why I ask is that we need to use a pinned version of the gem and last I checked that version did not support it. I could be wrong though.

@wiebe
Copy link
Contributor

wiebe commented Sep 20, 2018

Just try it out?

You could also choose to pin it to the latest development version until a new tagged version will get release. It supports the new reporter option which also allows multiple reporters/outputs, so for example junit + commandline.

gem 'kitchen-inspec', :git => 'https://github.com/inspec/kitchen-inspec.git', :ref => '09976b4'
verifier:
  name: inspec
  reporter:
    - cli 
    - junit:path/to/results/%{platform}_%{suite}_inspec.xml

@paulcalabro
Copy link
Author

Yeah, I was trying it out at the time, however, it was a little confusing because the docs refer to a syntax that's doesn't apply to the latest gem available. I ended up pinning it to the dev version, which worked fine. Any idea when a new tagged release will be out?

@ghost
Copy link

ghost commented Sep 26, 2018

Ah yes i also ran into the issue of trying to use the new syntax and it not working, because I just installed the latest gem. Would also like to know when the available gem will have this baked in.

@chris-rock
Copy link
Collaborator

Thank you for raising the question. We release 0.24.0 that included an updated readme to reflect the new behaviour, see https://github.com/inspec/kitchen-inspec#custom-outputs

The following works in the released kitchen-inspec:

    verifier:
      reporter:
        - progress
        - junit:/tmp/%{platform}_%{suite}_inspec.xml
        - json:/tmp/%{platform}_%{suite}_inspec.json

I am going to close this issue, since all the information is provided. Feel free to re-open if we missed anything.

related to #183

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

3 participants