puppet-openstack/spec/classes/openstack_repo_uca_spec.rb
Michael Chapman 8cacc3bdab Fix ubuntu issues that broke tests.
Puppetlabs apt introduced a change that required a debian
specific fact that wasn't being set in the spec tests. This
patch adds it.

Change-Id: Ia8fb3a5d0b01bf58eea583f2f129b48b4ce9564d
(cherry picked from commit 0cbddbcea0f3c9932863695d731f079fdd2b1be2)
2014-03-04 09:44:09 -08:00

48 lines
1.1 KiB
Ruby

require 'spec_helper'
describe 'openstack::repo::uca' do
describe 'Ubuntu with defaults' do
let :facts do
{
:osfamily => 'Debian',
:operatingsystem => 'Ubuntu',
:operatingsystemrelease => '12.04',
:lsbdistdescription => 'Ubuntu 12.04.1 LTS',
:lsbdistcodename => 'precise',
:lsbdistid => 'ubuntu',
}
end
it do
should contain_apt__source('ubuntu-cloud-archive').with(
:release => 'precise-updates/grizzly'
)
end
end
describe 'Ubuntu and grizzly' do
let :params do
{ :release => 'folsom', :repo => 'proposed' }
end
let :facts do
{
:osfamily => 'Debian',
:operatingsystem => 'Ubuntu',
:operatingsystemrelease => '12.04',
:lsbdistdescription => 'Ubuntu 12.04.1 LTS',
:lsbdistcodename => 'precise',
:lsbdistid => 'ubuntu',
}
end
it do
should contain_apt__source('ubuntu-cloud-archive').with(
:release => 'precise-proposed/folsom'
)
end
end
end