Commit Graph

80 Commits

Author SHA1 Message Date
Mitchell Hashimoto 29eb419c86 Port forwarding tests pass again 2012-01-08 23:17:29 -08:00
Mitchell Hashimoto f65a6c3c6f `vagrant ssh -c` stderr now goes to stderr on the host as well 2011-12-26 10:03:12 -08:00
Mitchell Hashimoto e07280593d `vagrant ssh -c` will now exit with the same exit status of the command [GH-598] 2011-12-26 09:58:10 -08:00
Mitchell Hashimoto 4e547becab Tests passing for GH-602 2011-12-25 09:57:20 -08:00
Mitchell Hashimoto fc9bda08cd Failing test for port collision on `resume` [GH-602] 2011-12-25 09:29:22 -08:00
Mitchell Hashimoto 919f7adaa3 Port collision with SSH test. 2011-12-24 22:25:02 -08:00
Mitchell Hashimoto 1f0720dfc2 Clean up the port forwarding test a bit 2011-12-24 21:40:08 -08:00
Mitchell Hashimoto f7275f5113 Test port forwarding basics 2011-12-24 17:59:10 -08:00
Mitchell Hashimoto 963bdff9fd Use Vagrant::Util::Subprocess for acceptance tests 2011-12-22 21:46:43 -08:00
Mitchell Hashimoto dfeafa3776 Fix halt issues and acceptance test associated with it 2011-12-22 13:38:30 -08:00
Mitchell Hashimoto 703f455d5a `vagrant version` is gone, so remove the acceptance test for it 2011-12-18 13:51:58 -08:00
Mitchell Hashimoto a8f5ed1863 Require vagrant environments for some commands. 2011-12-18 13:26:15 -08:00
Mitchell Hashimoto 2d0769ee4a Stub a test out for chef solo 2011-12-14 19:06:44 -08:00
Mitchell Hashimoto 9e4475cb77 Test running shell scripts inline 2011-12-14 19:02:10 -08:00
Mitchell Hashimoto 6dbade0fc6 Get shell provisioning working again, acceptance test to prove it 2011-12-13 23:45:56 -08:00
Mitchell Hashimoto d6b325e887 Clean up TODOs in acceptance tests 2011-12-13 23:19:50 -08:00
Mitchell Hashimoto 42a5e02db4 Clean up test load paths 2011-12-11 15:53:11 -08:00
Mitchell Hashimoto e15b974c15 Fix more tests to expect error messages on stderr 2011-12-10 13:50:46 -08:00
Mitchell Hashimoto c41e758a0a box acceptance tests passing again 2011-12-10 13:35:03 -08:00
Mitchell Hashimoto 99982fb26e VM-specific configuration now works. 2011-12-03 19:05:50 -08:00
Mitchell Hashimoto 27c4d61e67 Upgrade to childprocess 0.2.3 and remove our hacky with_env_changes 2011-11-27 16:11:07 -07:00
Mitchell Hashimoto 0279cc1edf Do not buffer output for tests 2011-11-27 11:16:24 -07:00
Mitchell Hashimoto 7e276cf4d8 Basic resume tests 2011-11-24 16:28:28 -07:00
Mitchell Hashimoto d03744c5e1 Test that `vagrant up` also works for resuming 2011-11-24 16:21:21 -07:00
Mitchell Hashimoto f9653bf8d2 Some suspend tests 2011-11-24 16:15:45 -07:00
Mitchell Hashimoto 2dc9bad97d Fix missing variable in tests 2011-11-24 14:15:36 -07:00
Mitchell Hashimoto 87767e24d0 Fix test harness where blocking could occur on IO read.
We had issues with the CI where some tests would sometimes hang
on cleanup when it would call VBoxManage, even with a timeout.
My only assumption is that this is happening as it waits on `readline`,
so we do a `read_nonblock` which will help immensely.
2011-11-24 14:13:22 -07:00
Mitchell Hashimoto fba9f7c473 Test that a VM can be brought back up after halting 2011-11-22 21:47:10 -08:00
Mitchell Hashimoto 1ed1650fb6 `vagrant halt` acceptance tests 2011-11-22 19:34:25 -08:00
Mitchell Hashimoto 5e4dffb7e1 Test: Don't worry if VBoxManage failed. 2011-11-22 19:28:21 -08:00
Mitchell Hashimoto 8651127ead Add tag for the bug that a test addresses 2011-11-22 18:46:43 -08:00
Mitchell Hashimoto 5d684b9001 Reload the configuration for all VMs after downloading a box. Fixes GH-564 2011-11-21 22:39:12 -08:00
Mitchell Hashimoto bac87f2478 Complete the test (still failing) 2011-11-21 22:09:51 -08:00
Mitchell Hashimoto d71a78eacf Failing acceptance test for GH-564 2011-11-21 21:55:03 -08:00
Mitchell Hashimoto 315733703a Tempfile no longer needed in isolated env 2011-11-21 21:18:15 -08:00
Mitchell Hashimoto 203056a0db Switch posix-spawn to childprocess for better cross-OS support 2011-11-21 21:16:51 -08:00
Mitchell Hashimoto 2174d02439 Add TODOs to the destroy test 2011-11-20 13:42:06 -08:00
Mitchell Hashimoto 3a18119774 Fix failing destroy test for requiring a VM 2011-11-20 13:39:54 -08:00
Mitchell Hashimoto 38d28800be Destroy acceptance tests 2011-11-20 13:37:01 -08:00
Mitchell Hashimoto cebd66d8e6 Test: Add a timeout to cleaning up the VM environment 2011-11-20 10:44:09 -08:00
Mitchell Hashimoto 224c981846 Test: Add "timeout" parameter to execute in tests 2011-11-20 10:38:41 -08:00
Mitchell Hashimoto a8909cbb0b Acceptance tests now take a "box_directory" instead of paths to individual boxes 2011-11-13 13:49:21 -08:00
Mitchell Hashimoto 60a350f9c7 Test that `vagrant up` works if Vagrantfile is in a parent directory 2011-11-11 00:19:46 -08:00
Mitchell Hashimoto f0aa19f696 Test shared folders for basic up tests 2011-11-11 00:10:42 -08:00
Mitchell Hashimoto 7a07a78bf1 Shared contexts for Vagrant command similarities 2011-11-10 21:54:58 -08:00
Mitchell Hashimoto 8787c4b876 Acceptance tests: Get rid of remaining "assert" statements 2011-11-08 23:09:04 -08:00
Mitchell Hashimoto 4443a323e5 Create the output matcher, switch to RSpec style matchers 2011-11-08 23:03:15 -08:00
Mitchell Hashimoto 87bc6ec63f RSpec is coming in for acceptance tests. More details follow...
RSpec was chosen to be used for acceptance tests for many reasons:

* The tests are actually much cleaner now. It is clearer to see what
  is being tested, and what is being used for setup.
* Matcher transition will be coming soon. This will really clean up
  a lot of the "assert" boilerplate all over. There was a lot of repetition
  in this area.
* Shared examples will help greatly for testing common error cases
  for many commands.
* The test runner for RSpec is simply much better. Being able to specify
  the exact test to run by line, for example, is a great help.
2011-11-06 23:47:23 -08:00
Mitchell Hashimoto 699c67c1aa Test: Able to pass a command to execute via `vagrant ssh` command 2011-11-06 22:35:53 -08:00
Mitchell Hashimoto 2796c441ea Add more SSH tests 2011-11-06 22:21:02 -08:00