Comments (2)
Thanks @cheesesashimi for adding this. I close that issue. Please re-open if this kitchen-inspec
is not doing what you need.
from kitchen-inspec.
Thanks @cheesesashimi! Is there a way to make the error output more concise? Specifically, I'd like to silence the traceback from a failure and display only the failure message.
For example, I'd like to see only this:
2) gem package riemann-tools should be installed
Failure/Error: versions = params[2].split(',')
Instead of this montrosity:
2) gem package riemann-tools should be installed
Failure/Error: versions = params[2].split(',')
NoMethodError:
undefined method `[]' for nil:NilClass
# /home/conor/.gem/ruby/2.1.0/gems/inspec-0.9.8/lib/resources/gem.rb:31:in `info'
# /home/conor/.gem/ruby/2.1.0/gems/inspec-0.9.8/lib/resources/gem.rb:38:in `installed?'
# /home/conor/.gem/ruby/2.1.0/gems/inspec-0.9.8/lib/matchers/matchers.rb:97:in `block (2 levels) in <top (required)>'
# ./test/integration/default/riemann_dash_spec.rb:10:in `block (2 levels) in load'
# /home/conor/.gem/ruby/2.1.0/gems/inspec-0.9.8/lib/inspec/runner.rb:117:in `run_with'
# /home/conor/.gem/ruby/2.1.0/gems/inspec-0.9.8/lib/inspec/runner.rb:113:in `run'
# /home/conor/.gem/ruby/2.1.0/gems/kitchen-inspec-0.10.1/lib/kitchen/verifier/inspec.rb:43:in `call'
# /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:398:in `block in verify_action'
# /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:488:in `call'
# /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:488:in `synchronize_or_call'
# /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:453:in `block in action'
# /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:452:in `action'
# /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:394:in `verify_action'
# /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:341:in `block in transition_to'
# /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:340:in `each'
# /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:340:in `transition_to'
# /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/instance.rb:160:in `verify'
# /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/command.rb:176:in `public_send'
# /home/conor/.gem/ruby/2.1.0/gems/test-kitchen-1.4.2/lib/kitchen/command.rb:176:in `block (2 levels) in run_action
The verbose format obscures the error report with unnecessary info about inspec's internals.
from kitchen-inspec.
Related Issues (20)
- Expeditor cannot find agent for inspec/kitchen-inspec HOT 6
- Enable the ability to pass a inspec `config.yml` file to kitchen
- Incorrect lower bound specification for `inspec` dependency HOT 2
- 'junit' is not a valid reporter type in chef workstation 20.9.136 HOT 5
- Error when using plugin-based reporters and multiple instances HOT 1
- WinRM execution expired (HTTPClient::ConnectTimeoutError)
- inspec array input treated as hash w/ keys HOT 1
- junit(2) is not a valid reporter type HOT 2
- v2.4.0 Regression: reporters HOT 1
- 'aws_lambda' resource not identified
- Lifecycle Hooks Do Not Fire If InSpec Tests Fail HOT 1
- Dependabot can't resolve your Ruby dependency files
- kitchen verify fails on Windows HOT 1
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Documentation needs to be moved to https://kitchen.ci/docs/verifiers/inspec/
- Waivers file is not used HOT 4
- add support for inspec 6.6.0, updated reporters and config options
- add the ability to pass any inspec --'flags' to the verifier - such as 'enhanced-outcomes' or any that we add in the future HOT 1
- Kitchen verify return code zero with client error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitchen-inspec.