
Since no version is specified for any package and usually you do not want to stick with one unspecific version you get during your first run the action should be :upgrade. Change-Id: Idc662737f1b03049de5555c6e1e54fc77532972f Implements: blueprint allow-package-updates
22 lines
582 B
Ruby
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 upgrade_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
|