1b39032b8d
- Cookstyle fixes - Refactor Berksfile to use groups so we can exclude integration testing cookbooks - Update documentation - Enable sensitive resources for the template[/etc/cinder/cinder.conf] and to resources improve security. - Update delivery configuration to exclude integration cookbooks - Fix ChefSpec output. - Switch package installations to send packages as arrays instead of individual package resources. This generally speeds up chef runs. Depends-On: https://review.opendev.org/701027 Depends-On: https://review.opendev.org/706151 Depends-On: https://review.opendev.org/706157 Change-Id: I73948a67e798477cfe7d3cf62474d0ea96f90db2
42 lines
1.0 KiB
Ruby
42 lines
1.0 KiB
Ruby
# encoding: UTF-8
|
|
#
|
|
# Cookbook:: openstack-block-storage
|
|
|
|
require_relative 'spec_helper'
|
|
|
|
describe 'openstack-block-storage::volume' do
|
|
describe 'redhat' do
|
|
let(:runner) { ChefSpec::SoloRunner.new(REDHAT_OPTS) }
|
|
let(:node) { runner.node }
|
|
cached(:chef_run) { runner.converge(described_recipe) }
|
|
|
|
include_context 'block-storage-stubs'
|
|
|
|
it 'upgrades mysql python package' do
|
|
expect(chef_run).to upgrade_package('MySQL-python')
|
|
end
|
|
|
|
it 'upgrades qemu-img-ev package' do
|
|
expect(chef_run).to upgrade_package('qemu-img-ev')
|
|
end
|
|
|
|
it do
|
|
expect(chef_run).to upgrade_package %w(targetcli dbus-python)
|
|
end
|
|
|
|
it 'starts cinder volume' do
|
|
expect(chef_run).to start_service('openstack-cinder-volume')
|
|
end
|
|
|
|
it 'starts cinder volume on boot' do
|
|
expect(chef_run).to enable_service('openstack-cinder-volume')
|
|
end
|
|
|
|
context 'ISCSI' do
|
|
it 'starts iscsi target on boot' do
|
|
expect(chef_run).to enable_service('iscsitarget')
|
|
end
|
|
end
|
|
end
|
|
end
|