File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 343343
344344 contain ' foreman::settings' # lint:ignore:relative_classname_inclusion (PUP-1597)
345345 Class[' foreman::database' ] -> Class[' foreman::settings' ]
346+
347+ file { '/usr/share/foreman/tmp/restart_required_changed_plugins' :
348+ ensure => absent ,
349+ notify => Class[' foreman::service' ],
350+ require => Class[' foreman::install' ],
351+ }
346352}
Original file line number Diff line number Diff line change 157157
158158 # settings
159159 it { should contain_class ( 'foreman::settings' ) . that_requires ( 'Class[foreman::database]' ) }
160+
161+ # restart service when new plugins are installed
162+ it { should contain_file ( '/usr/share/foreman/tmp/restart_required_changed_plugins' ) . that_requires ( 'Class[foreman::install]' ) . that_notifies ( 'Class[foreman::service]' ) }
160163 end
161164
162165 context 'without apache' do
You can’t perform that action at this time.
0 commit comments