3530 Commits

Author SHA1 Message Date
sophia
ca824644a5
Add tests for host service 2022-04-25 12:24:41 -05:00
sophia
434e613856
Test has capability 2022-04-25 12:24:39 -05:00
sophia
7477455380
Get parents from guest plugin 2022-04-25 12:24:39 -05:00
sophia
493343abb6
Add test guest 2022-04-25 12:24:38 -05:00
sophia
7fe582037f
Add a few tests for detection of guests 2022-04-25 12:24:38 -05:00
sophia
34637c616e
Add tests for guest service parents 2022-04-25 12:24:38 -05:00
Paul Hinze
d03a058e04
Fix VAGRANT_CWD handling in vagrant push ftp
When testing all of the push functionality I ran into the fact that the
FTP upload code did not recognize that I had VAGRANT_CWD set, so it
wasn't finding the right files to upload.

This should make everything work properly relative to that location.
2022-01-06 18:09:30 -06:00
Chris Roberts
ada1d582f7 Update test to use full environment and host instances 2021-11-08 11:29:48 -08:00
Paul Cacheux
e00f08722b Fix tests 2021-11-08 18:35:32 +01:00
Chris Roberts
66b39d45f4
Merge pull request #12575 from chrisroberts/fix-coreos
Fix coreos network configuration
2021-11-05 10:39:26 -07:00
Chris Roberts
cae807fcf0 Configure each device individually to prevent orphan connections 2021-11-04 15:51:08 -07:00
Chris Roberts
f9d1025688
Merge pull request #11880 from elastio/bug/11878-rsync-fails-on-windows
[WIP] Change `mkdir` command on Windows for rsync
2021-11-04 15:03:20 -07:00
Chris Roberts
657b2a39d9 Fix network configuration for coreos guests 2021-11-04 14:53:22 -07:00
Chris Roberts
69ddf98607
Merge pull request #12570 from chrisroberts/darwin-nfs
Fix NFS host paths on darwin
2021-11-03 11:06:27 -07:00
Chris Roberts
ac92fd8e1d Access provider driver through machine for version check
Updates the VirtualBox version check for network range validation
    to access the driver via the machine instances provider within the
    passed env.
2021-11-03 09:32:41 -07:00
Chris Roberts
5f0e5652b1 Only resolve path with firmlink prefix on Catalina 2021-11-02 16:44:06 -07:00
Chris Roberts
6810c7b4bb Add version capability to darwin host plugin 2021-11-02 16:43:26 -07:00
Chris Roberts
716f4c0717
Merge pull request #12564 from chrisroberts/vbox-hostonly-validat
Validate VirtualBox hostonly network range
2021-11-02 11:03:44 -07:00
Chris Roberts
2f9a0ac253 Adjust default range 2021-10-29 09:43:47 -07:00
Chris Roberts
4341d1b45c Include pass through for other exist? calls 2021-10-29 09:30:23 -07:00
Chris Roberts
ae7639ec23 Validate VirtualBox hostonly network range
VirtualBox introduced a restriction on the valid range for hostonly
    networks. When using a version of VirtualBox which includes this
    restriction a check is performed on the defined IP address to validate
    it is within either the default range (as defined in the VirtualBox
    documentation) or the values defined in the network configuration
    file.
2021-10-28 17:12:15 -07:00
Collin McNeese
692cb1ae34
Updates install checks for Chef provisioners
Signed-off-by: Collin McNeese <cmcneese@chef.io>
2021-10-24 11:38:59 -05:00
Dan Čermák
c4ced5459d
Add fallback for SLE 11 guest machines
SLE 11 does not ship systemd and then using systemctl poweroff does not
work. Therefore we fall back to using /sbin/shutdown for machines without
systemd.
This fixes https://github.com/hashicorp/vagrant/issues/12487
2021-08-06 12:55:32 +02:00
Chris Roberts
84d3a5fe47 Update compose tests to pass fully through Util::Subprocess 2021-07-12 09:54:56 -07:00
Dan Čermák
db38599124
Remove no longer required gem webmock
This gem was added a long time ago and probably used to test the functionality
that is now provided by the vagrant_cloud gem
2021-07-06 16:22:24 +02:00
Chris Roberts
a8c5980afb Add Rocky Linux guest support 2021-07-02 15:32:48 -07:00
Dan Čermák
8ce38a639b
Use systemctl poweroff in the background instead of shutdown
We have started seeing occasional shutdown failures on openSUSE Tumbleweed with
Virtualbox inside a qemu virtual machine, where `shutdown -h now` would return
nil. While the machine is successfully turned off, the command fails and vagrant
reports an error.
This commit changes the shutdown command to launch in the background which
also triggers a shutdown, but always succeeds.
2021-07-01 09:31:50 +02:00
Chris Roberts
bbd1404c1e
Merge pull request #12437 from chrisroberts/line-buf-shell-util
Line buffer utility and shell provisioner usage
2021-06-29 13:11:19 -07:00
Chris Roberts
32757d56e1
Merge pull request #12304 from grahamhub/issue-12191
implement --info flag for package cmd #12191
2021-06-29 13:07:47 -07:00
Chris Roberts
9b232d0ff3 Add test coverage on line buffer util 2021-06-29 11:04:14 -07:00
Chris Roberts
aee58785b2 Add tests on provisioner to validate expected output behavior 2021-06-29 11:04:14 -07:00
Chris Roberts
3d0d0148e9 Update tests to use real UI instance
Replaces use of UI doubles within tests to use actual UI instance
    to ensure calls are passing parameters correctly.
2021-06-23 14:04:48 -07:00
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
grahamhub
bfa73b06c6 cli: implement --info flag for package #12191 2021-04-15 00:28:41 -05: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