Does anyone have any feedback on this? I found at least one example 
(eg. 
https://genuxation.com/wiki/index.php/RSpec_tests_for_puppet_modules#Specifying_parameters_used_within_the_class)
 
but it didn't work for me.

Thanks,
Guy

On Tuesday, 17 September 2013 10:05:26 UTC-7, Guy Knights wrote:
>
> Can someone tell me the correct way to specify the following require 
> statement in an rspec-puppet test?
>
> *require => 
> [Class['ssl'],Class['pcre3'],Staging::Extract["nginx-${version}.tar.gz"]]*
>
> I tried this: *'require' => 
> "[Class['ssl'],Class['pcre3'],Staging::Extract['nginx-1.4.1.tar.gz']]"*but 
> got the following error:
>
> *Failure/Error: )
> *
> *expected that the catalogue would contain Exec[install_nginx] with 
> require set to 
> `"[Class['ssl'],Class['pcre3'],Staging::Extract['nginx-1.4.1.tar.gz']]"` 
> but it is set to `[Class[Ssl]{:name=>"Ssl"}, Class[Pcre3]{:name=>"Pcre3"}, 
> Staging::Extract[nginx-1.4.1.tar.gz]{:name=>"nginx-1.4.1.tar.gz"}]` in the 
> catalogue*
>
> I've tried every combination of different quotes, removing the inner 
> quotes, capitalising the resource titles, and even just copying and pasting 
> what the error above says the catalogue is reporting, but it just doesn't 
> work. I thought I had the syntax for requires figured out, but apparently 
> not.
>
> Thanks,
> Guy
>

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to