cookbook-openstack-telemetry/spec/agent-central_spec.rb
galstrom21 5ae67ff44f Refactoring ChefSpec tests
Change-Id: I6c9148e0981f7c01eae4e09545ef011bf38bedfe
Addresses: blueprint refactor-spec-files
2014-03-18 15:47:44 -05:00

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