Sha256: 0b205a682d328843975f035aff538c4e311791149d22e91ebd1717df937d6f51

Contents?: true

Size: 706 Bytes

Versions: 8

Compression:

Stored size: 706 Bytes

Contents

class AbiquoPlatformTest < Test::Unit::TestCase
  
    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

8 entries across 7 versions & 1 rubygems

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