Sha256: d424a5e977caf334c04534da1c59beec6a4870f284fb6e22622d3378989fefd2

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

require 'abiquo_platform'

class AbiquoV2VTest < Test::Unit::TestCase
  
    def test_tomcat_running
      assert !`ps aux|grep java|grep '/opt/abiquo/tomcat'`.strip.chomp.empty?
    end

    def test_nfs_mounted
      if (not ::TestUtils.installer_profiles.include?('abiquo-nfs-repository')) and \
          (! ::TestUtils.installer_profiles.include?('cloud-in-a-box'))
        assert !`mount|grep vm_repository`.strip.chomp.empty?
      end
    end
    def test_webapps_deployed?
      %w{bpm-async}.each do |w|
        assert TestUtils.webapp_deployed?(w), "#{w} Tomcat webapp not found in #{TestUtils.abiquo_base_dir}/tomcat/webapps"
      end
    end
    
    def test_abiquo_repository_file
      assert File.exist? '/opt/vm_repository/.abiquo_repository'
    end
    
    def test_tomcat_enabled
      assert ::TestUtils.service_on?('abiquo-tomcat')
    end

    def test_v2v_context_present
      assert File.directory? '/opt/abiquo/tomcat/webapps/bpm-async'
    end

    def test_v2v_scripts
      assert File.exist?('/usr/bin/mechadora')
      assert File.exist?('/usr/bin/v2v-diskmanager')
    end

    def test_abiquo_dir
      assert File.directory? '/opt/abiquo'
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
abiquo-installer-tests-20120104 tests/2.0/abiquo_v2v.rb