File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 105105 puppet agent -v -o --no-daemonize
106106 grep -i " property of the Foreman project" /etc/motd
107107}
108+
109+ @test " disable puppet" {
110+ KATELLO_VERSION=$( tKatelloVersion)
111+ if [[ $KATELLO_VERSION != 4.[3-9]* ]]; then
112+ skip " Disabling Puppet explicitly is only supported with Katello 4.2 or older"
113+ fi
114+
115+ if tForemanMaintainCommandAvailable ' plugin purge-puppet' ; then
116+ foreman-maintain plugin purge-puppet
117+ fi
118+ }
Original file line number Diff line number Diff line change @@ -139,3 +139,11 @@ tWaitForTask() {
139139 sleep $(( next_wait_time++ ))
140140 done
141141}
142+
143+ tForemanMaintainCommandAvailable () {
144+ if tForemanMaintainAvailable ; then
145+ if ! foreman-maintain $1 --help ; then
146+ skip " foreman-maintain $1 is not available"
147+ fi
148+ fi
149+ }
You can’t perform that action at this time.
0 commit comments