Sha256: cde5214517d0403fa6c9b37b139997095899114cd5e5a466a4085588832549ef

Contents?: true

Size: 872 Bytes

Versions: 6

Compression:

Stored size: 872 Bytes

Contents

require 'abiquo_platform'
require 'abiquo_remote_services'
require 'abiquo_server'
require 'abiquo_v2v'

class AbiquoMonolithicTest < Test::Unit::TestCase
    def test_required_packages
      %w{abiquo-pocsetup abiquo-core ntp nfs-utils}.each do |p|
        assert !`rpm -q #{p}`.strip.chomp.empty?, "#{p} package not installed."
      end
    end

    def test_repository_location_property
      if TestUtils.installer_profiles.include?('abiquo-nfs-repository')
        prop = TestUtils.find_abiquo_property 'abiquo.appliancemanager.repositoryLocation'
        assert !prop.nil?
        pval = prop.split("=")[1].strip.chomp
        assert (pval =~ /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?):\//).eql?(0), 
               "Invalid abiquo.appliancemanager.repositoryLocation property value: #{pval}"
      end
    end

end

Version data entries

6 entries across 2 versions & 1 rubygems

Version Path
abiquo-installer-tests-20121026.1 tests/2.0/abiquo_monolithic.rb
abiquo-installer-tests-20121026.1 tests/2.2.0/abiquo_monolithic.rb
abiquo-installer-tests-20121026.1 tests/2.3.0/abiquo_monolithic.rb
abiquo-installer-tests-20121023.3 tests/2.0/abiquo_monolithic.rb
abiquo-installer-tests-20121023.3 tests/2.2.0/abiquo_monolithic.rb
abiquo-installer-tests-20121023.3 tests/2.3.0/abiquo_monolithic.rb