- cinder-api now runs under apache2 and no longer as systemd service - cinder-volume needs explicit backend configuration - don't install deprecated cinder v1 API endpoints - clean up some config options To be added in a follow-up: - Make backend configuration more flexible - Replace distro provided wsgi setup with our custom one Change-Id: I77ac294fd8e1cd4e6bc39667ddfdea21c4daed8a
		
			
				
	
	
		
			31 lines
		
	
	
		
			859 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			859 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# encoding: UTF-8
 | 
						|
#
 | 
						|
# Cookbook Name:: openstack-block-storage
 | 
						|
 | 
						|
require_relative 'spec_helper'
 | 
						|
 | 
						|
describe 'openstack-block-storage::api' do
 | 
						|
  describe 'redhat' do
 | 
						|
    let(:runner) { ChefSpec::SoloRunner.new(REDHAT_OPTS) }
 | 
						|
    let(:node) { runner.node }
 | 
						|
    let(:chef_run) { runner.converge(described_recipe) }
 | 
						|
 | 
						|
    include_context 'block-storage-stubs'
 | 
						|
 | 
						|
    it 'upgrades cinder api package' do
 | 
						|
      expect(chef_run).to upgrade_package 'openstack-cinder'
 | 
						|
    end
 | 
						|
 | 
						|
    it 'upgrades mysql python package' do
 | 
						|
      expect(chef_run).to upgrade_package 'MySQL-python'
 | 
						|
    end
 | 
						|
 | 
						|
    it 'upgrades postgresql python packages if explicitly told' do
 | 
						|
      node.set['openstack']['db']['block-storage']['service_type'] = 'postgresql'
 | 
						|
 | 
						|
      expect(chef_run).to upgrade_package 'python-psycopg2'
 | 
						|
      expect(chef_run).not_to upgrade_package 'MySQL-python'
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |