Sha256: 3a52ce9b0281a46eddddd0a042bd2a829a91f08676236133b1a873f014daf00f

Contents?: true

Size: 636 Bytes

Versions: 2

Compression:

Stored size: 636 Bytes

Contents

class NFSRepositoryTest < Test::Unit::TestCase
  
  def test_abiquo_repository_file
    assert File.exist? '/opt/vm_repository/.abiquo_repository',"WARNING: /opt/vm_repository/.abiquo_repository does not exist."
  end

  def test_exports_file
    assert File.exist? '/etc/exports',"/etc/exports does not exist."
  end

  def test_exports_file_contents
    count = 0
    File.read('/etc/exports').each_line do |l|
      count += 1 if l =~ /\/opt\/vm_repository/
    end
    assert(count == 1),"WARNING: Wrong /etc/exports."
  end

  def test_nfs_service_on
    assert(::TestUtils.service_on? 'nfs'),"nfs service not enabled."
  end

end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
abiquo-installer-tests-20121023.3 tests/2.2.0/abiquo_nfs_repository.rb
abiquo-installer-tests-20121023.3 tests/2.3.0/abiquo_nfs_repository.rb