Files
cookbook-openstack-telemetry/spec/agent-central-rhel_spec.rb
Lance Albertson f04c63bd47 CentOS 8 support
- Update package names
- Migrate to using apache2_mod_wsgi resource and require apache2 ~> 8.6
- Update ChefSpec

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/815147
Change-Id: Iecf9c2a68d3c246412d2a09a7ac0888dd406c268
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 16:54:24 -07:00

23 lines
665 B
Ruby

require_relative 'spec_helper'
describe 'openstack-telemetry::agent-central' do
ALL_RHEL.each do |p|
context "redhat #{p[:version]}" do
let(:runner) { ChefSpec::SoloRunner.new(p) }
let(:node) { runner.node }
cached(:chef_run) { runner.converge(described_recipe) }
include_context 'telemetry-stubs'
include_examples 'expect-runs-common-recipe'
it 'installs the agent-central package' do
expect(chef_run).to upgrade_package 'openstack-ceilometer-central'
end
it 'starts the agent-central service' do
expect(chef_run).to start_service 'openstack-ceilometer-central'
end
end
end
end