Openstackclient should be installed in the client class, not the main class. It should be possible to use keystone as a client without the main class. For example, it may be necessary to create cinder keystone endpoints on a Cinder node, but not require all of Keystone. Change-Id: Ic9e688d698adffb24f99e9d75a8754391940a7b4 Partial-Bug: #1479317
		
			
				
	
	
		
			27 lines
		
	
	
		
			634 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			634 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
require 'spec_helper'
 | 
						|
 | 
						|
describe 'keystone::client' do
 | 
						|
 | 
						|
  describe "with default parameters" do
 | 
						|
    it { is_expected.to contain_package('python-keystoneclient').with(
 | 
						|
        'ensure' => 'present',
 | 
						|
        'tag'    => 'openstack'
 | 
						|
    ) }
 | 
						|
    it { is_expected.to contain_package('python-openstackclient').with(
 | 
						|
        'ensure' => 'present',
 | 
						|
        'tag'    => 'openstack',
 | 
						|
    ) }
 | 
						|
  end
 | 
						|
 | 
						|
  describe "with specified version" do
 | 
						|
    let :params do
 | 
						|
      {:ensure => '2013.1'}
 | 
						|
    end
 | 
						|
 | 
						|
    it { is_expected.to contain_package('python-keystoneclient').with(
 | 
						|
        'ensure' => '2013.1',
 | 
						|
        'tag'    => 'openstack'
 | 
						|
    ) }
 | 
						|
  end
 | 
						|
end
 |