4296519bf6
* Use common library for tests Related blueprint: fuel-library-modularization Fuel-CI: disable Change-Id: I8769748ae79d5a1597eb0f320e0a0ed9581d5a0b
30 lines
593 B
Ruby
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
|