Sha256: e1818380274522f2658294f43edcb63809ca548c03ebb981a2d97fca3b691f01

Contents?: true

Size: 1.1 KB

Versions: 5

Compression:

Stored size: 1.1 KB

Contents

class AbiquoPlatformTest < Test::Unit::TestCase
  
    def test_version_string
      assert File.read('/etc/abiquo-release') =~ /1\.8\.0 Pilaf/
    end

    def test_tomcat_core_version
      assert `rpm -q abiquo-core` =~ /abiquo-core-1\.8-5\.el5/
    end

    def test_abiquo_etk_version
      assert `rpm -q rubygem-abiquo-etk` =~ /0\.5\.7/
    end

    def test_motd_version
      assert(File.read('/etc/motd') =~ /(Abiquo Enterprise Edition 1\.8 Pilaf)/m)
    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

5 entries across 5 versions & 1 rubygems

Version Path
abiquo-installer-tests-20121026.1 tests/1.8.0/abiquo_platform.rb
abiquo-installer-tests-20121023.3 tests/1.8.0/abiquo_platform.rb
abiquo-installer-tests-20120104 tests/1.8.0/abiquo_platform.rb
abiquo-installer-tests-0.2.4 tests/1.8.0/abiquo_platform.rb
abiquo-installer-tests-0.2.3 tests/1.8.0/abiquo_platform.rb