fuel-library/deployment/puppet/osnailyfacter/modular/keystone/keystone_post.rb
Dmitry Ilyin b333086aac Add murano package-list port test
Change-Id: I528183984bea4e70f279fa480d82d02f866a0826
2015-05-12 17:33:04 +00:00

33 lines
1.0 KiB
Ruby

require File.join File.dirname(__FILE__), '../test_common.rb'
PUBLIC_PORT = 5000
ADMIN_PORT = 35357
class KeystonePostTest < Test::Unit::TestCase
def test_keystone_is_running
assert TestCommon::Process.running?('/usr/bin/keystone-all'), 'Keystone is not running!'
end
def test_keystone_public_url_accessible
url = "http://#{TestCommon::Settings.public_vip}:#{PUBLIC_PORT}"
assert TestCommon::Network.url_accessible?(url), "Public Keystone URL '#{url}' is not accessible!"
end
def test_keystone_admin_url_accessible
url = "http://#{TestCommon::Settings.management_vip}:#{ADMIN_PORT}"
assert TestCommon::Network.url_accessible?(url), "Admin Keystone URL '#{url}' is not accessible!"
end
def test_keystone_endpoint_list_run
TestCommon::Cmd.openstack_auth
cmd = 'keystone endpoint-list'
assert TestCommon::Process.run_successful?(cmd), "Could not run '#{cmd}'!"
end
def test_openrc_file_present
assert File.exist?('/root/openrc'), '/root/openrc is missing!'
end
end