Sha256: dc244aaff64b7b4e449ed8c78f362fc689af6409b1481129afd06f429fd1531e
Contents?: true
Size: 999 Bytes
Versions: 1
Compression:
Stored size: 999 Bytes
Contents
class AbiquoPlatformTest < Test::Unit::TestCase def test_version_string assert File.read('/etc/abiquo-release') =~ /\s2\.0/ end def test_tomcat_core_version assert `rpm -q abiquo-core` =~ /abiquo-core-2\.0.*el5/ end def test_abiquo_etk_version assert `rpm -q rubygem-abiquo-etk` =~ /0\.5\.7/ end def test_tomcat_running assert !`ps aux|grep java|grep '/opt/abiquo/tomcat'`.strip.chomp.empty?, "Abiquo Tomcat is not Running" end def test_tomcat_enabled assert ::TestUtils.service_on?('abiquo-tomcat'), "abiquo-tomcat service is not enabled" end def test_abiquo_dir assert File.directory?('/opt/abiquo/tomcat'), "/opt/abiquo/tomcat directory does not exist" end def test_firewall_service_enabled assert !::TestUtils.service_on?('iptables'), "iptables service is enabled. This might be ok but double check if you are having network issues" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
abiquo-installer-tests-20120104 | tests/2.0/abiquo_platform.rb |