fuel-library/deployment/puppet/vmware/spec/defines/vmware_ceilometer_ha_spec.rb
Igor Zinovik a6f1d46840 Remove workarounds after implementing dual hypervisor support
- remove dead statements that will never get executed
- rename '*_multi_hv' resources to original names
- rename templates
- adjust unit tests

Closes-bug: #1436739
Change-Id: Ib2a7ad8ff90595bade49895d86d681700118fc9b
2015-04-01 12:39:12 +03:00

37 lines
1.3 KiB
Ruby

require 'spec_helper'
describe 'vmware::ceilometer::ha' do
let(:params) { {
:availability_zone_name => 'vCenter',
:vc_cluster => 'prod-cluster',
:vc_host => '10.10.0.1',
:vc_user => 'admin@vsphere.local',
:vc_password => 'pass',
:service_name => 'prod'
} }
it 'must create /etc/ceilometer/ceilometer-compute.d directory' do
should contain_file('/etc/ceilometer/ceilometer-compute.d').with({
'ensure' => 'directory',
'owner' => 'ceilometer',
'group' => 'ceilometer',
'mode' => '0750'
})
end
it 'should create service p_ceilometer_agent_compute_vmware_vCenter_prod' do
should contain_cs_resource('p_ceilometer_agent_compute_vmware_vCenter_prod').with({
'primitive_class' => 'ocf',
'provided_by' => 'fuel',
})
end
it 'should create service p_ceilometer_agent_compute_vmware_vCenter_prod' do
should contain_service('p_ceilometer_agent_compute_vmware_vCenter_prod')
end
it 'should apply configuration file before corosync resource' do
should contain_file('/etc/ceilometer/ceilometer-compute.d/vmware-vCenter_prod.conf').that_comes_before('Cs_resource[p_ceilometer_agent_compute_vmware_vCenter_prod]')
end
end