Files
puppet-openstack/spec/classes/openstack_repo_uca_spec.rb
sbauza a419984dac Add possibility to change UCA repository
Instead of forcing 'updates' UCA repo, leaves possibility to the
operator to choose which UCA he wants for pulling packages

Change-Id: I3e47f8a8b280d1dfe29229e1f9905ad7c71c204d
2013-09-17 23:09:14 -07:00

46 lines
1.0 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',
}
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',
}
end
it do
should contain_apt__source('ubuntu-cloud-archive').with(
:release => 'precise-proposed/folsom'
)
end
end
end