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-4.42.0 acceptance/tests/subcommands/provision.rb
beaker-4.41.2 acceptance/tests/subcommands/provision.rb
beaker-4.41.1 acceptance/tests/subcommands/provision.rb
beaker-4.41.0 acceptance/tests/subcommands/provision.rb
beaker-4.40.2 acceptance/tests/subcommands/provision.rb
beaker-4.40.1 acceptance/tests/subcommands/provision.rb
beaker-4.40.0 acceptance/tests/subcommands/provision.rb
beaker-4.39.0 acceptance/tests/subcommands/provision.rb
beaker-4.38.1 acceptance/tests/subcommands/provision.rb
beaker-4.38.0 acceptance/tests/subcommands/provision.rb
beaker-4.37.2 acceptance/tests/subcommands/provision.rb
beaker-4.37.1 acceptance/tests/subcommands/provision.rb
beaker-4.37.0 acceptance/tests/subcommands/provision.rb
beaker-4.36.1 acceptance/tests/subcommands/provision.rb
beaker-4.36.0 acceptance/tests/subcommands/provision.rb
beaker-4.35.0 acceptance/tests/subcommands/provision.rb
beaker-4.34.0 acceptance/tests/subcommands/provision.rb
beaker-4.33.0 acceptance/tests/subcommands/provision.rb
beaker-4.32.0 acceptance/tests/subcommands/provision.rb
beaker-4.31.0 acceptance/tests/subcommands/provision.rb