cookbook-openstack-telemetry/spec/alarm-notifier-suse_spec.rb
Luis A. Garcia fc302f9550 Add recipes for alarm services
The telemetry cookbook currently lacks recipes for the alarm and the
agent notification services. This patch adds them as well as their
corresponding specs and documentation.

Implements blueprint alarm-sevices

Change-Id: I2896db6e95f52f4488ec8bb9bcb88c697cb712b6
2014-04-03 12:34:53 -07:00

22 lines
582 B
Ruby

# encoding: UTF-8
require_relative 'spec_helper'
describe 'openstack-telemetry::alarm-notifier' 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 alarm-notifier package' do
expect(chef_run).to install_package 'openstack-ceilometer-alarm-notifier'
end
it 'starts the alarm-notifier service' do
expect(chef_run).to start_service 'openstack-ceilometer-alarm-notifier'
end
end
end