Hi all,
I'm trying to test a defined type that looks like this:
define app_setup::app($app_name = $title) {
include app_setup::params
$app_host = $app_setup::params::app_hosts[$app_name]['url']
$app_port = $app_setup::params::app_hosts[$app_name]['port']
$deploy_user = $app_setup::params::deploy_user
...
}
And I'm trying to write a spec like this:
describe 'app_setup::app', :type => :define do
let(:title) { 'some_app_name' }
end
My question is, how can I assign the values of
$app_setup::params::app_hosts in the spec? I tried several combinations of
'let' but didn't work.
Thanks,
Vamsee.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/6b1ca94d-97b6-4e1b-8c62-5b5ed1478705%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.