a require parameter. However, when I run the test it throws an error on
this require as it seems that I have the syntax wrong. I've tried a few
different combinations but nothing seems to work. The error is below:
*/usr/bin/ruby1.8 -S rspec spec/classes/init_spec.rb
* 1) couchbase::server should include Class[couchbase::server::install]*
* Failure/Error: 'require' => Class['couchbase::server::install']*
* undefined method `' for Class:Class*
* # ./spec/classes/server_spec.rb:9*
*Finished in 8.95 seconds*
*3 examples, 1 failure*
*rspec ./spec/classes/server_spec.rb:4 # couchbase::server should include
I tried enclosing the entire Class string in double quotes (leaving the
single quotes surrounding the class name) but then I get this error:
* 1) couchbase::server should contain Service[couchbase-server] with
ensure => "running", enable => "true" and require =>
* Failure/Error: )*
* expected that the catalogue would contain Service[couchbase-server]
with require set to `"Class['couchbase::server::install']"` but it is set
in the catalogue*
* # ./spec/classes/server_spec.rb:10*
So I tried changing it to the exact syntax it mentions in the catalogue,
but it still doesn't work. What is the correct way to specify a require
parameter as part of a "with" chain?
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To post to this group, send email to email@example.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.