-
Notifications
You must be signed in to change notification settings - Fork 681
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 loads whichever *.rb file it finds along the way causing itself to fail #1326
Comments
@walterdolce I cannot reproduce that issue:
|
@chris-rock you didn't checkout the feature branch |
@walterdolce I can confirm that issue now. The old versions of InSpec allowed placing tests in |
Thank you @chris-rock for the promptly PR. Will be waiting for it to be merged. 🍺 |
@walterdolce InSpec 1.6.0 is released now |
Description
I started implementing an InSpec profile and I obviously wanted to do it by adopting a BDD/TDD workflow. I have setup the components required to test various scenarios for the profile. You can have a look at the overall structure here.
The problem is simple, when running
inspec check .
from the root of the project, it picks up whatever it finds starting from that position. This means it's going to assume every*.rb
file from that directory position will be something related to InSpec itself, when in reality really is not.The output produced is the following:
InSpec and Platform Version
Replication Case
bundle install
inspec check .
orbundle exec inspec check .
(depending on whether you have it installed already)Possible Solutions
InSpec should take into consideration only the
*.rb
files which pertain to the work it needs to do (just whatever is incontrols/
? Please clarify).Stacktrace
Included above.
The text was updated successfully, but these errors were encountered: