Sha256: 3d27071316125766f66236d122964b5e138705f35fcd1f3fb0273ddf1f5c05d1

Contents?: true

Size: 745 Bytes

Versions: 81

Compression:

Stored size: 745 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

81 entries across 81 versions & 1 rubygems

Version Path
beaker-3.37.0 acceptance/tests/subcommands/provision.rb
beaker-3.36.0 acceptance/tests/subcommands/provision.rb
beaker-3.35.0 acceptance/tests/subcommands/provision.rb
beaker-3.34.0 acceptance/tests/subcommands/provision.rb
beaker-3.33.0 acceptance/tests/subcommands/provision.rb
beaker-3.32.0 acceptance/tests/subcommands/provision.rb
beaker-3.31.0 acceptance/tests/subcommands/provision.rb
beaker-3.30.0 acceptance/tests/subcommands/provision.rb
beaker-3.29.0 acceptance/tests/subcommands/provision.rb
beaker-3.28.0 acceptance/tests/subcommands/provision.rb
beaker-3.27.0 acceptance/tests/subcommands/provision.rb
beaker-3.26.0 acceptance/tests/subcommands/provision.rb
beaker-3.25.0 acceptance/tests/subcommands/provision.rb
beaker-3.24.0 acceptance/tests/subcommands/provision.rb
beaker-3.23.0 acceptance/tests/subcommands/provision.rb
beaker-3.22.0 acceptance/tests/subcommands/provision.rb
beaker-3.21.1 acceptance/tests/subcommands/provision.rb
beaker-3.21.0 acceptance/tests/subcommands/provision.rb
beaker-3.20.0 acceptance/tests/subcommands/provision.rb
beaker-3.19.0 acceptance/tests/subcommands/provision.rb