fuel-library/deployment/puppet/osnailyfacter/modular/swift/swift_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

26 lines
627 B
Ruby

require File.join File.dirname(__FILE__), '../test_common.rb'
PROCESSES = %w(
swift-proxy-server
swift-account-server
swift-container-server
swift-object-server
)
class SwiftPostTest < 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_swift_backend_online
assert TestCommon::HAProxy.backend_up?('swift'), 'Haproxy swift backend is down!'
end
end
SwiftPostTest.create_tests