Commit Graph

161 Commits

Author SHA1 Message Date
Darragh Bailey
e71203a078 Add test to cover success 2016-02-26 11:33:05 +00:00
Darragh Bailey
1ecab7a9e9 Support --no-destroy-on-error option
Vagrant supports a --no-destroy-on-error option to up to skip destroying
of the machine if there was an error on bringing it up. This can be
useful where an environment can trigger a bug which would normally
result in the domain being torn down preventing additional analysis.

Make sure to simply exit the loops by returning terminate, instead of
looking to execute the remaining retries.

Add spec tests to check that terminate does not call the runner to
remove the domain if the user has disabled destroy on error.

Define a missing constant for vagrant < 1.6 exposed by the added tests.
2016-01-27 18:21:25 +00:00
Darragh Bailey
dde1b9bd43 Raise correct exception on domain not found
Update spec to check the actually exception raised and fix the code to
raise the correct one instead of throwing constant not defined.
2016-01-27 18:21:25 +00:00
Darragh Bailey
afb53addb1 Add rudimentary spec test to WaitTillUp using vagrant-spec
Add some basic spec tests for the WaitTillUp action class to lay some
foundations. Utilize vagrant-spec pinned to a known working commit for
tests to pass consistently until they provide releases.

Requires updating some of the rspec libraries and includes
sharedcontext.rb from the jantman/vagrant-r10k project on github.
2016-01-27 18:21:25 +00:00
Gabriel Briones Sayeg
3277506627 Include custom UEFI loader
Domain XML has loader tag to read specific OVMF.fd path

Signed-off-by: Gabriel Briones Sayeg <gbriones.gdl@gmail.com>
2015-08-06 11:00:15 -05:00
Brad Wadsworth
6c0d15288e added boot_order option 2015-05-29 16:32:20 -05:00
dima
0e2c26a33f cleaning,tests preparation 2015-04-15 09:45:29 +02:00
Nico Tonozzi
eb1dab0131 Update readme and test cases
Updated documentation so that users could find the new option.

Updated test case to behave as expected.
2014-08-05 09:16:52 -06:00
Nico Tonozzi
3a2335f37c Provide an option to randomize domain name
This commit lets users enable hostname randomization from their
Vagrantfile. Without this option enabled, domain creation will fail when
multiple VMs are spun up from the same Vagrantfile, due to a domain name
conflict.
2014-07-31 09:31:30 -06:00
Bradley Smith
dce9cd9b6f add basic test structure--still a WIP. Add test for setting domain name 2014-07-05 18:02:52 -06:00
Bradley Smith
659ee41152 add test for building domain name. 2014-07-04 11:09:00 -06:00