Sha256: 0856d644e02cc92bfa618f452debfe97b8caa5ea693d21a6294aa3fb916a57ff

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

class AbiquoPlatformTest < Test::Unit::TestCase
  
    def test_version_string
      assert File.read('/etc/abiquo-release') =~ /\s2\.2/,"Wrong abiquo release version."
    end

    def test_tomcat_core_version
      assert `rpm -q abiquo-core` =~ /abiquo-core-2\.2.*el5/,"Wrong abiquo-core package."
    end

    def test_abiquo_etk_version
      assert `rpm -q rubygem-abiquo-etk` =~ /0\.6\.2/,"Wrong rubygem-abiquo-etk package."
    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'),
        "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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
abiquo-installer-tests-20121026.1 tests/2.2.0/abiquo_platform.rb
abiquo-installer-tests-20121023.3 tests/2.2.0/abiquo_platform.rb