-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32ea69c
commit ef8c808
Showing
9 changed files
with
51 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
50 changes: 50 additions & 0 deletions
50
spec/acceptance/suites/default/99_install_simp_deps_repo_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
hosts.each do |host| | ||
unsupported_host = false | ||
if hosts_with_role(hosts, 'el9').include?(host) | ||
unsupported_host = true | ||
end | ||
|
||
describe '#install_simp_repos' do | ||
if unsupported_host | ||
it "does not support #{host}" | ||
else | ||
it 'should install yum utils' do | ||
host.install_package('yum-utils') | ||
end | ||
|
||
context 'default settings' do | ||
before(:all) { install_simp_repos(host) } | ||
|
||
it 'enables the correct repos' do | ||
on(host, 'yum -y list simp') | ||
on(host, 'yum -y list postgresql96') | ||
end | ||
end | ||
|
||
context 'when targeting a release type' do | ||
it 'adjusts the SIMP release target' do | ||
set_simp_repo_release(host, 'rolling') | ||
expect(file_content_on(host, '/etc/yum/vars/simpreleasetype').strip).to eq('rolling') | ||
end | ||
|
||
it 'lists the simp rpm' do | ||
on(host, 'yum list simp') | ||
end | ||
end | ||
|
||
context 'when passed a disabled list ' do | ||
before(:all) { install_simp_repos(host, ['simp-community-simp'] ) } | ||
|
||
it 'enables the correct repos' do | ||
on(host, 'yum -y list postgresql96') | ||
end | ||
|
||
it 'disables the correct repos' do | ||
on(host, 'yum -y list simp', :acceptable_exit_codes => [1]) | ||
end | ||
end | ||
end | ||
end | ||
end |
49 changes: 0 additions & 49 deletions
49
spec/acceptance/suites/default/install_simp_deps_repo_spec.rb
This file was deleted.
Oops, something went wrong.