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

kitchen ec2 verifier broken #106

Closed
howdoicomputer opened this issue Oct 8, 2016 · 6 comments
Closed

kitchen ec2 verifier broken #106

howdoicomputer opened this issue Oct 8, 2016 · 6 comments

Comments

@howdoicomputer
Copy link

I already filed two tickets for this issue. Here are their references:

test-kitchen/test-kitchen#1136
test-kitchen/kitchen-ec2#281

@grv87
Copy link

grv87 commented Mar 17, 2017

I have the same problem. I'll look at the code to try to find the source of the issue.

@siulcode
Copy link

@howdoicomputer did you get to see a resolution for this problem?

I need to run inspec tests into an ec2 instance created by kitchen-ec2, but tests seemed to be skipped completely.

@howdoicomputer
Copy link
Author

@siulcode I don't think I did.

@ghost
Copy link

ghost commented Jul 13, 2017

For the record, I've gotten this to work, but it does not work with the default file structure created with chef generate cookbook. I have another issue with SSH that I've worked around, but may file an issue over it.

Here's my information, if you want to try to get it working for you:

> chef --version
Chef Development Kit Version: 2.0.26
chef-client version: 13.2.20
delivery version: master (17c1b0fed9be4c70f69091a6d21a4cbf0df60a23)
berks version: 6.2.0
kitchen version: 1.16.0
inspec version: 1.31.1
> tree
.
├── Berksfile
├── Berksfile.lock
├── README.md
├── chefignore
├── metadata.rb
├── recipes
│   └── default.rb
├── spec
│   ├── spec_helper.rb
│   └── unit
│       └── recipes
│           └── default_spec.rb
└── test
    └── smoke
        └── default
            ├── controls
            │   └── default_test.rb
            ├── inspec.lock
            └── inspec.yml

8 directories, 11 files

Basically, I had to move the default test/smoke/default/default_test.rb file into a controls/ subdirectory, and add an inspec.yml file. I'm attaching my .kitchen.yml and inspec.yml files.

inspec.yml.txt
kitchen.yml.txt

@grv87
Copy link

grv87 commented Jul 21, 2017

My problem is gone, I figured out how to use inspec verifier with external profile.
Working code: https://github.com/FIDATA/infrastructure/blob/master/src/chef/.kitchen.yml#L62-L65

@adamleff
Copy link
Contributor

Closing this issue as it appears to be resolved, and the inspec_tests parameter can be used to specify the exact tests to run, even when the default path structure expected by Test Kitchen isn't in use. If I'm incorrect about this being resolved, please let me know with specifics and I'll be happy to re-open.

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

4 participants