fuel-library/tests/noop/spec/hosts/cluster/health_spec.rb
Aleksandr Didenko 6908722cfc Switch from RUN: to ROLE: annotation
* RUN annotation caused duplication for tasks in the old folder
* RUN should only be used if you need non-standard run configuration
* With ROLE annotation there's no need to update all the tests
  when you add new astute.yaml fixture for existing role
* Fix manifest variable in broken tests

Change-Id: I7a1c98bdb51590d8d80cee387de35d5581cf1da2
Partial-bug: #1535339
2016-04-07 15:46:46 +02:00

45 lines
1022 B
Ruby

# ROLE: primary-controller
# ROLE: controller
require 'spec_helper'
require 'shared-examples'
manifest = 'cluster/health.pp'
describe manifest do
shared_examples 'catalog' do
let(:facts) {
Noop.ubuntu_facts.merge({
:mounts => ['/', '/boot', '/var/log', '/var/lib/glance', '/var/lib/mysql', '/var/lib/horizon']
})
}
let(:disks) do
Noop.hiera 'corosync_disk_monitor', ['/', '/var/log', '/var/lib/glance', '/var/lib/mysql']
end
let(:min_disk_free) do
Noop.hiera 'corosync_min_disk_space', '512M'
end
let(:disk_unit) do
Noop.hiera 'corosync_disk_unit', 'M'
end
let(:monitor_interval) do
Noop.hiera 'corosync_monitor_interval', '15s'
end
it {
should contain_class('cluster::sysinfo').with(
:disks => disks,
:min_disk_free => min_disk_free,
:disk_unit => disk_unit,
:monitor_interval => monitor_interval
)
}
end
test_ubuntu_and_centos manifest
end