Sha256: e47b3d7c74b3ebed87de1b2e71fe8f971415fd5b931473037d51931b0dbe22e5

Contents?: true

Size: 547 Bytes

Versions: 9

Compression:

Stored size: 547 Bytes

Contents

require "find"
require "yaml"

require "minitest/autorun"

require 'util/generator_helpers'

class TestGenerator < Minitest::Test
  include GeneratorTestHelpers

  def setup
    @default_options = [
      'centos6-64mdca',
    ]
  end

  def test_default_options
    hash = run_cli_with_options(@default_options)
    hosts = hash['HOSTS']

    assert_includes(hosts, "centos6-64-1")
    centos6 = hosts['centos6-64-1']
    ["master", "database", "dashboard", "agent"].each do |role|
      assert_includes(centos6['roles'], role)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
beaker-hostgenerator-0.8.0 test/test_generator.rb
beaker-hostgenerator-0.7.4 test/test_generator.rb
beaker-hostgenerator-0.7.3 test/test_generator.rb
beaker-hostgenerator-0.7.2 test/test_generator.rb
beaker-hostgenerator-0.7.1 test/test_generator.rb
beaker-hostgenerator-0.7.0 test/test_generator.rb
beaker-hostgenerator-0.6.0 test/test_generator.rb
beaker-hostgenerator-0.5.0 test/test_generator.rb
beaker-hostgenerator-0.4.0 test/test_generator.rb