 a419984dac
			
		
	
	a419984dac
	
	
	
		
			
			Instead of forcing 'updates' UCA repo, leaves possibility to the operator to choose which UCA he wants for pulling packages Change-Id: I3e47f8a8b280d1dfe29229e1f9905ad7c71c204d
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			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
 |