fuel-library/deployment/puppet/osnailyfacter/modular/cluster/cluster_post.rb
Dmitry Ilyin 4296519bf6 Refactor pre/post modular tests
* Use common library for tests

Related blueprint: fuel-library-modularization
Fuel-CI: disable

Change-Id: I8769748ae79d5a1597eb0f320e0a0ed9581d5a0b
2015-03-24 22:40:32 +03:00

30 lines
593 B
Ruby

require File.join File.dirname(__FILE__), '../test_common.rb'
PROCESSES = %w(
crmd
lrmd
pengine
attrd
stonithd
cib
pacemakerd
corosync
)
class ClusterPostTest < Test::Unit::TestCase
def self.create_tests
PROCESSES.each do |process|
method_name = "test_process_#{process}_running"
define_method method_name do
assert TestCommon::Process.running?(process), "Process '#{process}' is not running!"
end
end
end
def test_pacemaker_is_online
assert TestCommon::Pacemaker.online?, 'Could not query Pacemaker CIB!'
end
end
ClusterPostTest.create_tests