vagrant-unbundled 1.9.7.1 → 1.9.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -0
- data/Gemfile.lock +10 -6
- data/contrib/bash/completion.sh +1 -1
- data/contrib/sudoers/linux-ubuntu +3 -4
- data/lib/vagrant/errors.rb +8 -0
- data/lib/vagrant/machine.rb +2 -0
- data/lib/vagrant/util/platform.rb +1 -1
- data/lib/vagrant/util/powershell.rb +42 -13
- data/lib/vagrant/util/safe_exec.rb +13 -2
- data/lib/vagrant/util/ssh.rb +11 -1
- data/plugins/commands/box/command/update.rb +12 -7
- data/plugins/commands/login/client.rb +15 -6
- data/plugins/commands/login/command.rb +13 -3
- data/plugins/commands/up/command.rb +9 -0
- data/plugins/commands/validate/command.rb +4 -4
- data/plugins/guests/darwin/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/freebsd/cap/configure_networks.rb +1 -1
- data/plugins/guests/freebsd/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/linux/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/netbsd/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/openbsd/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/windows/cap/public_key.rb +21 -45
- data/plugins/kernel_v2/config/ssh_connect.rb +3 -0
- data/plugins/providers/docker/config.rb +4 -0
- data/plugins/providers/docker/driver/compose.rb +11 -4
- data/plugins/providers/hyperv/action/wait_for_ip_address.rb +15 -11
- data/plugins/providers/hyperv/scripts/get_network_config.ps1 +24 -9
- data/plugins/providers/virtualbox/action/prepare_nfs_settings.rb +18 -0
- data/plugins/provisioners/ansible/provisioner/host.rb +1 -1
- data/plugins/provisioners/chef/cap/debian/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/freebsd/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/omnios/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/redhat/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/suse/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/windows/chef_install.rb +2 -2
- data/plugins/provisioners/chef/config/base.rb +17 -0
- data/plugins/provisioners/chef/config/chef_zero.rb +7 -0
- data/plugins/provisioners/chef/installer.rb +8 -7
- data/plugins/provisioners/chef/omnibus.rb +4 -6
- data/plugins/provisioners/chef/provisioner/base.rb +1 -0
- data/plugins/provisioners/chef/provisioner/chef_solo.rb +2 -1
- data/plugins/provisioners/file/provisioner.rb +18 -2
- data/plugins/provisioners/puppet/provisioner/puppet.rb +0 -2
- data/plugins/provisioners/salt/bootstrap-salt.sh +9 -5
- data/plugins/provisioners/shell/provisioner.rb +1 -1
- data/plugins/synced_folders/rsync/command/rsync_auto.rb +6 -1
- data/plugins/synced_folders/rsync/helper.rb +10 -0
- data/templates/locales/en.yml +27 -1
- data/templates/locales/providers_docker.yml +2 -0
- data/test/unit/base.rb +1 -3
- data/test/unit/plugins/commands/box/command/add_test.rb +3 -3
- data/test/unit/plugins/commands/box/command/remove_test.rb +6 -6
- data/test/unit/plugins/commands/box/command/repackage_test.rb +2 -4
- data/test/unit/plugins/commands/box/command/update_test.rb +36 -14
- data/test/unit/plugins/commands/init/command_test.rb +1 -1
- data/test/unit/plugins/commands/list-commands/command_test.rb +2 -2
- data/test/unit/plugins/commands/login/client_test.rb +5 -1
- data/test/unit/plugins/commands/package/command_test.rb +1 -1
- data/test/unit/plugins/commands/plugin/action/expunge_plugins_test.rb +1 -1
- data/test/unit/plugins/commands/plugin/action/install_gem_test.rb +3 -3
- data/test/unit/plugins/commands/plugin/action/plugin_exists_check_test.rb +3 -3
- data/test/unit/plugins/commands/plugin/action/uninstall_plugin_test.rb +1 -1
- data/test/unit/plugins/commands/plugin/action/update_gems_test.rb +2 -2
- data/test/unit/plugins/commands/port/command_test.rb +3 -3
- data/test/unit/plugins/commands/push/command_test.rb +1 -1
- data/test/unit/plugins/commands/snapshot/command/list_test.rb +2 -3
- data/test/unit/plugins/commands/ssh_config/command_test.rb +1 -1
- data/test/unit/plugins/commands/up/command_test.rb +69 -2
- data/test/unit/plugins/commands/validate/command_test.rb +47 -1
- data/test/unit/plugins/communicators/ssh/communicator_test.rb +5 -5
- data/test/unit/plugins/communicators/winrm/communicator_test.rb +6 -6
- data/test/unit/plugins/communicators/winrm/helper_test.rb +24 -23
- data/test/unit/plugins/communicators/winssh/communicator_test.rb +5 -5
- data/test/unit/plugins/guests/darwin/cap/shell_expand_guest_path_test.rb +43 -0
- data/test/unit/plugins/guests/freebsd/cap/configure_networks_test.rb +1 -1
- data/test/unit/plugins/guests/freebsd/cap/shell_expand_guest_path_test.rb +44 -0
- data/test/unit/plugins/guests/linux/cap/shell_expand_guest_path_test.rb +43 -0
- data/test/unit/plugins/guests/netbsd/cap/shell_expand_guest_path_test.rb +43 -0
- data/test/unit/plugins/guests/omnios/cap/mount_nfs_folder_test.rb +1 -3
- data/test/unit/plugins/guests/openbsd/cap/shell_expand_guest_path_test.rb +43 -0
- data/test/unit/plugins/guests/smartos/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/smartos/cap/configure_networks_test.rb +2 -2
- data/test/unit/plugins/guests/smartos/cap/halt_test.rb +2 -2
- data/test/unit/plugins/guests/smartos/cap/insert_public_key_test.rb +1 -1
- data/test/unit/plugins/guests/smartos/cap/mount_nfs_test.rb +2 -2
- data/test/unit/plugins/guests/smartos/cap/rsync_test.rb +2 -2
- data/test/unit/plugins/guests/windows/cap/insert_public_key_test.rb +2 -2
- data/test/unit/plugins/guests/windows/cap/remove_public_key_test.rb +4 -3
- data/test/unit/plugins/guests/windows/config_test.rb +1 -1
- data/test/unit/plugins/guests/windows/guest_network_test.rb +2 -2
- data/test/unit/plugins/hosts/linux/cap/nfs_test.rb +2 -0
- data/test/unit/plugins/kernel_v2/config/push_test.rb +1 -1
- data/test/unit/plugins/kernel_v2/config/vm_test.rb +7 -7
- data/test/unit/plugins/providers/docker/action/create_test.rb +1 -1
- data/test/unit/plugins/providers/docker/command/exec_test.rb +1 -1
- data/test/unit/plugins/providers/docker/config_test.rb +23 -4
- data/test/unit/plugins/providers/docker/driver_compose_test.rb +60 -30
- data/test/unit/plugins/providers/docker/driver_test.rb +31 -31
- data/test/unit/plugins/providers/docker/synced_folder_test.rb +3 -3
- data/test/unit/plugins/providers/hyperv/provider_test.rb +19 -19
- data/test/unit/plugins/providers/virtualbox/action/network_fix_ipv6_test.rb +2 -2
- data/test/unit/plugins/providers/virtualbox/action/network_test.rb +1 -1
- data/test/unit/plugins/providers/virtualbox/action/prepare_nfs_settings_test.rb +34 -8
- data/test/unit/plugins/providers/virtualbox/action/prepare_nfs_valid_ids_test.rb +3 -3
- data/test/unit/plugins/providers/virtualbox/cap_test.rb +2 -2
- data/test/unit/plugins/providers/virtualbox/config_test.rb +6 -6
- data/test/unit/plugins/providers/virtualbox/synced_folder_test.rb +6 -8
- data/test/unit/plugins/provisioners/ansible/config/guest_test.rb +1 -1
- data/test/unit/plugins/provisioners/ansible/config/host_test.rb +4 -4
- data/test/unit/plugins/provisioners/ansible/config/shared.rb +2 -2
- data/test/unit/plugins/provisioners/ansible/provisioner_test.rb +165 -157
- data/test/unit/plugins/provisioners/chef/command_builder_test.rb +2 -2
- data/test/unit/plugins/provisioners/chef/config/base_test.rb +13 -0
- data/test/unit/plugins/provisioners/chef/config/chef_zero_test.rb +11 -0
- data/test/unit/plugins/provisioners/chef/omnibus_test.rb +17 -7
- data/test/unit/plugins/provisioners/docker/config_test.rb +2 -1
- data/test/unit/plugins/provisioners/docker/provisioner_test.rb +13 -13
- data/test/unit/plugins/provisioners/file/provisioner_test.rb +32 -14
- data/test/unit/plugins/provisioners/puppet/provisioner/puppet_test.rb +51 -0
- data/test/unit/plugins/provisioners/salt/provisioner_test.rb +5 -5
- data/test/unit/plugins/provisioners/shell/provisioner_test.rb +35 -4
- data/test/unit/plugins/pushes/ftp/adapter_test.rb +1 -0
- data/test/unit/plugins/synced_folders/nfs/action_cleanup_test.rb +1 -1
- data/test/unit/plugins/synced_folders/nfs/config_test.rb +1 -1
- data/test/unit/plugins/synced_folders/rsync/command/rsync_auto_test.rb +44 -12
- data/test/unit/plugins/synced_folders/rsync/command/rsync_test.rb +5 -5
- data/test/unit/plugins/synced_folders/rsync/helper_test.rb +47 -29
- data/test/unit/plugins/synced_folders/rsync/synced_folder_test.rb +5 -5
- data/test/unit/vagrant/action/builtin/box_add_test.rb +27 -27
- data/test/unit/vagrant/action/builtin/box_check_outdated_test.rb +10 -10
- data/test/unit/vagrant/action/builtin/box_remove_test.rb +15 -15
- data/test/unit/vagrant/action/builtin/confirm_test.rb +1 -1
- data/test/unit/vagrant/action/builtin/graceful_halt_test.rb +2 -2
- data/test/unit/vagrant/action/builtin/handle_box_test.rb +8 -8
- data/test/unit/vagrant/action/builtin/handle_forwarded_port_collisions_test.rb +1 -1
- data/test/unit/vagrant/action/builtin/is_env_set_test.rb +2 -2
- data/test/unit/vagrant/action/builtin/is_state_test.rb +6 -6
- data/test/unit/vagrant/action/builtin/mixin_synced_folders_test.rb +6 -6
- data/test/unit/vagrant/action/builtin/provision_test.rb +1 -1
- data/test/unit/vagrant/action/builtin/provisioner_cleanup_test.rb +1 -1
- data/test/unit/vagrant/action/builtin/synced_folder_cleanup_test.rb +6 -6
- data/test/unit/vagrant/action/builtin/synced_folders_test.rb +3 -3
- data/test/unit/vagrant/batch_action_test.rb +2 -2
- data/test/unit/vagrant/box_collection_test.rb +1 -1
- data/test/unit/vagrant/box_test.rb +6 -6
- data/test/unit/vagrant/capability_host_test.rb +3 -3
- data/test/unit/vagrant/cli_test.rb +3 -3
- data/test/unit/vagrant/environment_test.rb +21 -20
- data/test/unit/vagrant/guest_test.rb +7 -7
- data/test/unit/vagrant/machine_index_test.rb +4 -4
- data/test/unit/vagrant/machine_test.rb +28 -17
- data/test/unit/vagrant/plugin/manager_test.rb +12 -12
- data/test/unit/vagrant/plugin/state_file_test.rb +2 -2
- data/test/unit/vagrant/plugin/v1/command_test.rb +9 -8
- data/test/unit/vagrant/plugin/v2/command_test.rb +54 -43
- data/test/unit/vagrant/plugin/v2/plugin_test.rb +4 -3
- data/test/unit/vagrant/plugin/v2/provider_test.rb +3 -3
- data/test/unit/vagrant/shared_helpers_test.rb +6 -6
- data/test/unit/vagrant/ui_test.rb +21 -21
- data/test/unit/vagrant/util/downloader_test.rb +7 -7
- data/test/unit/vagrant/util/ssh_test.rb +41 -5
- data/test/unit/vagrant/util/subprocess_test.rb +7 -7
- data/test/unit/vagrant_test.rb +9 -9
- data/vagrant.gemspec +3 -2
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/vagrant-spec.gemspec +1 -1
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.gitignore +7 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.rspec +2 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.travis.yml +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/CONTRIBUTORS.md +19 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Gemfile +12 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Gemfile.lock +44 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Guardfile +10 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/README.md +134 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Rakefile +10 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/fake_ftp.gemspec +22 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp.rb +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/file.rb +34 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/server.rb +340 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/version.rb +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/fixtures/invisible_bike.jpg +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/fixtures/text_file.txt +1 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/functional/server_spec.rb +468 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/integration/server_spec.rb +81 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/models/fake_ftp/file_spec.rb +102 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/models/fake_ftp/server_spec.rb +76 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/spec_helper.rb +18 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/.gitignore +14 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/.rubocop.yml +57 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/.travis.yml +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/CONTRIBUTING.rdoc +36 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/Gemfile +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/History.rdoc +2247 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/README.rdoc +156 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/Rakefile +38 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/appveyor.yml +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/bin/console +7 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/bin/setup +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/command_line_usage.rdoc +158 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/glossary.rdoc +42 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/jamis.rb +591 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/rake.1 +156 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/rakefile.rdoc +622 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/exe/rake +27 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake.rb +70 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb +785 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb +23 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/clean.rb +77 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/cloneable.rb +16 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/cpu_counter.rb +106 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/default_loader.rb +14 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/dsl_definition.rb +194 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/early_time.rb +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/ext/core.rb +25 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/ext/string.rb +175 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_creation_task.rb +24 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_list.rb +434 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_task.rb +46 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_utils.rb +136 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_utils_ext.rb +144 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/invocation_chain.rb +56 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/late_time.rb +17 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/linked_list.rb +111 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/loaders/makefile.rb +53 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/multi_task.rb +49 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/name_space.rb +37 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/packagetask.rb +210 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/phony.rb +15 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/private_reader.rb +20 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/promise.rb +99 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/pseudo_status.rb +29 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/rake_module.rb +38 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/rule_recursion_overflow_error.rb +19 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/scope.rb +42 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb +390 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task_argument_error.rb +7 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task_arguments.rb +108 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task_manager.rb +303 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/tasklib.rb +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/testtask.rb +222 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/thread_history_display.rb +48 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/thread_pool.rb +162 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/trace_output.rb +22 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/version.rb +9 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/win32.rb +50 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/rake.gemspec +39 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/.gitignore +19 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/.rspec +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/.travis.yml +24 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/Changelog.md +49 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/Gemfile +26 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/LICENSE.txt +27 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/README.md +72 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/Rakefile +16 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/cucumber.yml +2 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/its.feature +125 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/support/env.rb +23 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/lib/rspec/its.rb +149 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/lib/rspec/its/version.rb +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/rspec-its.gemspec +28 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/script/test_all +20 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/spec/rspec/its_spec.rb +237 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/spec/spec_helper.rb +15 -0
- data/vendor/bundle/ruby/2.4.0/specifications/fake_ftp-0.1.1.gemspec +20 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rake-12.0.0.gemspec +43 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rspec-its-1.2.0.gemspec +47 -0
- data/version.txt +1 -1
- metadata +137 -7
- data/2.14.0 +0 -5
@@ -24,7 +24,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
|
|
24
24
|
let(:box) do
|
25
25
|
box_dir = iso_env.box3("foo", "1.0", :virtualbox)
|
26
26
|
Vagrant::Box.new("foo", :virtualbox, "1.0", box_dir).tap do |b|
|
27
|
-
b.
|
27
|
+
allow(b).to receive(:has_update?).and_return(nil)
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
@@ -35,7 +35,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
before do
|
38
|
-
machine.
|
38
|
+
allow(machine).to receive(:box).and_return(box)
|
39
39
|
end
|
40
40
|
|
41
41
|
context "disabling outdated checking" do
|
@@ -63,7 +63,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
|
|
63
63
|
|
64
64
|
context "no box" do
|
65
65
|
it "raises an exception if the machine doesn't have a box yet" do
|
66
|
-
machine.
|
66
|
+
allow(machine).to receive(:box).and_return(nil)
|
67
67
|
|
68
68
|
expect(app).to receive(:call).with(env).once
|
69
69
|
|
@@ -75,8 +75,8 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
|
|
75
75
|
|
76
76
|
context "with a non-versioned box" do
|
77
77
|
it "does nothing" do
|
78
|
-
box.
|
79
|
-
box.
|
78
|
+
allow(box).to receive(:metadata_url).and_return(nil)
|
79
|
+
allow(box).to receive(:version).and_return("0")
|
80
80
|
|
81
81
|
expect(app).to receive(:call).once
|
82
82
|
expect(box).to receive(:has_update?).never
|
@@ -93,7 +93,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
|
|
93
93
|
|
94
94
|
subject.call(env)
|
95
95
|
|
96
|
-
expect(env[:box_outdated]).to
|
96
|
+
expect(env[:box_outdated]).to be(false)
|
97
97
|
end
|
98
98
|
|
99
99
|
it "sets env if there is an update" do
|
@@ -126,7 +126,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
|
|
126
126
|
|
127
127
|
subject.call(env)
|
128
128
|
|
129
|
-
expect(env[:box_outdated]).to
|
129
|
+
expect(env[:box_outdated]).to be(true)
|
130
130
|
end
|
131
131
|
|
132
132
|
it "has an update if it is local" do
|
@@ -138,7 +138,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
|
|
138
138
|
|
139
139
|
subject.call(env)
|
140
140
|
|
141
|
-
expect(env[:box_outdated]).to
|
141
|
+
expect(env[:box_outdated]).to be(true)
|
142
142
|
end
|
143
143
|
|
144
144
|
it "does not have a local update if not within constraints" do
|
@@ -152,7 +152,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
|
|
152
152
|
|
153
153
|
subject.call(env)
|
154
154
|
|
155
|
-
expect(env[:box_outdated]).to
|
155
|
+
expect(env[:box_outdated]).to be(false)
|
156
156
|
end
|
157
157
|
|
158
158
|
it "does nothing if metadata download fails" do
|
@@ -163,7 +163,7 @@ describe Vagrant::Action::Builtin::BoxCheckOutdated do
|
|
163
163
|
|
164
164
|
subject.call(env)
|
165
165
|
|
166
|
-
expect(env[:box_outdated]).to
|
166
|
+
expect(env[:box_outdated]).to be(false)
|
167
167
|
end
|
168
168
|
|
169
169
|
it "raises error if has_update? errors" do
|
@@ -24,7 +24,7 @@ describe Vagrant::Action::Builtin::BoxRemove do
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it "deletes the box if it is the only option" do
|
27
|
-
box_collection.
|
27
|
+
allow(box_collection).to receive(:all).and_return([["foo", "1.0", :virtualbox]])
|
28
28
|
|
29
29
|
env[:box_name] = "foo"
|
30
30
|
|
@@ -41,8 +41,8 @@ describe Vagrant::Action::Builtin::BoxRemove do
|
|
41
41
|
end
|
42
42
|
|
43
43
|
it "deletes the box with the specified provider if given" do
|
44
|
-
box_collection.
|
45
|
-
|
44
|
+
allow(box_collection).to receive(:all)
|
45
|
+
.and_return([
|
46
46
|
["foo", "1.0", :virtualbox],
|
47
47
|
["foo", "1.0", :vmware],
|
48
48
|
])
|
@@ -63,8 +63,8 @@ describe Vagrant::Action::Builtin::BoxRemove do
|
|
63
63
|
end
|
64
64
|
|
65
65
|
it "deletes the box with the specified version if given" do
|
66
|
-
box_collection.
|
67
|
-
|
66
|
+
allow(box_collection).to receive(:all)
|
67
|
+
.and_return([
|
68
68
|
["foo", "1.0", :virtualbox],
|
69
69
|
["foo", "1.1", :virtualbox],
|
70
70
|
])
|
@@ -93,7 +93,7 @@ describe Vagrant::Action::Builtin::BoxRemove do
|
|
93
93
|
"version" => "1.0",
|
94
94
|
}
|
95
95
|
|
96
|
-
entry.
|
96
|
+
allow(entry).to receive(:valid?).and_return(valid)
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
@@ -102,8 +102,8 @@ describe Vagrant::Action::Builtin::BoxRemove do
|
|
102
102
|
before do
|
103
103
|
env[:action_runner] = action_runner
|
104
104
|
|
105
|
-
box_collection.
|
106
|
-
|
105
|
+
allow(box_collection).to receive(:all)
|
106
|
+
.and_return([
|
107
107
|
["foo", "1.0", :virtualbox],
|
108
108
|
["foo", "1.1", :virtualbox],
|
109
109
|
])
|
@@ -154,7 +154,7 @@ describe Vagrant::Action::Builtin::BoxRemove do
|
|
154
154
|
end
|
155
155
|
|
156
156
|
it "errors if the box doesn't exist" do
|
157
|
-
box_collection.
|
157
|
+
allow(box_collection).to receive(:all).and_return([])
|
158
158
|
|
159
159
|
expect(app).to receive(:call).never
|
160
160
|
|
@@ -166,7 +166,7 @@ describe Vagrant::Action::Builtin::BoxRemove do
|
|
166
166
|
env[:box_name] = "foo"
|
167
167
|
env[:box_provider] = "bar"
|
168
168
|
|
169
|
-
box_collection.
|
169
|
+
allow(box_collection).to receive(:all).and_return([["foo", "1.0", :virtualbox]])
|
170
170
|
|
171
171
|
expect(app).to receive(:call).never
|
172
172
|
|
@@ -177,8 +177,8 @@ describe Vagrant::Action::Builtin::BoxRemove do
|
|
177
177
|
it "errors if there are multiple providers" do
|
178
178
|
env[:box_name] = "foo"
|
179
179
|
|
180
|
-
box_collection.
|
181
|
-
|
180
|
+
allow(box_collection).to receive(:all)
|
181
|
+
.and_return([
|
182
182
|
["foo", "1.0", :virtualbox],
|
183
183
|
["foo", "1.0", :vmware],
|
184
184
|
])
|
@@ -193,8 +193,8 @@ describe Vagrant::Action::Builtin::BoxRemove do
|
|
193
193
|
env[:box_name] = "foo"
|
194
194
|
env[:box_provider] = "virtualbox"
|
195
195
|
|
196
|
-
box_collection.
|
197
|
-
|
196
|
+
allow(box_collection).to receive(:all)
|
197
|
+
.and_return([
|
198
198
|
["foo", "1.0", :virtualbox],
|
199
199
|
["foo", "1.1", :virtualbox],
|
200
200
|
])
|
@@ -209,7 +209,7 @@ describe Vagrant::Action::Builtin::BoxRemove do
|
|
209
209
|
env[:box_name] = "foo"
|
210
210
|
env[:box_version] = "1.1"
|
211
211
|
|
212
|
-
box_collection.
|
212
|
+
allow(box_collection).to receive(:all).and_return([["foo", "1.0", :virtualbox]])
|
213
213
|
|
214
214
|
expect(app).to receive(:call).never
|
215
215
|
|
@@ -13,8 +13,8 @@ describe Vagrant::Action::Builtin::GracefulHalt do
|
|
13
13
|
let(:machine_config) do
|
14
14
|
double("machine_config").tap do |top_config|
|
15
15
|
vm_config = double("machien_vm_config")
|
16
|
-
vm_config.
|
17
|
-
top_config.
|
16
|
+
allow(vm_config).to receive(:graceful_halt_timeout).and_return(10)
|
17
|
+
allow(top_config).to receive(:vm).and_return(vm_config)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
let(:machine_guest) { double("machine_guest") }
|
@@ -38,7 +38,7 @@ describe Vagrant::Action::Builtin::HandleBox do
|
|
38
38
|
end
|
39
39
|
|
40
40
|
it "doesn't do anything if a box exists" do
|
41
|
-
machine.
|
41
|
+
allow(machine).to receive(:box).and_return(box)
|
42
42
|
|
43
43
|
expect(action_runner).to receive(:run).never
|
44
44
|
expect(app).to receive(:call).with(env)
|
@@ -48,13 +48,13 @@ describe Vagrant::Action::Builtin::HandleBox do
|
|
48
48
|
|
49
49
|
context "with a box set and no box_url" do
|
50
50
|
before do
|
51
|
-
machine.
|
51
|
+
allow(machine).to receive(:box).and_return(nil)
|
52
52
|
|
53
53
|
machine.config.vm.box = "foo"
|
54
54
|
end
|
55
55
|
|
56
56
|
it "adds a box that doesn't exist" do
|
57
|
-
expect(action_runner).to receive(:run).with { |action, opts|
|
57
|
+
expect(action_runner).to receive(:run).with(any_args) { |action, opts|
|
58
58
|
expect(opts[:box_name]).to eq(machine.config.vm.box)
|
59
59
|
expect(opts[:box_url]).to eq(machine.config.vm.box)
|
60
60
|
expect(opts[:box_provider]).to eq(:dummy)
|
@@ -70,7 +70,7 @@ describe Vagrant::Action::Builtin::HandleBox do
|
|
70
70
|
it "adds a box using any format the provider allows" do
|
71
71
|
machine.provider_options[:box_format] = [:foo, :bar]
|
72
72
|
|
73
|
-
expect(action_runner).to receive(:run).with { |action, opts|
|
73
|
+
expect(action_runner).to receive(:run).with(any_args) { |action, opts|
|
74
74
|
expect(opts[:box_name]).to eq(machine.config.vm.box)
|
75
75
|
expect(opts[:box_url]).to eq(machine.config.vm.box)
|
76
76
|
expect(opts[:box_provider]).to eq([:foo, :bar])
|
@@ -86,14 +86,14 @@ describe Vagrant::Action::Builtin::HandleBox do
|
|
86
86
|
|
87
87
|
context "with a box and box_url set" do
|
88
88
|
before do
|
89
|
-
machine.
|
89
|
+
allow(machine).to receive(:box).and_return(nil)
|
90
90
|
|
91
91
|
machine.config.vm.box = "foo"
|
92
92
|
machine.config.vm.box_url = "bar"
|
93
93
|
end
|
94
94
|
|
95
95
|
it "adds a box that doesn't exist" do
|
96
|
-
expect(action_runner).to receive(:run).with { |action, opts|
|
96
|
+
expect(action_runner).to receive(:run).with(any_args) { |action, opts|
|
97
97
|
expect(opts[:box_name]).to eq(machine.config.vm.box)
|
98
98
|
expect(opts[:box_url]).to eq(machine.config.vm.box_url)
|
99
99
|
expect(opts[:box_provider]).to eq(:dummy)
|
@@ -109,7 +109,7 @@ describe Vagrant::Action::Builtin::HandleBox do
|
|
109
109
|
|
110
110
|
context "with a box with a checksum set" do
|
111
111
|
before do
|
112
|
-
machine.
|
112
|
+
allow(machine).to receive(:box).and_return(nil)
|
113
113
|
|
114
114
|
machine.config.vm.box = "foo"
|
115
115
|
machine.config.vm.box_url = "bar"
|
@@ -118,7 +118,7 @@ describe Vagrant::Action::Builtin::HandleBox do
|
|
118
118
|
end
|
119
119
|
|
120
120
|
it "adds a box that doesn't exist and maps checksum options correctly" do
|
121
|
-
expect(action_runner).to receive(:run).with { |action, opts|
|
121
|
+
expect(action_runner).to receive(:run).with(any_args) { |action, opts|
|
122
122
|
expect(opts[:box_name]).to eq(machine.config.vm.box)
|
123
123
|
expect(opts[:box_url]).to eq(machine.config.vm.box_url)
|
124
124
|
expect(opts[:box_provider]).to eq(:dummy)
|
@@ -16,7 +16,7 @@ describe Vagrant::Action::Builtin::IsEnvSet do
|
|
16
16
|
expect(app).to receive(:call).with(env)
|
17
17
|
|
18
18
|
subject.call(env)
|
19
|
-
expect(env[:result]).to
|
19
|
+
expect(env[:result]).to be(true)
|
20
20
|
end
|
21
21
|
|
22
22
|
it "sets result to false if it isn't set" do
|
@@ -25,7 +25,7 @@ describe Vagrant::Action::Builtin::IsEnvSet do
|
|
25
25
|
expect(app).to receive(:call).with(env)
|
26
26
|
|
27
27
|
subject.call(env)
|
28
|
-
expect(env[:result]).to
|
28
|
+
expect(env[:result]).to be(false)
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
@@ -16,36 +16,36 @@ describe Vagrant::Action::Builtin::IsState do
|
|
16
16
|
|
17
17
|
describe "#call" do
|
18
18
|
it "sets result to false if is proper state" do
|
19
|
-
state.
|
19
|
+
allow(state).to receive(:id).and_return(:foo)
|
20
20
|
|
21
21
|
subject = described_class.new(app, env, :bar)
|
22
22
|
|
23
23
|
expect(app).to receive(:call).with(env)
|
24
24
|
|
25
25
|
subject.call(env)
|
26
|
-
expect(env[:result]).to
|
26
|
+
expect(env[:result]).to be(false)
|
27
27
|
end
|
28
28
|
|
29
29
|
it "sets result to true if is proper state" do
|
30
|
-
state.
|
30
|
+
allow(state).to receive(:id).and_return(:foo)
|
31
31
|
|
32
32
|
subject = described_class.new(app, env, :foo)
|
33
33
|
|
34
34
|
expect(app).to receive(:call).with(env)
|
35
35
|
|
36
36
|
subject.call(env)
|
37
|
-
expect(env[:result]).to
|
37
|
+
expect(env[:result]).to be(true)
|
38
38
|
end
|
39
39
|
|
40
40
|
it "inverts the result if specified" do
|
41
|
-
state.
|
41
|
+
allow(state).to receive(:id).and_return(:foo)
|
42
42
|
|
43
43
|
subject = described_class.new(app, env, :foo, invert: true)
|
44
44
|
|
45
45
|
expect(app).to receive(:call).with(env)
|
46
46
|
|
47
47
|
subject.call(env)
|
48
|
-
expect(env[:result]).to
|
48
|
+
expect(env[:result]).to be(false)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
end
|
@@ -24,7 +24,7 @@ describe Vagrant::Action::Builtin::MixinSyncedFolders do
|
|
24
24
|
|
25
25
|
let(:machine_config) do
|
26
26
|
double("machine_config").tap do |top_config|
|
27
|
-
top_config.
|
27
|
+
allow(top_config).to receive(:vm).and_return(vm_config)
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
@@ -98,8 +98,8 @@ describe Vagrant::Action::Builtin::MixinSyncedFolders do
|
|
98
98
|
plugins[:default] = [impl(true, "default"), 10]
|
99
99
|
plugins[:nfs] = [impl(true, "nfs"), 5]
|
100
100
|
|
101
|
-
subject.
|
102
|
-
vm_config.
|
101
|
+
allow(subject).to receive(:plugins).and_return(plugins)
|
102
|
+
allow(vm_config).to receive(:synced_folders).and_return(folders)
|
103
103
|
end
|
104
104
|
|
105
105
|
it "should raise exception if bad type is given" do
|
@@ -133,7 +133,7 @@ describe Vagrant::Action::Builtin::MixinSyncedFolders do
|
|
133
133
|
|
134
134
|
other_folders = { "bar" => {} }
|
135
135
|
other = double("config")
|
136
|
-
other.
|
136
|
+
allow(other).to receive(:synced_folders).and_return(other_folders)
|
137
137
|
|
138
138
|
result = subject.synced_folders(machine, config: other)
|
139
139
|
expect(result.length).to eq(1)
|
@@ -147,7 +147,7 @@ describe Vagrant::Action::Builtin::MixinSyncedFolders do
|
|
147
147
|
folders["root"] = { type: "unusable" }
|
148
148
|
|
149
149
|
expect { subject.synced_folders(machine) }.
|
150
|
-
to raise_error
|
150
|
+
to raise_error(RuntimeError)
|
151
151
|
end
|
152
152
|
|
153
153
|
it "should ignore disabled folders" do
|
@@ -201,7 +201,7 @@ describe Vagrant::Action::Builtin::MixinSyncedFolders do
|
|
201
201
|
it "should be able to save and retrieve cached versions" do
|
202
202
|
other_folders = {}
|
203
203
|
other = double("config")
|
204
|
-
other.
|
204
|
+
allow(other).to receive(:synced_folders).and_return(other_folders)
|
205
205
|
|
206
206
|
other_folders["foo"] = { type: "default" }
|
207
207
|
result = subject.synced_folders(machine, config: other)
|
@@ -16,7 +16,7 @@ describe Vagrant::Action::Builtin::SyncedFolderCleanup do
|
|
16
16
|
|
17
17
|
let(:machine_config) do
|
18
18
|
double("machine_config").tap do |top_config|
|
19
|
-
top_config.
|
19
|
+
allow(top_config).to receive(:vm).and_return(vm_config)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
@@ -55,8 +55,8 @@ describe Vagrant::Action::Builtin::SyncedFolderCleanup do
|
|
55
55
|
env[:machine] = Object.new
|
56
56
|
env[:root_path] = Pathname.new(Dir.mktmpdir("vagrant-test-synced-folder-cleanup-call"))
|
57
57
|
|
58
|
-
subject.
|
59
|
-
subject.
|
58
|
+
allow(subject).to receive(:plugins).and_return(plugins)
|
59
|
+
allow(subject).to receive(:synced_folders).and_return(synced_folders)
|
60
60
|
end
|
61
61
|
|
62
62
|
after do
|
@@ -131,9 +131,9 @@ describe Vagrant::Action::Builtin::SyncedFolderCleanup do
|
|
131
131
|
|
132
132
|
subject.call(env)
|
133
133
|
|
134
|
-
expect(trackers[0].clean).to
|
135
|
-
expect(trackers[1].clean).to
|
136
|
-
expect(trackers[2].clean).to
|
134
|
+
expect(trackers[0].clean).to be(true)
|
135
|
+
expect(trackers[1].clean).to be(true)
|
136
|
+
expect(trackers[2].clean).to be(true)
|
137
137
|
end
|
138
138
|
end
|
139
139
|
end
|
@@ -19,7 +19,7 @@ describe Vagrant::Action::Builtin::SyncedFolders do
|
|
19
19
|
|
20
20
|
let(:machine_config) do
|
21
21
|
double("machine_config").tap do |top_config|
|
22
|
-
top_config.
|
22
|
+
allow(top_config).to receive(:vm).and_return(vm_config)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
@@ -42,8 +42,8 @@ describe Vagrant::Action::Builtin::SyncedFolders do
|
|
42
42
|
plugins[:nfs] = [impl(true, "nfs"), 5]
|
43
43
|
|
44
44
|
env[:root_path] = Pathname.new(Dir.mktmpdir("vagrant-test-synced-folders-call"))
|
45
|
-
subject.
|
46
|
-
subject.
|
45
|
+
allow(subject).to receive(:plugins).and_return(plugins)
|
46
|
+
allow(subject).to receive(:synced_folders).and_return(synced_folders)
|
47
47
|
allow(subject).to receive(:save_synced_folders)
|
48
48
|
end
|
49
49
|
|