- From: Cassiano Leal <
>
- To:
- Subject: [chef] Test-Kitchen & serverspec woes
- Date: Thu, 20 Jun 2013 15:58:37 -0300
Hey ho!
I’m having a bit of trouble running serverspec ... erm... specs in Test Kitchen 1.0.0.alpha.7.
This is an exerpt of the kind of error I’m seeing:
-----> Running serverspec test suite
/opt/chef/embedded/bin/ruby -I/opt/busser/suites/serverspec -S /opt/chef/embedded/bin/rspec /opt/busser/suites/serverspec/localhost/logstash_agent_spec.rb
FFF
Failures:
1) Logstash Agent downloads the jar and install it
Failure/Error: Unable to find matching line from backtrace
NameError: undefined local variable or method `backend' for #<RSpec::Core::ExampleGroup::Nested_1:0x00000002e96068>
# /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/matchers/method_missing.rb:9:in `method_missing'
# /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/serverspec-0.6.6/lib/serverspec.rb:42:in `block (2 levels) in <top (required)>'
# /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example.rb:237:in `instance_eval’
(...)
I have my specs in test/integration/default/serverspec/localhost (with a spec_helper.rb in its parent dir). All three specs fail with the same error.
The node conversion ran without problems, and I manually verified that it worked as expected, but the specs failed miserably.
Any ideas where should I look for the problem?
- [chef] Test-Kitchen & serverspec woes, Cassiano Leal, 06/20/2013
Archive powered by MHonArc 2.6.16.