Files
cookbook-openstack-block-st…/spec/backup-redhat_spec.rb
Samuel Cassiba 681a71fb33 starting rocky development patch
Change-Id: I829e8e793d107b9bf6d35781480cafdb27f7a928
2018-08-03 06:39:18 -07:00

34 lines
877 B
Ruby

# encoding: UTF-8
#
# Cookbook Name:: openstack-block-storage
require_relative 'spec_helper'
describe 'openstack-block-storage::backup' 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'
describe 'enable cinder backup service' do
before do
node.override['openstack']['block-storage']['backup']['enabled'] = true
end
it 'starts cinder backup' do
expect(chef_run).to start_service 'openstack-cinder-backup'
end
it 'starts cinder backup on boot' do
expect(chef_run).to enable_service 'openstack-cinder-backup'
end
it 'upgrades mysql python package' do
expect(chef_run).to upgrade_package 'MySQL-python'
end
end
end
end