Project

General

Profile

Download (686 Bytes) Statistics
| Branch: | Tag: | Revision:
require 'spec_helper_acceptance'

describe 'Scenario: install foreman-cli without foreman' do
before(:context) do
case fact('osfamily')
when 'RedHat'
on default, 'yum -y remove foreman* tfm-*'
when 'Debian'
on default, 'apt-get purge -y foreman*', { :acceptable_exit_codes => [0, 100] }
on default, 'apt-get purge -y ruby-hammer-cli-*', { :acceptable_exit_codes => [0, 100] }
end
end

let(:pp) do
<<-EOS
class { 'foreman::cli':
foreman_url => 'https://foreman.example.com',
username => 'admin',
password => 'changeme',
}
EOS
end

it_behaves_like 'a idempotent resource'

it_behaves_like 'hammer'
end
(3-3/7)