3662 Commits

Author SHA1 Message Date
Sophia Castellarin
0b5489f1fd
Merge pull request #11915 from soapy1/enable-vagrant-experimental-tests
Enable experimental vagrant features for tests
2020-10-09 11:55:00 -05:00
sophia
f4640e49ff Ensure provider specific config gets transformed into common form 2020-10-06 16:27:20 -05:00
sophia
0c283e5b50 Install smbclient when setting up arch smb
Leaving out smbclient from the install will cause a cyclical
dependency error.

```
Was getting error
Stderr from the command:

warning: dependency cycle detected:
warning: smbclient will be installed before its cifs-utils dependency
error: failed to commit transaction (conflicting files)
```
2020-09-23 11:59:42 -05:00
sophia
00e4810197 Add mount_name synced folder capability to get name of mount 2020-09-22 16:57:43 -05:00
sophia
11aeafea5c Add tests for smb mount options driven through synced folder capabilities 2020-09-22 16:56:11 -05:00
Sophia Castellarin
70d37e8a9c
Merge pull request #11835 from soapy1/remove-url-token
Download a box by setting auth headers
2020-09-22 15:35:30 -05:00
Sophia Castellarin
0d0935fce7
Merge pull request #11909 from soapy1/fstab-mod
Create fstab if does not exist
2020-09-22 14:29:09 -05:00
sophia
8e9b3e3c0f Enable experimental vagrant features for tests 2020-09-22 14:22:43 -05:00
Chris Roberts
4b07f2d1fa
Merge pull request #11912 from kipal/assume-yes-cloud-version-release
--yes options added to CloudCommand::VersionCommand::Command::Release
2020-09-22 11:38:48 -07:00
Chris Roberts
7103be62b9
Merge pull request #11867 from marxarelli/fix/storage-controller-array-sort
Avoid sorting of controllers with nil boot_priority
2020-09-22 11:36:02 -07:00
Nandor Kiss
cc3cdfe452 --force instead of --yes. 2020-09-22 20:13:30 +02:00
Sophia Castellarin
0b80925c5d
Merge pull request #11907 from soapy1/docker-spec-tests
Docker spec tests
2020-09-22 12:39:41 -05:00
Sophia Castellarin
52908cd5c4
Merge pull request #11889 from soapy1/remove-rsync-from-tests
Remove rsync dep from tests
2020-09-22 12:35:45 -05:00
sophia
55857e6f21 Readd vbox tests 2020-09-17 12:55:00 -05:00
sophia
d1c0f9268c Only run tests for docker 2020-09-17 10:21:50 -05:00
Nandor Kiss
59d398c405 --yes at vagrant cloud version release command. 2020-09-16 22:25:41 +02:00
sophia
32ac59b308 Seperate out docker testst 2020-09-15 17:16:33 -05:00
sophia
83b2b399f3 Add docker image to boxes hash 2020-09-15 16:00:19 -05:00
sophia
a843fd9da7 Add docker specific tests 2020-09-15 16:00:19 -05:00
sophia
da7f957a46 Add docker provider spec tests 2020-09-15 16:00:19 -05:00
Sophia Castellarin
6e8be9f9ef
Merge pull request #11863 from soapy1/include-index
Include index
2020-09-15 15:47:35 -05:00
sophia
0831df2e7f Create fstab if does not exist 2020-09-15 15:38:32 -05:00
sophia
d6a88f666f Add some docstrings and logging 2020-09-15 15:01:01 -05:00
sophia
5607428a66 Don't try to recover machine without a uuid 2020-09-15 11:16:13 -05:00
Sophia Castellarin
3a407c9dfa
Merge pull request #11885 from soapy1/debian-host-name-order
Set hostname in /etc/hosts as first step to changing hostname
2020-09-15 11:11:12 -05:00
sophia
25f9284884 Disable synced folders for command tests
This avoids doing a validation for usable synced folder
implementation, which are not relaated to these tests.
2020-09-15 11:10:06 -05:00
Sophia Castellarin
1c6a098930
Merge pull request #11897 from soapy1/no-etc-fstab
Add check for /etc/fstab
2020-09-15 09:57:13 -05:00
sophia
41fa71081f Add check for /etc/fstab 2020-09-14 09:43:07 -05:00
sophia
f9b1d52ec6 Catch error for when guest is not available 2020-09-10 16:28:38 -05:00
sophia
1a72c9b631 Set "allow_fstab_modification" for command tests
This will avoid the step where a deafult synced folder implementation
is seached for.
ref:
https://github.com/hashicorp/vagrant/blob/master/plugins/kernel_v2/config/vm.rb#L728
2020-09-09 11:35:31 -05:00
sophia
638e3d35b9 Set hostname in /etc/hosts as first step to changing hostname 2020-09-08 11:03:02 -05:00
Adam Nelson
45f041e33e Update unit test to match changed mkdir command 2020-09-04 12:51:54 +02:00
sophia
735e565668 Use curl to download artifacts 2020-09-03 12:54:56 -05:00
sophia
880ee30cbf Download vagrant installer to pkg/dist 2020-09-02 17:02:21 -05:00
sophia
8d6bc662fb Use latest built assests to run test 2020-09-02 17:02:21 -05:00
Dan Duvall
1b0f5120c6 Avoid sorting of controllers with nil boot_priority
Some unsupported storage controllers (e.g. floppy) report a nil
boot_priority which results in a failed sort. Select only supported
storage controllers to avoid that case.
2020-09-01 09:57:55 -07:00
sophia
e619a6a930 Catch nil input for querying machine index 2020-08-28 16:13:43 -05:00
Sophia Castellarin
3835da3839
Merge pull request #11797 from soapy1/synced-folder-caps
Synced folder caps for mount options and default fstab modification behaviour
2020-08-21 11:44:15 -05:00
Sophia Castellarin
3f1aaa374b
Merge pull request #11837 from soapy1/scrub-whole-word-credentials
Scrub credentials as whole words, don't capture matching substrings
2020-08-21 11:23:47 -05:00
sophia
fffc555faf Add tests for new hook 2020-08-21 10:54:43 -05:00
sophia
e96d60c029 Add tests for persisting shared folders 2020-08-20 18:24:09 -05:00
sophia
e2f012ff58 Escape value being scrubbed 2020-08-20 18:03:01 -05:00
sophia
943047d003 Add tests for synced folder collections 2020-08-19 17:57:57 -05:00
sophia
bb5d0e9c28 Remove credentials scrubbing from caching synced folders
Passwords are (and should) never stored be as part of folder data.
I think there is also a case to be made about desensitizes
information here can lead to leaking of credentials. For example if
an exported folder is named "vagrant" and the users password is
"vagrant", the synced_folder cache will show "****" in place of the
folder name, indicating that it is also password.
2020-08-19 17:43:22 -05:00
sophia
649f69747f Check for nil return from forwarded ports cap
Nil may be returned if the forwarded ports cap is called while the
machine is not in a running state.
2020-08-19 17:13:33 -05:00
Chris Roberts
cd2d84fda7 Adjust synced folder collection class 2020-08-19 15:00:40 -05:00
sophia
2a8372a272 Add mount type cap 2020-08-19 15:00:40 -05:00
sophia
bc898e385d Update tests for synced folder typed hash 2020-08-19 15:00:40 -05:00
sophia
faad9f2717 Add tests 2020-08-19 15:00:40 -05:00
sophia
27b37ea838 Scrub credentials as whole words, don't capture matching substrings 2020-08-18 11:38:04 -05:00