File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 54
54
~> file { ' /etc/smart_proxy_dynflow_core/settings.yml' :
55
55
ensure => file ,
56
56
content => template (' foreman_proxy/plugin/dynflow_core.yml.erb' ),
57
+ notify => Service[' smart_proxy_dynflow_core' ],
57
58
}
58
- ~ > file { ' /etc/smart_proxy_dynflow_core/settings.d' :
59
+ - > file { ' /etc/smart_proxy_dynflow_core/settings.d' :
59
60
ensure => link,
60
61
target => " ${foreman_proxy::config_dir} /settings.d" ,
62
+ notify => Service[' smart_proxy_dynflow_core' ],
61
63
}
62
- ~ > systemd::service_limits { ' smart_proxy_dynflow_core.service' :
64
+ - > systemd::service_limits { ' smart_proxy_dynflow_core.service' :
63
65
limits => {
64
66
' LimitNOFILE' => $open_file_limit ,
65
67
},
Original file line number Diff line number Diff line change 54
54
":ssl_private_key: /etc/puppetlabs/puppet/ssl/private_keys/foo.example.com.pem" ,
55
55
] )
56
56
end
57
+
58
+ it 'should restart external core' do
59
+ should contain_file ( "#{ etc_dir } /smart_proxy_dynflow_core/settings.yml" ) .
60
+ that_notifies ( 'Service[smart_proxy_dynflow_core]' )
61
+ should contain_file ( "#{ etc_dir } /smart_proxy_dynflow_core/settings.d" ) .
62
+ that_notifies ( 'Service[smart_proxy_dynflow_core]' )
63
+ end
57
64
else
58
65
it { should_not contain_foreman_proxy__plugin ( 'dynflow_core' ) }
59
66
it { should_not contain_file ( "#{ etc_dir } /smart_proxy_dynflow_core/settings.d" ) }
You can’t perform that action at this time.
0 commit comments