Files
cookbook-openstack-ops-data…/spec/server_spec.rb
Lance Albertson f3c9fca120 Cookstyle 6.19.5 fixes
Depends-On: https://review.opendev.org/756168
Change-Id: Ia379098ac40eee7a6627fe10b9320ff59468391f
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:04:22 -07:00

16 lines
506 B
Ruby

require_relative 'spec_helper'
describe 'openstack-ops-database::server' do
describe 'ubuntu' do
include_context 'database-stubs'
let(:runner) { ChefSpec::SoloRunner.new(UBUNTU_OPTS) }
let(:node) { runner.node }
cached(:chef_run) { runner.converge(described_recipe) }
it 'uses mariadb server recipe by default' do
node.override['openstack']['db']['service_type'] = 'mariadb'
expect(chef_run).to include_recipe('openstack-ops-database::mariadb-server')
end
end
end