Files
cookbook-openstack-block-st…/spec/volume_spec.rb
Christoph Albers fbbb9ad5cf remove targets.conf
- since the target package ships the default conf we won't need this
  anymore
- the cinder target.conf is shipped by the cinder package to the right
  directory
- removed targets.conf.erb since this isn't used anymore
- removed obsolete specs
- minor version bumped since this patch could break things

Change-Id: I9485cc65231b1da8b24efdb7e25551e4d4688d6a
2019-04-01 10:08:47 +02:00

50 lines
1.3 KiB
Ruby

# encoding: UTF-8
#
# Cookbook Name:: openstack-block-storage
require_relative 'spec_helper'
describe 'openstack-block-storage::volume' do
describe 'ubuntu' do
let(:runner) { ChefSpec::SoloRunner.new(UBUNTU_OPTS) }
let(:node) { runner.node }
let(:chef_run) { runner.converge(described_recipe) }
include_context 'block-storage-stubs'
include_examples 'common-logging'
include_examples 'creates_cinder_conf', 'service[cinder-volume]', 'cinder', 'cinder'
it 'upgrades cinder volume packages' do
expect(chef_run).to upgrade_package 'cinder-volume'
end
it 'upgrades qemu utils package' do
expect(chef_run).to upgrade_package 'qemu-utils'
end
it 'upgrades thin provisioning tools package' do
expect(chef_run).to upgrade_package 'thin-provisioning-tools'
end
it 'starts cinder volume' do
expect(chef_run).to start_service 'cinder-volume'
end
it 'starts cinder volume on boot' do
expect(chef_run).to enable_service 'cinder-volume'
end
it 'starts iscsi target on boot' do
expect(chef_run).to enable_service 'iscsitarget'
end
it 'upgrades mysql python packages by default' do
expect(chef_run).to upgrade_package 'python-mysqldb'
end
it 'upgrades cinder iscsi package' do
expect(chef_run).to upgrade_package 'targetcli'
end
end
end