Files
cookbook-openstack-telemetry/spec/common-suse_spec.rb
Jan Klare dc78336dd9 move from bundler to chefdk
- deprecated Gemfile
- updated TESTING and README
- updated Rakefile to use chef exec instead of bundle exec
- replaced Runner by SoloRunner in specs

Change-Id: If523a416d87e2f6424923acd9942b44382c67065
2015-04-29 10:45:22 +02:00

27 lines
756 B
Ruby

# encoding: UTF-8
require_relative 'spec_helper'
describe 'openstack-telemetry::common' do
describe 'suse' do
let(:runner) { ChefSpec::SoloRunner.new(SUSE_OPTS) }
let(:node) { runner.node }
let(:chef_run) { runner.converge(described_recipe) }
include_context 'telemetry-stubs'
it 'installs mysql python packages by default' do
expect(chef_run).to upgrade_package 'python-mysql'
end
it 'installs postgresql python packages if explicitly told' do
node.set['openstack']['db']['telemetry']['service_type'] = 'postgresql'
expect(chef_run).to upgrade_package 'python-psycopg2'
end
it 'installs the common package' do
expect(chef_run).to upgrade_package 'openstack-ceilometer'
end
end
end