18 lines
454 B
Ruby
18 lines
454 B
Ruby
require File.join File.dirname(__FILE__), '../test_common.rb'
|
|
|
|
BACKENDS = ['glance-api', 'glance-glare']
|
|
|
|
class GlancePreTest < Test::Unit::TestCase
|
|
|
|
def test_haproxy_glance_backend_present
|
|
BACKENDS.each do |BACKEND|
|
|
assert TestCommon::HAProxy.backend_present?(BACKEND), "There is no '#{BACKEND}' HAProxy backend!"
|
|
end
|
|
end
|
|
|
|
def test_amqp_accessible
|
|
assert TestCommon::AMQP.connection?, 'Cannot connect to AMQP server!'
|
|
end
|
|
|
|
end
|