Sha256: 7f7adc776f59e90967e067911b3269992936bd43153e4af4feab040ab1df7b5a
Contents?: true
Size: 1.6 KB
Versions: 2
Compression:
Stored size: 1.6 KB
Contents
class AbiquoCommunityHypervisor < Test::Unit::TestCase def test_aim_running assert !`ps aux|grep abiquo-aim`.strip.chomp.empty? end def test_aim_service_enabled assert ::TestUtils.service_on?('abiquo-aim'),"abiquo-aim service not enabled" end def test_libvirtd_service_enabled assert ::TestUtils.service_on?('libvirtd'),"libvirtd service not enabled" end def test_firewall_service_enabled assert !::TestUtils.service_on?('iptables'), "WARNING: iptables service is enabled. This might be ok but double check the firewall rules if you are having problems connecting to the hypervisor." end def test_abiquo_aim_properties_file assert File.exist?('/etc/abiquo-aim.ini'),"/etc/abiquo-aim.ini does not exist." end def test_nfs_mounted # It's ok if the NFS isn't mounted in a CIAB install if not TestUtils.installer_profiles.include? 'cloud-in-a-box' assert !`mount|grep vm_repository`.strip.chomp.empty?,"vm_repository not mounted" end end def test_valid_libvirt_conf buff = File.read '/etc/libvirt/libvirtd.conf' if buff =~ /^auth_tls.*none/ and \ buff =~ /^tcp_port.*16509/ and \ buff =~ /^auth_tcp.*none/ assert true else assert false, "Invalid /etc/libvirt/libvirtd.conf" end end def test_valid_libvirt_sysconfig buff = File.read '/etc/sysconfig/libvirtd' if buff =~ /^LIBVIRTD_ARGS.*--listen/ assert true else assert false, "Invalid /etc/sysconfig/libvirtd" end end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
abiquo-installer-tests-20121026.1 | tests/2.2.0/abiquo_community_hypervisor.rb |
abiquo-installer-tests-20121026.1 | tests/2.3.0/abiquo_community_hypervisor.rb |