sophia
ffc2dd729b
Use more generic hash for folder options. This will allow using exisiting mappers
2022-07-07 12:30:24 -05:00
Paul Hinze
522c56f0c6
Merge pull request #305 from hashicorp/use-default-synced-folder
...
Fix method for getting default synced folder type
2022-07-07 11:34:27 -05:00
Chris Roberts
1c26a4abb0
Merge pull request #300 from hashicorp/optimize-ruby-command-list
...
Optimize command list generation
2022-07-07 09:29:15 -07:00
Paul Hinze
91478e9e0a
Fix method for getting default synced folder type
...
As a part of a series of larger changes the default synced folder type
accidentally got wired up to DefaultProvider instead of its dedicated
defaultSyncedFolderType() method.
This was working fine for "virtualbox" where the provider name and the
synced folder name are both the same, but it was causing virtualbox
synced folders to be selected when using the "docker" provider and
making things break.
This is one necessary step to get machine lifecycles working again with
Docker.
2022-07-07 11:24:53 -05:00
Paul Hinze
fb2a102c71
Fix init and other commands that run without a project
...
The Basis needs to be able to respond to Vagrantfile() and
DefaultProvider() to make it through Vagrant::Environment
initialization.
Depends on https://github.com/hashicorp/vagrant-plugin-sdk/pull/178
2022-07-01 11:56:08 -05:00
Chris Roberts
2d08919314
Merge pull request #296 from hashicorp/case-of-the-missing-target
...
Set target configuration from vagrantfile before save
2022-06-30 12:30:55 -07:00
Chris Roberts
8b7d702ddd
Check existing target state and remove if not created
2022-06-30 11:16:23 -07:00
sophia
b01ace79f0
Set default communicator constant
2022-06-30 09:13:55 -05:00
sophia
935c665412
Add tests for default communicator
2022-06-30 09:13:53 -05:00
sophia
22b2d52e00
Get communicator specified in Vagrnatfile
2022-06-30 09:13:17 -05:00
Chris Roberts
a146f3beac
Fetch all ruby commands in single request
2022-06-29 16:14:19 -07: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
Chris Roberts
aec4d13e21
Set configuration after successful init
2022-06-29 11:46:41 -07:00
Chris Roberts
8c40214d61
Update project to use cleanup, not shutdown targets
2022-06-29 11:46:41 -07:00
Chris Roberts
822b2af8a5
Set target configuration from vagrantfile before save
2022-06-28 11:07:52 -07: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
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
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
139349b136
Remove vagrantfiles from default arguments in call
2022-06-24 18:25:50 -07:00
Chris Roberts
fd963c39d4
Reuse cache and init after cloning
2022-06-21 14:43:14 -07:00
Chris Roberts
1bd6e4d946
Always init all known targets
2022-06-21 14:41:05 -07:00
Chris Roberts
2890fb57c5
Finalize the entire Vagrantfile so all config is properly available
2022-06-20 16:04:01 -07:00
Chris Roberts
97c51a56cd
Reorganize vagrantfile implementation, support provider overrides
2022-06-20 13:02:01 -07:00
Chris Roberts
f50f700e5c
Update machine to use vagrantfile for synced folders
2022-06-20 13:01:13 -07:00
Chris Roberts
3e783b6074
Fix up project vagrantfile usage and target init
2022-06-20 13:00:42 -07:00
Chris Roberts
f564592651
Update target to use vagrantfile
2022-06-20 13:00:02 -07:00
Chris Roberts
ec531c5ace
Optimize target loading from index
2022-06-20 12:58:22 -07:00
Chris Roberts
92667df091
Add cleanup to factory and close registered basis when closed
2022-06-20 12:56:56 -07:00
Chris Roberts
16d4145091
Only store a project after it has been fully initialized
2022-06-20 12:56:10 -07:00
Chris Roberts
ab34fddbc4
Remove automatic target initialization, update caching
2022-06-15 11:15:08 -07:00
Chris Roberts
e03058d9e8
Fix up synced folder collection generation
2022-06-15 11:15:04 -07:00
Chris Roberts
a262686f08
Fix up string format types
2022-06-15 11:14:07 -07:00
Chris Roberts
18190aab38
Load location stringer update
2022-06-15 11:14:07 -07:00