puppet-openstack_extras/spec/acceptance/openstack_extras_repo_spec.rb
Emilien Macchi 3626baf4a3 bump to mitaka
In openstack_extras_repo_spec, we hardcode the version of the release.
It was liberty, it's now mitaka since our recent CI bump.

Change-Id: I90b6f0bbeb76c870f0ab26cf0ff9bdcbb0cb5ca8
Partial-Bug: #1535382
2016-01-20 16:01:03 -05:00

32 lines
1003 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
case fact('osfamily')
when 'Debian'
expect(shell('apt-get install -y python-openstackclient').exit_code).to be_zero
expect(shell('apt-cache policy python-openstackclient | grep -A 1 \*\*\*').stdout).to match(/#{release}/)
when 'Redhat'
expect(shell('yum install -y python-openstackclient').exit_code).to be_zero
expect(shell('yum list python-openstackclient | grep -A 1 "Installed Packages"').stdout).to match(/@rdo-release/)
end
end
end
end