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

junit(2) is not a valid reporter type #272

Closed
wyardley opened this issue Feb 4, 2021 · 2 comments
Closed

junit(2) is not a valid reporter type #272

wyardley opened this issue Feb 4, 2021 · 2 comments
Labels
Triage: Declined Indicates an issue that can not or will not be resolved.

Comments

@wyardley
Copy link

wyardley commented Feb 4, 2021

Sorry if this should be in inspec instead (feel free to move if necessary), but still having some difficulties with junit reports. Let me know if the verifier needs to be configured differently somehow.

Version:

kitchen-inspec 2.3.0
inspec(-bin) 4.26.0

Environment:

MacOS X, Linux

Scenario:

I'm still having issues similar to inspec/inspec#5243

Steps to Reproduce:

bundle exec kitchen verify
my config currently looks like this:

provisioner:
  name: "terraform"

platforms:
  - name: local

verifier:
  name: terraform
  systems:
    - name: remote-gcp
      backend: gcp
      reporter:
        - progress
        - json:/tmp/remote_gcp_inspec.json
        - junit2:/tmp/remote_gcp_inspec.xml
      controls:
        - foo
        - bar
    - name: local-outputs
      backend: local
      reporter:
        - progress
        - json:/tmp/local_inspec.json
      controls:
        - foo
        - bar

Expected Result:

inspec produces a junit report

Actual Result:

>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Failed to complete #verify action: ['junit' is not a valid reporter type.] on default-local

Same error whether I specify junit or junit2.

@wyardley wyardley added the Status: Untriaged An issue that has yet to be triaged. label Feb 4, 2021
@clintoncwolfe clintoncwolfe added Triage: Declined Indicates an issue that can not or will not be resolved. and removed Status: Untriaged An issue that has yet to be triaged. labels Feb 5, 2021
@clintoncwolfe
Copy link
Contributor

I just ran this again using (only) kitchen-inspec - without kitchen-terraform, and it worked correctly. Notice that when you use kitchen-terraform, you are using a different verifier, not kitchen-inspec - kitchen-terraform uses inspec in a couple of different ways.

I believe that kitchen-terraform may need to be modified to trigger loading the plugins before calling the runner for the first time.

@wyardley
Copy link
Author

wyardley commented Feb 5, 2021

got it - I will open a request under kitchen-terraform, then.

If I used the inspec verifier directly, I'm guessing that might also work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Declined Indicates an issue that can not or will not be resolved.
Projects
None yet
Development

No branches or pull requests

2 participants