Sha256: 829ae481c9dddc41213af2136c54a24656e47b16f9d37fdfe2d0e509c86163a7

Contents?: true

Size: 659 Bytes

Versions: 2

Compression:

Stored size: 659 Bytes

Contents

require 'minitest/autorun'

require 'beaker-hostgenerator/util'

class TestUtil < Minitest::Test

  def setup
    @stderr = StringIO.new
    @stdout = StringIO.new

    $stderr = @stderr
    $stdout = @stdout
  end

  def test_get_platforms_vmpooler_osinfo_v0
    expected = BeakerHostGenerator::Data::Vmpooler.get_osinfo(0)
    actual = BeakerHostGenerator::Utils.get_platforms('vmpooler', 0)
    assert_equal(expected, actual)
  end

  def test_get_platforms_vmpooler_osinfo_v1
    expected = BeakerHostGenerator::Data::Vmpooler.get_osinfo(1)
    actual = BeakerHostGenerator::Utils.get_platforms('vmpooler', 1)
    assert_equal(expected, actual)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
beaker-hostgenerator-0.5.0 test/test_util.rb
beaker-hostgenerator-0.4.0 test/test_util.rb