1d57c4e2c8
Depends-On: https://review.opendev.org/#/c/740601/ Change-Id: Iff4fafb66878ce3273516e7c3ba046a844a9d09a
31 lines
1008 B
Ruby
31 lines
1008 B
Ruby
require 'spec_helper_acceptance'
|
|
|
|
describe 'openstack_extras::repo::*' do
|
|
|
|
context 'default parameters' do
|
|
|
|
release = 'mitaka'
|
|
it 'should work with no errors' do
|
|
pp= <<-EOS
|
|
include openstack_integration
|
|
include openstack_integration::repos
|
|
EOS
|
|
|
|
|
|
# Run it twice and test for idempotency
|
|
apply_manifest(pp, :catch_failures => true)
|
|
apply_manifest(pp, :catch_changes => true)
|
|
end
|
|
|
|
it 'should be able to install openstack packages' do
|
|
if os[:family] == 'Debian'
|
|
expect(command('apt-get install -y python-openstackclient').exit_code).to be_zero
|
|
expect(command('apt-cache policy python-openstackclient | grep -A 1 \*\*\*').stdout).to match(/#{release}/)
|
|
elsif os[:family] == 'RedHat'
|
|
expect(command('yum install -y python-openstackclient').exit_code).to be_zero
|
|
expect(command('yum list python-openstackclient | grep -A 1 "Installed Packages"').stdout).to match(/@rdo-release/)
|
|
end
|
|
end
|
|
end
|
|
end
|