Sha256: 93b91e38314a1ff7417c476fecac212efb56c46726697480440bbaa322c781e6

Contents?: true

Size: 744 Bytes

Versions: 16

Compression:

Stored size: 744 Bytes

Contents

test_name 'use the provision subcommand' do
  SubcommandUtil = Beaker::Subcommands::SubcommandUtil

  def delete_root_folder_contents
    on default, 'rm -rf /root/* /root/.beaker'
  end

  step 'run beaker init and provision' do
    delete_root_folder_contents
    result = on(default, 'beaker provision --hosts centos6-64')
    assert_match(/ERROR(.+)--hosts/, result.raw_output)
    on(default, 'beaker init --hosts centos6-64')
    result = on(default, 'beaker provision')
    assert_match(/Using available host/, result.stdout)
    subcommand_state = on(default, "cat #{SubcommandUtil::SUBCOMMAND_STATE}").stdout
    subcommand_state = YAML.parse(subcommand_state).to_ruby
    assert_equal(true, subcommand_state['provisioned'])
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
beaker-6.4.1 acceptance/tests/subcommands/provision.rb
beaker-6.4.0 acceptance/tests/subcommands/provision.rb
beaker-6.3.0 acceptance/tests/subcommands/provision.rb
beaker-6.2.0 acceptance/tests/subcommands/provision.rb
beaker-6.1.0 acceptance/tests/subcommands/provision.rb
beaker-5.8.1 acceptance/tests/subcommands/provision.rb
beaker-5.8.0 acceptance/tests/subcommands/provision.rb
beaker-5.7.0 acceptance/tests/subcommands/provision.rb
beaker-5.6.0 acceptance/tests/subcommands/provision.rb
beaker-5.5.0 acceptance/tests/subcommands/provision.rb
beaker-5.4.0 acceptance/tests/subcommands/provision.rb
beaker-5.3.1 acceptance/tests/subcommands/provision.rb
beaker-5.3.0 acceptance/tests/subcommands/provision.rb
beaker-5.2.0 acceptance/tests/subcommands/provision.rb
beaker-5.1.0 acceptance/tests/subcommands/provision.rb
beaker-5.0.0 acceptance/tests/subcommands/provision.rb