Sha256: a305038efbaf83e8d222b1cfdb7508636a3c736235428a0ec224f77e8a118565

Contents?: true

Size: 482 Bytes

Versions: 19

Compression:

Stored size: 482 Bytes

Contents

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

  def test_exports_file
    assert File.exist? '/etc/exports'
  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)
  end

  def test_nfs_service_on
    assert(::TestUtils.service_on? 'nfs')
  end

end

Version data entries

19 entries across 8 versions & 1 rubygems

Version Path
abiquo-installer-tests-20121026.1 tests/2.0/abiquo_nfs_repository.rb
abiquo-installer-tests-20121026.1 tests/1.8.5/abiquo_nfs_repository.rb
abiquo-installer-tests-20121026.1 tests/1.8.0/abiquo_nfs_repository.rb
abiquo-installer-tests-20121026.1 tests/1.7.6/abiquo_nfs_repository.rb
abiquo-installer-tests-20121023.3 tests/1.8.0/abiquo_nfs_repository.rb
abiquo-installer-tests-20121023.3 tests/1.7.6/abiquo_nfs_repository.rb
abiquo-installer-tests-20121023.3 tests/2.0/abiquo_nfs_repository.rb
abiquo-installer-tests-20121023.3 tests/1.8.5/abiquo_nfs_repository.rb
abiquo-installer-tests-20120104 tests/1.8.0/abiquo_nfs_repository.rb
abiquo-installer-tests-20120104 tests/1.7.6/abiquo_nfs_repository.rb
abiquo-installer-tests-20120104 tests/2.0/abiquo_nfs_repository.rb
abiquo-installer-tests-0.2.4 tests/1.8.0/abiquo_nfs_repository.rb
abiquo-installer-tests-0.2.4 tests/1.7.6/abiquo_nfs_repository.rb
abiquo-installer-tests-0.2.3 tests/1.8.0/abiquo_nfs_repository.rb
abiquo-installer-tests-0.2.3 tests/1.7.6/abiquo_nfs_repository.rb
abiquo-installer-tests-0.2.2 tests/1.7.6/abiquo_nfs_repository.rb
abiquo-installer-tests-0.2.2 tests/1.8.0/abiquo_nfs_repository.rb
abiquo-installer-tests-0.2.1 tests/1.8.0/abiquo_nfs_repository.rb
abiquo-installer-tests-0.2 tests/1.8.0/abiquo_nfs_repository.rb