15873 Commits

Author SHA1 Message Date
sophia
22b2d52e00 Get communicator specified in Vagrnatfile 2022-06-30 09:13:17 -05:00
Sophia Castellarin
6669cd0f87
Merge pull request #288 from hashicorp/docker-provider-up
Docker provider up
2022-06-30 09:12:28 -05:00
sophia
8859e2e03b Add test communicator plugin to guest detection test 2022-06-29 17:23:43 -05:00
sophia
adadf26c9c Check if communicator is available before detecting guests 2022-06-29 17:23:43 -05:00
sophia
e0a30f9ba7 Raise error if communicator is not ready when getting guest from machine 2022-06-29 17:23:43 -05:00
sophia
f4d3f38921 Fix type in communicator#ready funcspec 2022-06-29 17:23:42 -05:00
Sophia Castellarin
a08204d4ba
Merge pull request #299 from hashicorp/fix-ruby-tests
Fix ruby tests
2022-06-29 17:23:23 -05:00
sophia
1913864212 Update remote machine test for fully go backed machine 2022-06-29 16:54:57 -05:00
sophia
0372da5f5f Update mapper tests for hash with indifferent access 2022-06-29 16:43:19 -05:00
sophia
67a5c43873 Add Machine state direct converter 2022-06-29 16:03:22 -05:00
sophia
df8f519337 Fix guest and host service tests 2022-06-29 16:01:40 -05:00
Paul Hinze
986e3fb258
Merge pull request #292 from hashicorp/box-collection-nit
Scope down rescue on BoxCollection.find
2022-06-28 15:23:33 -05:00
Chris Roberts
f9dd348847
Merge pull request #295 from hashicorp/target-load-stored-configuration
Testing fixes and target loading
2022-06-28 10:13:52 -07:00
Paul Hinze
430377fdce
Merge pull request #291 from hashicorp/fix-ssh-config
Fix ssh-config and winrm-config by remote-ifying safe_puts
2022-06-28 11:50:08 -05:00
Chris Roberts
e9353ac566 Remove some extraneous logger output 2022-06-28 09:49:28 -07:00
Chris Roberts
2e2966ae9e Remove test basis config helper function 2022-06-28 08:54:29 -07:00
Chris Roberts
721eb7428f Add error checking during test project setup 2022-06-28 08:53:57 -07:00
Chris Roberts
5e474995cd Allow TestTargetOption to accept target or machine 2022-06-28 08:53:39 -07:00
Chris Roberts
0be75e6d1e Add some comments on functions 2022-06-28 08:53:04 -07:00
Chris Roberts
d802377b52 Include project resource id when loading from ref 2022-06-28 08:39:06 -07:00
Chris Roberts
b2aafa2469 Include project ref within target ref when listing targets 2022-06-28 08:38:45 -07:00
Chris Roberts
04036a99ce Remove error check for test machine 2022-06-28 08:38:22 -07:00
Chris Roberts
517b218337 Test helpers file 2022-06-27 18:13:00 -07:00
Chris Roberts
1e2cf39faa Update target creation to force fatal on error 2022-06-27 18:12:46 -07:00
Chris Roberts
aca9eb8a25 Move test helper functions to isolated file 2022-06-27 18:11:31 -07:00
Chris Roberts
f0a7d87f31 Only load target with vagrantfile if config exists 2022-06-27 18:10:40 -07:00
Chris Roberts
4475acb98d Cleanup target init and do not create via WithTargetRef 2022-06-27 18:09:33 -07:00
Chris Roberts
8a8e89d413 Explicitly create target from project 2022-06-27 18:08:43 -07:00
Chris Roberts
9783951719 Ensure caching and use default provider value 2022-06-27 18:08:02 -07:00
Chris Roberts
5b871ec76e
Merge pull request #290 from hashicorp/vagrantfile-config-rebased
Vagrantfile configuration
2022-06-27 12:05:09 -07:00
Chris Roberts
ffa780bfbd Update vagrant-plugin-sdk reference 2022-06-27 12:04:03 -07:00
Chris Roberts
6d4abe2b08 Remove old proto constants 2022-06-27 11:26:22 -07:00
Chris Roberts
a2e0c5619e Use __finalized variable to determine finalization 2022-06-27 11:26:08 -07:00
Chris Roberts
70d9fa9faf Use getters to ensure value 2022-06-27 11:24:12 -07:00
Chris Roberts
ee85eed227 Check that project ref is set before using 2022-06-27 11:23:57 -07:00
Chris Roberts
605c7f9d9f Force fatal when failing to setup machine 2022-06-27 11:23:27 -07:00
Chris Roberts
6f7e17a8b3 Update how configuration is set in tests 2022-06-27 11:22:51 -07:00
Chris Roberts
da0ba680ac Update testing helper setups for signature change 2022-06-27 11:21:41 -07:00
Chris Roberts
0aad3390c9 Add funcspec mappers for finalize and merge wrappers 2022-06-24 18:29:53 -07:00
Chris Roberts
b7eb55bbbc Update config testing builtin to include data checks 2022-06-24 18:28:46 -07:00
Chris Roberts
f1695b6c1f Generated proto updates for config wrappers 2022-06-24 18:28:10 -07:00
Chris Roberts
05baac1514 Update ruby config service to use wrapper protos 2022-06-24 18:27:38 -07:00
Chris Roberts
0d562673f9 Just print class information in error content 2022-06-24 18:27:00 -07:00
Chris Roberts
139349b136 Remove vagrantfiles from default arguments in call 2022-06-24 18:25:50 -07:00
Paul Hinze
47962dff37
Scope down rescue on BoxCollection.find
After https://github.com/hashicorp/vagrant-plugin-sdk/pull/175 is merged
it will properly return a NotFound so we can rescue that specifically
and let any unexpected errors propagate.
2022-06-24 16:30:51 -05:00
Paul Hinze
63cefbb8ed
Fix ssh-config and winrm-config by remote-ifying safe_puts
This also removes the "Running (command)..." output since users will
expect to be able to redirect the ssh-config output to a file without
that noise.

If we really like the "Running" thing we can try and swing around and
get fancy by detecting whether or not we have a terminal or a file as
output and doing conditional stuff, but this seemed like the simplest
way forward for now.
2022-06-24 12:53:57 -05:00
Chris Roberts
778d009bfb Mark configs with unique id. Use id for provisioner caching. 2022-06-22 12:33:07 -07:00
Chris Roberts
8a41ef3396 Remove previous proto generation helpers 2022-06-21 16:51:08 -07:00
Chris Roberts
fd963c39d4 Reuse cache and init after cloning 2022-06-21 14:43:14 -07:00
Chris Roberts
4b61b0be49 Fix state loading for machine 2022-06-21 14:42:14 -07:00