5ae67ff44f
Change-Id: I6c9148e0981f7c01eae4e09545ef011bf38bedfe Addresses: blueprint refactor-spec-files
23 lines
607 B
Ruby
23 lines
607 B
Ruby
# encoding: UTF-8
|
|
|
|
require_relative 'spec_helper'
|
|
|
|
describe 'openstack-telemetry::agent-central' do
|
|
describe 'ubuntu' do
|
|
let(:runner) { ChefSpec::Runner.new(UBUNTU_OPTS) }
|
|
let(:node) { runner.node }
|
|
let(: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 install_package 'ceilometer-agent-central'
|
|
end
|
|
|
|
it 'starts agent-central service' do
|
|
expect(chef_run).to start_service('ceilometer-agent-central')
|
|
end
|
|
end
|
|
end
|