fix for changed option name (:config to :hosts_file)

Was causing error when using vagrant SUTs
Use @options[:timeout] instead of wait
Merge pull request #23 from anodelman/vagrant-file

fix for changed option name (:config to :hosts_file)
Merge pull request #24 from justinstoller/bug/master/QE311-undefined_wait

(QE-311) Bring just Scott's fix in (closes #20)
(QE-245)  Execution results should be available inside a block

Moving accessors out of test_case and into the dsl so that beaker-rspec
will be able to access them
spec tests for stdout/stderr/exit_code values after calling on
(maint) Fix with_puppet_running_on for testing with packages

PuppetAcceptance::DSL::Helpers#with_puppet_running_on had incomplete
changes brought in from the pe Puppet::Acceptance::ConfigUtils, which I
think were being shadowed by the direct inclusion of ConfigUtils in
tests using with_puppet_running_on.

This patch finishes up the with_puppet_running_on implementation and
adds two things.  One a :__commandline_args__ option to allow passing of
commandline flags to puppet in addition to configuration settings.  And
two, an attempt to ensure that errors raised during setup or execution
of the block are not masked by a failure in teardown.

Conflicts:
	lib/beaker/dsl/helpers.rb
	spec/beaker/dsl/helpers_spec.rb
Dump syslog on either rhel or debian if fail to kill puppet master

It's very difficult to debug why we were unable to kill the puppet
master (presumably it died or was killed by an earlier action).  And
usually our vms are spun down after execution.  If it's a transient
issue, then trying to track it down in a controlled environment is
difficult as well.  So this takes a stab at dumping the default logdest
target (syslog) on either a rhel or debian based system.
(maint) Remove incorrect parameter from Command.new call

Command.new does not take a host.  This line was treating host as the
command line, and then attempting to flatten the actual command line
string which it expected to be an Array of args.
Add package installation for solaris.

Also fixes a bug referencing 'host' instead of self in the message
raised when platform cannot install package.
(maint) Allow options to be passed for package installation

Host::Unix::Pkg#install_package previously took only the package name.
An additional string of commandline options may now be passed and will
be included in the yum, apt-get or solaris pkg install line.
(maint) Dump master puppet log if fail to start
Uninstall packages on unix
Add a method to confine hosts for a specific test block

The Beaker::DSL::Helpers#confine method would change the test's array of
hosts at the point it was called, and any subsequent tests or tear down
blocks would only operate on that restricted subset of hosts.

This patch adds a confine_block method which allows you to confine hosts
for a specific block of code, ensuring that the hosts array is reset to
its original value after the block is done.  This allows you to confine
a subset of a test, but still have a teardown clean up all hosts, for
example.
(maint) Echo empty string to wmic for stdin

wmic on 2003, at least, blocks waiting on standard in.  This change
gives it something to consume so that it continues.
(maint) Check that puppet's master process has finished

This avoids occasional errors where the next test's
with_puppet_running_on tries to start a new master before the previous
test's has shutdown completely.
(maint) Remove reference to nonexistent puppetpath.

This would have failed if no backup_file was provided.  Now backup_file
is required without default.
(maint) Correct solaris 11/10 package install/uninstall

Solaris has different package handling between 11 and 10.  We were
correct on install for Solaris 11, but uninstall was Solaris 10.

Now differentiate between the two with the correct package handlers for
11 and 10 respectively.

This also corrects a bug checking for existing packages in Solaris 10.
The which command returns an exit code of 0, even if the command is not
found.  So we're testing stdout explicitly to see if a path to command
was returned.
(maint) Confine execute_commands_matching matcher to FakeHost

The matcher only works with the FakeHost mock.  This just tests that
condition before attempting the test.
(maint) Break up mocks_and_helpers

There is a spec/mocks, helpers and matchers file now included by
spec_helper.  Additional mock class and matcher from dsl/helpers_spec
have been moved into them as well.