Parsing that whole mess apart it looks like you have 3 failures (in
the stack trace they should up as the "F" right after
"/usr/bin/rspec:19") where the stacktrace of what went wrong in each
case is between the "/usr/bin/rspec:19" and the
"/var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:12:in
`datadir'" above it. The most interesting thing for each stack trace
is that they all go through your spec file
(/etc/puppet/environments/test/modules/elasticsearch/spec/classes/elasticsearch_spec.rb)
at the same lines that rspec is reporting for the failures (58, 36,
and 15). Top of the stacktrace shows where the error occurred:
/var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:12:in
`datadir', which is the same each time. Taking a look at that code in
hiera 0.3.0 
(https://github.com/puppetlabs/hiera/blob/v0.3.0/lib/hiera/backend.rb#L12)
shows 2 calls of '[]' to access the Config. We can tell that Config is
not the nil in this case because to reach that line it had to execute
`Config.include?` on the previous line. That means that
`Config[backend]` is what has returned nil.

As you said, you started getting the error when you started using
hiera. I think this points to not having hiera properly configured.
Now if only this had been a little easier to track down :)

On Mon, Aug 20, 2012 at 2:03 PM, llowder <[email protected]> wrote:
>
>
> On Monday, August 20, 2012 3:48:28 PM UTC-5, Andy Parker wrote:
>>
>> That error isn't really all that specific. We need the stack trace
>> that goes along with it to figure out more. Can you try adding
>>
>>   before :each do
>>     Puppet[:trace] = true
>>   end
>>
>> That might give more useful info about what is going wrong.
>>
>>
>
> Here you go. I looked through it, but it did not make much sense to me. If
> there is anything else I can do to help, please let me know.
>
>
> $ sudo rake spec --trace
> ** Invoke spec (first_time)
> ** Execute spec
> ** Invoke spec_prep (first_time)
> ** Execute spec_prep
> ** Invoke spec_standalone (first_time)
> ** Execute spec_standalone
> /usr/bin/ruby1.8 -S rspec spec/classes/elasticsearch_spec.rb --color
>
> Mocha deprecation warning: Test::Unit or MiniTest must be loaded *before*
> Mocha.
> Mocha deprecation warning: If you're integrating with another test library,
> you should probably require 'mocha_standalone' instead of 'mocha'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:12:in `datadir'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:23:in `datafile'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend/yaml_backend.rb:18:in
> `lookup'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:70:in `datasources'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:68:in `map'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:68:in `datasources'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend/yaml_backend.rb:15:in
> `lookup'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:160:in `lookup'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:157:in `each'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:157:in `lookup'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera.rb:59:in `lookup'
> /etc/puppet/environments/test/modules/elasticsearch/spec/fixtures/modules/hiera-puppet/lib/puppet/parser/functions/hiera.rb:39:in
> `function_hiera'
> /usr/lib/ruby/1.8/puppet/parser/ast/function.rb:33:in `send'
> /usr/lib/ruby/1.8/puppet/parser/ast/function.rb:33:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in `safeevaluate'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:257:in `set_resource_parameters'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:250:in `each'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:250:in `set_resource_parameters'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:72:in `evaluate_code'
> /usr/lib/ruby/1.8/puppet/parser/resource.rb:85:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:159:in `evaluate_classes'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:146:in `each'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:146:in `evaluate_classes'
> /usr/lib/ruby/1.8/puppet/parser/functions/include.rb:6:in `function_include'
> /usr/lib/ruby/1.8/puppet/parser/ast/function.rb:33:in `send'
> /usr/lib/ruby/1.8/puppet/parser/ast/function.rb:33:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in `safeevaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:25:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in `each'
> /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in `safeevaluate'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:76:in `evaluate_code'
> /usr/lib/ruby/1.8/puppet/parser/resource.rb:85:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:295:in `evaluate_main'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:99:in `compile'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:24:in `compile'
> /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in `compile'
> /usr/lib/ruby/1.8/puppet/util.rb:164:in `benchmark'
> /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:75:in `compile'
> /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:35:in `find'
> /usr/lib/ruby/1.8/puppet/indirector/indirection.rb:196:in `find'
> /var/lib/gems/1.8/gems/rspec-puppet-0.1.3/lib/rspec-puppet/support.rb:12:in
> `build_catalog'
> /var/lib/gems/1.8/gems/rspec-puppet-0.1.3/lib/rspec-puppet/example/class_example_group.rb:52:in
> `catalogue'
> /var/lib/gems/1.8/gems/rspec-puppet-0.1.3/lib/rspec-puppet/example/class_example_group.rb:7:in
> `subject'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/subject.rb:64:in
> `should'
> /etc/puppet/environments/test/modules/elasticsearch/spec/classes/elasticsearch_spec.rb:15
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in
> `instance_eval'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in
> `with_around_each_hooks'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in
> `run_examples'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in
> `map'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in
> `run_examples'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in
> `map'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in
> `report'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8
> /usr/bin/rspec:19
> F/var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:12:in `datadir'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:23:in `datafile'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend/yaml_backend.rb:18:in
> `lookup'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:70:in `datasources'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:68:in `map'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:68:in `datasources'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend/yaml_backend.rb:15:in
> `lookup'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:160:in `lookup'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:157:in `each'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:157:in `lookup'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera.rb:59:in `lookup'
> /etc/puppet/environments/test/modules/elasticsearch/spec/fixtures/modules/hiera-puppet/lib/puppet/parser/functions/hiera.rb:39:in
> `function_hiera'
> /usr/lib/ruby/1.8/puppet/parser/ast/function.rb:33:in `send'
> /usr/lib/ruby/1.8/puppet/parser/ast/function.rb:33:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in `safeevaluate'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:257:in `set_resource_parameters'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:250:in `each'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:250:in `set_resource_parameters'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:72:in `evaluate_code'
> /usr/lib/ruby/1.8/puppet/parser/resource.rb:85:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:159:in `evaluate_classes'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:146:in `each'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:146:in `evaluate_classes'
> /usr/lib/ruby/1.8/puppet/parser/functions/include.rb:6:in `function_include'
> /usr/lib/ruby/1.8/puppet/parser/ast/function.rb:33:in `send'
> /usr/lib/ruby/1.8/puppet/parser/ast/function.rb:33:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in `safeevaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:25:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in `each'
> /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in `safeevaluate'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:76:in `evaluate_code'
> /usr/lib/ruby/1.8/puppet/parser/resource.rb:85:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:295:in `evaluate_main'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:99:in `compile'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:24:in `compile'
> /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in `compile'
> /usr/lib/ruby/1.8/puppet/util.rb:164:in `benchmark'
> /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:75:in `compile'
> /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:35:in `find'
> /usr/lib/ruby/1.8/puppet/indirector/indirection.rb:196:in `find'
> /var/lib/gems/1.8/gems/rspec-puppet-0.1.3/lib/rspec-puppet/support.rb:12:in
> `build_catalog'
> /var/lib/gems/1.8/gems/rspec-puppet-0.1.3/lib/rspec-puppet/example/class_example_group.rb:52:in
> `catalogue'
> /var/lib/gems/1.8/gems/rspec-puppet-0.1.3/lib/rspec-puppet/example/class_example_group.rb:7:in
> `subject'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/subject.rb:64:in
> `should'
> /etc/puppet/environments/test/modules/elasticsearch/spec/classes/elasticsearch_spec.rb:36
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in
> `instance_eval'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in
> `with_around_each_hooks'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in
> `run_examples'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in
> `map'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in
> `run_examples'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in
> `map'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in
> `map'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in
> `report'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8
> /usr/bin/rspec:19
> F/var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:12:in `datadir'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:23:in `datafile'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend/yaml_backend.rb:18:in
> `lookup'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:70:in `datasources'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:68:in `map'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:68:in `datasources'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend/yaml_backend.rb:15:in
> `lookup'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:160:in `lookup'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:157:in `each'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera/backend.rb:157:in `lookup'
> /var/lib/gems/1.8/gems/hiera-0.3.0/lib/hiera.rb:59:in `lookup'
> /etc/puppet/environments/test/modules/elasticsearch/spec/fixtures/modules/hiera-puppet/lib/puppet/parser/functions/hiera.rb:39:in
> `function_hiera'
> /usr/lib/ruby/1.8/puppet/parser/ast/function.rb:33:in `send'
> /usr/lib/ruby/1.8/puppet/parser/ast/function.rb:33:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in `safeevaluate'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:257:in `set_resource_parameters'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:250:in `each'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:250:in `set_resource_parameters'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:72:in `evaluate_code'
> /usr/lib/ruby/1.8/puppet/parser/resource.rb:85:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:159:in `evaluate_classes'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:146:in `each'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:146:in `evaluate_classes'
> /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:60:in `evaluate'
> /usr/lib/ruby/1.8/puppet/util/errors.rb:35:in `exceptwrap'
> /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:43:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:42:in `collect'
> /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:42:in `evaluate'
> /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `collect'
> /usr/lib/ruby/1.8/puppet/parser/ast/branch.rb:16:in `each'
> /usr/lib/ruby/1.8/puppet/parser/ast/branch.rb:15:in `each'
> /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:25:in `collect'
> /usr/lib/ruby/1.8/puppet/parser/ast/resource.rb:25:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in `safeevaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:25:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in `each'
> /usr/lib/ruby/1.8/puppet/parser/ast/astarray.rb:20:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/ast.rb:76:in `safeevaluate'
> /usr/lib/ruby/1.8/puppet/resource/type.rb:76:in `evaluate_code'
> /usr/lib/ruby/1.8/puppet/parser/resource.rb:85:in `evaluate'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:295:in `evaluate_main'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:99:in `compile'
> /usr/lib/ruby/1.8/puppet/parser/compiler.rb:24:in `compile'
> /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in `compile'
> /usr/lib/ruby/1.8/puppet/util.rb:164:in `benchmark'
> /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:75:in `compile'
> /usr/lib/ruby/1.8/puppet/indirector/catalog/compiler.rb:35:in `find'
> /usr/lib/ruby/1.8/puppet/indirector/indirection.rb:196:in `find'
> /var/lib/gems/1.8/gems/rspec-puppet-0.1.3/lib/rspec-puppet/support.rb:12:in
> `build_catalog'
> /var/lib/gems/1.8/gems/rspec-puppet-0.1.3/lib/rspec-puppet/example/class_example_group.rb:52:in
> `catalogue'
> /var/lib/gems/1.8/gems/rspec-puppet-0.1.3/lib/rspec-puppet/example/class_example_group.rb:7:in
> `subject'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/subject.rb:64:in
> `should'
> /etc/puppet/environments/test/modules/elasticsearch/spec/classes/elasticsearch_spec.rb:58
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in
> `instance_eval'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in
> `with_around_each_hooks'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in
> `run_examples'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in
> `map'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in
> `run_examples'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in
> `map'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:361:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in
> `map'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in
> `report'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in
> `run'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8
> /usr/bin/rspec:19
> F
>
> Failures:
>
>   1) elasticsearch
>      Failure/Error: })
>      Puppet::Error:
>
>        undefined method `[]' for nil:NilClass at
> /etc/puppet/environments/test/modules/elasticsearch/spec/fixtures/modules/elasticsearch/manifests/init.pp:79
> on node XXXX
>      # ./spec/classes/elasticsearch_spec.rb:15
>
>   2) elasticsearch On an Ubuntu 10.04 OS with no params specified
>      Failure/Error: should contain_file('elastic_conf').with_content(
> /^cluster.name: graylog2$/ )
>      Puppet::Error:
>        undefined method `[]' for nil:NilClass at
> /etc/puppet/environments/test/modules/elasticsearch/spec/fixtures/modules/elasticsearch/manifests/init.pp:79
> on node XXXXX
>      # ./spec/classes/elasticsearch_spec.rb:36
>
>   3) elasticsearch On an Ubuntu 10.04 OS with params specified
>      Failure/Error: should contain_file('elastic_conf').with_content(
> /^cluster.name: lumberjackcamp$/ )
>      Puppet::Error:
>        undefined method `[]' for nil:NilClass at
> /etc/puppet/environments/test/modules/elasticsearch/spec/fixtures/modules/elasticsearch/manifests/init.pp:79
> on node XXXXX
>      # ./spec/classes/elasticsearch_spec.rb:58
>
> Finished in 0.34404 seconds
> 3 examples, 3 failures
>
> Failed examples:
>
> rspec ./spec/classes/elasticsearch_spec.rb:10 # elasticsearch
> rspec ./spec/classes/elasticsearch_spec.rb:35 # elasticsearch On an Ubuntu
> 10.04 OS with no params specified
> rspec ./spec/classes/elasticsearch_spec.rb:57 # elasticsearch On an Ubuntu
> 10.04 OS with params specified
> rake aborted!
> /usr/bin/ruby1.8 -S rspec spec/classes/elasticsearch_spec.rb --color failed
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/rake_task.rb:137
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:60:in
> `verbose'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/rake_task.rb:127:in
> `send'
> /var/lib/gems/1.8/gems/rspec-core-2.11.1/lib/rspec/core/rake_task.rb:127
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in
> `invoke_with_call_chain'
> /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in
> `invoke_with_call_chain'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
> /var/lib/gems/1.8/gems/puppetlabs_spec_helper-0.2.0/lib/puppetlabs_spec_helper/rake_tasks.rb:89
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in
> `invoke_with_call_chain'
> /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in
> `invoke_with_call_chain'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in
> `invoke_task'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
> `top_level'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in
> `top_level'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
> `standard_exception_handling'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in
> `top_level'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
> `standard_exception_handling'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
> /var/lib/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
> /usr/bin/rake:19:in `load'
> /usr/bin/rake:19
> Tasks: TOP => spec_standalone
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-dev/-/Egkrx4LELPwJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-dev?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to