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.18.0 | acceptance/tests/subcommands/provision.rb |