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

Support writing full tests in inspec shell #240

Closed
arlimus opened this issue Nov 16, 2015 · 0 comments
Closed

Support writing full tests in inspec shell #240

arlimus opened this issue Nov 16, 2015 · 0 comments
Labels
Type: Enhancement Improves an existing feature
Milestone

Comments

@arlimus
Copy link
Contributor

arlimus commented Nov 16, 2015

At the moment it is not possible to start an inspec shell and paste either a control or a describe block and have it execute and report results.

I.e:

inspec shell

And then enter:

describe file('/not/here') do
   it { should_not exist }
end

which will only result in:

=> [["describe", [File /not/here], #<Proc:0x000000013f3850@(pry):1>]]

The desired output should be:

  1. A print of the execution using the default cli formatter, without the additonal profile context and version. i.e.:

        ssh-1: Allow only SSH Protocol 2
  2. The test should return a result object, which has a result value embedded.

@arlimus arlimus added the Type: Enhancement Improves an existing feature label Nov 27, 2015
@arlimus arlimus added this to the 0.29.0 milestone Aug 4, 2016
@chris-rock chris-rock modified the milestones: 0.30.0, 0.29.0 Aug 5, 2016
@ksubrama ksubrama self-assigned this Aug 5, 2016
@chris-rock chris-rock modified the milestones: 0.30.0, 0.31.0 Aug 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

No branches or pull requests

3 participants