Chris Roberts
eae6c1d022
Merge pull request #12419 from chrisroberts/fix-local-box-add
...
Fix local box add with relative path on Windows
2021-06-22 15:45:49 -07:00
Chris Roberts
170b60202d
Merge pull request #12424 from eltociear/patch-5
...
Fix typo in connect_networks_test.rb
2021-06-22 15:45:17 -07:00
Chris Roberts
e7a6f397da
Updates for Ruby 3.0
2021-06-21 15:57:46 -07:00
Sophia Castellarin
750c95272d
Merge pull request #12421 from soapy1/retry-networks-setup-debian
...
Retry network setup on debain
2021-06-21 09:11:50 -05:00
Ikko Ashimine
c9db2ab9a1
Fix typo in connect_networks_test.rb
...
avaiable -> available
2021-06-19 23:27:05 +09:00
sophia
681253aed9
Retry network setup on debain
...
DAD (Duplicate Address Detection) check times out when we add IPv6 interfaces
2021-06-15 17:49:28 -05:00
sophia
fecfe86cb8
Strip whitespace from ansible version
...
Note: strip! returns nil if there is nothing to be stripped
2021-06-15 15:24:39 -05:00
Chris Roberts
218f8323fb
Return original when access token is not removed
...
When scrubbing box urls of access token parameters, only return
the processed URL if the access token was removed. If it was not
removed, return the original URL string. This prevents issues with
local file URLs being parsed and replaced with invalid paths.
Fixes : #12340 #12350 #12320
2021-06-11 16:59:35 -07:00
Philipp Panzer
afa71702e2
add test for ansible core version format
2021-05-25 23:40:04 +02:00
Dan Čermák
b1ba47c52c
Mock the PowerShell.executable method in more tests
...
On *nix systems we might not have powershell installed and then finding
powershell.exe or pwsh.exe fails in some tests. If we instead mock
self.executable to return "powershell", then the tests pass and don't cause any
side effects.
2021-04-30 09:37:20 +02:00
Chris Roberts
5967a23fa0
Support pwsh executable name for powershell
...
This updates the powershell detection to look for the `pwsh` executable
and use it when the powershell executable is not available.
2021-04-28 12:45:48 -07:00
Chris Roberts
7271e02628
Merge pull request #12302 from chrisroberts/linux-reboot
...
Properly wait for reboot process to start
2021-04-14 15:35:35 -07:00
Chris Roberts
a088fbba39
Properly wait for reboot process to start
...
This adds a check to the `#wait_for_reboot` method on the linux
guest reboot capability to determine if the a reboot is still
in process. This prevents the reboot process from being initiated
and the `#ready?` check on the guest being called before the
system shutdown process has shutdown the communicator process.
2021-04-13 16:42:31 -07:00
Chris Roberts
c5664e479e
Fix matching on build output for docker provider
2021-04-13 13:23:43 -07:00
Sophia Castellarin
dfc8cab1cc
Merge pull request #12281 from soapy1/smb-mount-name
...
Get folder mount name
2021-04-13 13:57:37 -05:00
Sophia Castellarin
70b5f23589
Merge pull request #12278 from soapy1/downloader-token
...
Add box directly with authed urls
2021-04-07 09:37:14 -05:00
sophia
82dde55e64
Get folder mount name
2021-04-06 16:25:08 -05:00
sophia
b480790a8d
Add box directly with authed urls
2021-04-05 16:39:01 -05:00
Ikko Ashimine
ddb3994c25
Fix typo in publish_test.rb
...
vesion -> version
2021-03-27 11:34:15 +09:00
Chris Roberts
cf51c18ad8
Update authentication middleware access token handling
...
Replace the `VAGRANT_ALLOW_PARAM_AUTH_TOKEN` environment variable
with `VAGRANT_SERVER_ACCESS_TOKEN_BY_URL` and update the behavior
when the environment variable is set to add the access token as
a query parameter and disable the addition of the authentication
header.
Fixes #12080
2021-03-24 17:24:47 -07:00
Chris Roberts
fd4da92245
Check file size prior to upload and automatically adjust options
...
When uploading box file, check if the size is greater than
5GB. If the size is larger and the direct to storage option
is enabled, disable the option due to current 5GB restriction
on direct uploads.
2021-03-23 15:11:32 -07:00
Chris Roberts
60323fdd6c
Merge pull request #12235 from chrisroberts/api-notify-ups
...
Prevent notification on default store, fix client end point
2021-03-17 13:57:47 -07:00
Chris Roberts
3316098bb6
White space trim
2021-03-17 13:08:30 -07:00
Chris Roberts
d580fbbee2
Use the server url helper method within the client
...
Some client setup locations where not using the custom helper
method for the vagrant server URL value so they have been
updated. The api path is also appended if it is not set for
custom server URLs
2021-03-15 17:17:10 -07:00
Chris Roberts
867d65b079
Remove access token parameter if found on URL
2021-03-15 15:17:48 -07:00
Chris Roberts
51382a0d0a
Deprecate hook and disable access token parameter by default
...
This sets the `authenticate_box_url` hook as deprecated and also
disables the cloud auth middleware from adding an access token
as a URL parameter by default. An environment variable has been
added which can be used for re-enabling the access token URL
parameter behavior if required for some legacy system which does
not support the authorization header.
2021-03-15 14:46:46 -07:00
Connor Martin
e041bc7998
add checksum test
2021-03-11 17:47:08 -06:00
Sophia Castellarin
1c976f26ae
Merge pull request #12223 from soapy1/test-double-fix
...
Use test doubles instead of 'true'
2021-03-10 17:16:18 -06:00
sophia
7c8e204b8c
Use test doubles instead of 'true'
2021-03-10 16:44:20 -06:00
Chris Roberts
8a69d0c4da
Merge pull request #12225 from chrisroberts/resolution-isolation
...
Activate builtin specs on startup, provider better plugin install errors
2021-03-09 11:38:14 -08:00
Chris Roberts
ae48e960fc
Add test for behavior difference when running outside of installer
2021-03-09 08:06:10 -08:00
Chris Roberts
320fb81824
Clean up tests to handle modifications
2021-03-08 17:14:53 -08:00
Sophia Castellarin
33586066f9
Merge pull request #12201 from kpy3/main
...
FreeBSD updated ansible to py37-ansible
2021-03-08 16:33:39 -06:00
Sophia Castellarin
990d94ed9d
Merge pull request #12152 from dpausp/fix-nixos-networking
...
Fix network config for recent NixOS releases
2021-03-08 15:42:10 -06:00
Sophia Castellarin
0c653a3d4f
Merge pull request #12211 from soapy1/get-default-dhcp-ip
...
Get default dhcp ip from a matching host ip
2021-03-08 13:57:46 -06:00
Sophia Castellarin
ade9ecdde7
Merge pull request #12186 from soapy1/vagrant-destroy-exit-code
...
Don't count not created machines as declined when destroying
2021-03-08 13:54:03 -06:00
sophia
5d3c37126f
Get default dhcp ip from a matching host ip
2021-02-24 15:53:27 -06:00
Sophia Castellarin
d111596446
Merge pull request #12188 from soapy1/vagrant-does-not-reference-empty-string-vm
...
Don't try to find "" by prefix in the machine index
2021-02-23 14:24:17 -06:00
Sophia Castellarin
181b4ea890
Merge pull request #12177 from soapy1/apply-download-opts-to-metadata
...
Apply download options to metadata requests
2021-02-23 13:26:53 -06:00
Sophia Castellarin
6f1ab0ed5e
Merge pull request #12181 from soapy1/alpine-configure-networks
...
Check if interface exists before shutting it down
2021-02-23 13:21:19 -06:00
Sophia Castellarin
6a63a1bae5
Merge pull request #12184 from soapy1/vbox-synced-folders
...
Extract os friendly mount name for vbox shared folders
2021-02-23 13:17:55 -06:00
Sophia Castellarin
f2a1e25783
Merge pull request #12189 from soapy1/box-metadata-download-error
...
Raise error if downloading box metadata fails
2021-02-23 12:39:42 -06:00
sophia
a2fdbc5625
Don't count not created machines as declined when destroying
2021-02-22 16:14:16 -06:00
sophia
220f346d2b
Make shell script for loop shell agnostic
2021-02-22 12:36:54 -06:00
Sergey Yelin
e95a7f3e8a
FreeBSD updated ansible to py37-ansible
2021-02-20 18:35:07 +03:00
sophia
4b67216d71
Raise error if downloading box metadata fails
2021-02-12 17:07:04 -06:00
sophia
ab1c3c2547
Don't try to find "" by prefix in the machine index
2021-02-11 15:59:15 -06:00
sophia
b30a87ce6c
Extract os friendly mount name for vbox shared folders
2021-02-10 15:25:56 -06:00
sophia
ccbdcd46d0
Fix minimal Vagrantfile test
...
A minimal Vagrantfile may set the vi mode for ruby
2021-02-10 11:34:50 -06:00
sophia
b24d4252c5
Check if interface exists before shutting it down
2021-02-10 10:44:36 -06:00