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

22 lines
577 B
Ruby

# encoding: UTF-8
require_relative 'spec_helper'
describe 'openstack-telemetry::agent-compute' do
describe 'suse' do
let(:runner) { ChefSpec::Runner.new(SUSE_OPTS) }
let(:node) { runner.node }
let(:chef_run) { runner.converge(described_recipe) }
include_context 'telemetry-stubs'
it 'installs the agent-compute package' do
expect(chef_run).to install_package 'openstack-ceilometer-agent-compute'
end
it 'starts the agent-compute service' do
expect(chef_run).to start_service 'openstack-ceilometer-agent-compute'
end
end
end