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
@@ -7,7 +7,7 @@ describe VagrantPlugins::DockerProvider::Driver do
|
|
7
7
|
let(:cid) { 'side-1-song-10' }
|
8
8
|
|
9
9
|
before do
|
10
|
-
subject.
|
10
|
+
allow(subject).to receive(:execute) { |*args| @cmd = args.join(' ') }
|
11
11
|
end
|
12
12
|
|
13
13
|
describe '#create' do
|
@@ -74,19 +74,19 @@ describe VagrantPlugins::DockerProvider::Driver do
|
|
74
74
|
end
|
75
75
|
|
76
76
|
context 'when container exists' do
|
77
|
-
before { subject.
|
78
|
-
it { expect(result).to
|
77
|
+
before { allow(subject).to receive(:execute).and_return("foo\n#{cid}\nbar") }
|
78
|
+
it { expect(result).to be_truthy }
|
79
79
|
end
|
80
80
|
|
81
81
|
context 'when container does not exist' do
|
82
|
-
before { subject.
|
83
|
-
it { expect(result).to
|
82
|
+
before { allow(subject).to receive(:execute).and_return("foo\n#{cid}extra\nbar") }
|
83
|
+
it { expect(result).to be_falsey }
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
87
|
describe '#pull' do
|
88
88
|
it 'should pull images' do
|
89
|
-
subject.
|
89
|
+
expect(subject).to receive(:execute).with('docker', 'pull', 'foo')
|
90
90
|
subject.pull('foo')
|
91
91
|
end
|
92
92
|
end
|
@@ -101,43 +101,43 @@ describe VagrantPlugins::DockerProvider::Driver do
|
|
101
101
|
end
|
102
102
|
|
103
103
|
context 'when container exists' do
|
104
|
-
before { subject.
|
105
|
-
it { expect(result).to
|
104
|
+
before { allow(subject).to receive(:execute).and_return("foo\n#{cid}\nbar") }
|
105
|
+
it { expect(result).to be_truthy }
|
106
106
|
end
|
107
107
|
|
108
108
|
context 'when container does not exist' do
|
109
|
-
before { subject.
|
110
|
-
it { expect(result).to
|
109
|
+
before { allow(subject).to receive(:execute).and_return("foo\n#{cid}extra\nbar") }
|
110
|
+
it { expect(result).to be_falsey }
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
114
114
|
describe '#privileged?' do
|
115
115
|
it 'identifies privileged containers' do
|
116
|
-
subject.
|
116
|
+
allow(subject).to receive(:inspect_container).and_return({'HostConfig' => {"Privileged" => true}})
|
117
117
|
expect(subject).to be_privileged(cid)
|
118
118
|
end
|
119
119
|
|
120
120
|
it 'identifies unprivileged containers' do
|
121
|
-
subject.
|
121
|
+
allow(subject).to receive(:inspect_container).and_return({'HostConfig' => {"Privileged" => false}})
|
122
122
|
expect(subject).to_not be_privileged(cid)
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
126
126
|
describe '#start' do
|
127
127
|
context 'when container is running' do
|
128
|
-
before { subject.
|
128
|
+
before { allow(subject).to receive(:running?).and_return(true) }
|
129
129
|
|
130
130
|
it 'does not start the container' do
|
131
|
-
subject.
|
131
|
+
expect(subject).to_not receive(:execute).with('docker', 'start', cid)
|
132
132
|
subject.start(cid)
|
133
133
|
end
|
134
134
|
end
|
135
135
|
|
136
136
|
context 'when container is not running' do
|
137
|
-
before { subject.
|
137
|
+
before { allow(subject).to receive(:running?).and_return(false) }
|
138
138
|
|
139
139
|
it 'starts the container' do
|
140
|
-
subject.
|
140
|
+
expect(subject).to receive(:execute).with('docker', 'start', cid)
|
141
141
|
subject.start(cid)
|
142
142
|
end
|
143
143
|
end
|
@@ -145,24 +145,24 @@ describe VagrantPlugins::DockerProvider::Driver do
|
|
145
145
|
|
146
146
|
describe '#stop' do
|
147
147
|
context 'when container is running' do
|
148
|
-
before { subject.
|
148
|
+
before { allow(subject).to receive(:running?).and_return(true) }
|
149
149
|
|
150
150
|
it 'stops the container' do
|
151
|
-
subject.
|
151
|
+
expect(subject).to receive(:execute).with('docker', 'stop', '-t', '1', cid)
|
152
152
|
subject.stop(cid, 1)
|
153
153
|
end
|
154
154
|
|
155
155
|
it "stops the container with the set timeout" do
|
156
|
-
subject.
|
156
|
+
expect(subject).to receive(:execute).with('docker', 'stop', '-t', '5', cid)
|
157
157
|
subject.stop(cid, 5)
|
158
158
|
end
|
159
159
|
end
|
160
160
|
|
161
161
|
context 'when container is not running' do
|
162
|
-
before { subject.
|
162
|
+
before { allow(subject).to receive(:running?).and_return(false) }
|
163
163
|
|
164
164
|
it 'does not stop container' do
|
165
|
-
subject.
|
165
|
+
expect(subject).to_not receive(:execute).with('docker', 'stop', '-t', '1', cid)
|
166
166
|
subject.stop(cid, 1)
|
167
167
|
end
|
168
168
|
end
|
@@ -170,19 +170,19 @@ describe VagrantPlugins::DockerProvider::Driver do
|
|
170
170
|
|
171
171
|
describe '#rm' do
|
172
172
|
context 'when container has been created' do
|
173
|
-
before { subject.
|
173
|
+
before { allow(subject).to receive(:created?).and_return(true) }
|
174
174
|
|
175
175
|
it 'removes the container' do
|
176
|
-
subject.
|
176
|
+
expect(subject).to receive(:execute).with('docker', 'rm', '-f', '-v', cid)
|
177
177
|
subject.rm(cid)
|
178
178
|
end
|
179
179
|
end
|
180
180
|
|
181
181
|
context 'when container has not been created' do
|
182
|
-
before { subject.
|
182
|
+
before { allow(subject).to receive(:created?).and_return(false) }
|
183
183
|
|
184
184
|
it 'does not attempt to remove the container' do
|
185
|
-
subject.
|
185
|
+
expect(subject).to_not receive(:execute).with('docker', 'rm', '-f', '-v', cid)
|
186
186
|
subject.rm(cid)
|
187
187
|
end
|
188
188
|
end
|
@@ -191,10 +191,10 @@ describe VagrantPlugins::DockerProvider::Driver do
|
|
191
191
|
describe '#inspect_container' do
|
192
192
|
let(:data) { '[{"json": "value"}]' }
|
193
193
|
|
194
|
-
before { subject.
|
194
|
+
before { allow(subject).to receive(:execute).and_return(data) }
|
195
195
|
|
196
196
|
it 'inspects the container' do
|
197
|
-
subject.
|
197
|
+
expect(subject).to receive(:execute).with('docker', 'inspect', cid)
|
198
198
|
subject.inspect_container(cid)
|
199
199
|
end
|
200
200
|
|
@@ -206,10 +206,10 @@ describe VagrantPlugins::DockerProvider::Driver do
|
|
206
206
|
describe '#all_containers' do
|
207
207
|
let(:containers) { "container1\ncontainer2" }
|
208
208
|
|
209
|
-
before { subject.
|
209
|
+
before { allow(subject).to receive(:execute).and_return(containers) }
|
210
210
|
|
211
211
|
it 'returns an array of all known containers' do
|
212
|
-
subject.
|
212
|
+
expect(subject).to receive(:execute).with('docker', 'ps', '-a', '-q', '--no-trunc')
|
213
213
|
expect(subject.all_containers).to eq(['container1', 'container2'])
|
214
214
|
end
|
215
215
|
end
|
@@ -217,10 +217,10 @@ describe VagrantPlugins::DockerProvider::Driver do
|
|
217
217
|
describe '#docker_bridge_ip' do
|
218
218
|
let(:containers) { " inet 123.456.789.012/16 " }
|
219
219
|
|
220
|
-
before { subject.
|
220
|
+
before { allow(subject).to receive(:execute).and_return(containers) }
|
221
221
|
|
222
222
|
it 'returns an array of all known containers' do
|
223
|
-
subject.
|
223
|
+
expect(subject).to receive(:execute).with('/sbin/ip', '-4', 'addr', 'show', 'scope', 'global', 'docker0')
|
224
224
|
expect(subject.docker_bridge_ip).to eq('123.456.789.012')
|
225
225
|
end
|
226
226
|
end
|
@@ -9,7 +9,7 @@ describe VagrantPlugins::DockerProvider::SyncedFolder do
|
|
9
9
|
let(:machine) { double("machine") }
|
10
10
|
|
11
11
|
before do
|
12
|
-
machine.
|
12
|
+
allow(machine).to receive(:provider_name).and_return(:docker)
|
13
13
|
end
|
14
14
|
|
15
15
|
it "is usable" do
|
@@ -17,12 +17,12 @@ describe VagrantPlugins::DockerProvider::SyncedFolder do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
it "is not usable if provider isn't docker" do
|
20
|
-
machine.
|
20
|
+
allow(machine).to receive(:provider_name).and_return(:virtualbox)
|
21
21
|
expect(subject).to_not be_usable(machine)
|
22
22
|
end
|
23
23
|
|
24
24
|
it "raises an error if bad provider if specified" do
|
25
|
-
machine.
|
25
|
+
allow(machine).to receive(:provider_name).and_return(:virtualbox)
|
26
26
|
expect { subject.usable?(machine, true) }.
|
27
27
|
to raise_error(VagrantPlugins::DockerProvider::Errors::SyncedFolderNonDocker)
|
28
28
|
end
|
@@ -12,63 +12,63 @@ describe VagrantPlugins::HyperV::Provider do
|
|
12
12
|
before do
|
13
13
|
stub_const("Vagrant::Util::Platform", platform)
|
14
14
|
stub_const("Vagrant::Util::PowerShell", powershell)
|
15
|
-
machine.
|
16
|
-
platform.
|
17
|
-
platform.
|
18
|
-
platform.
|
19
|
-
powershell.
|
15
|
+
allow(machine).to receive(:id).and_return("foo")
|
16
|
+
allow(platform).to receive(:windows?).and_return(true)
|
17
|
+
allow(platform).to receive(:windows_admin?).and_return(true)
|
18
|
+
allow(platform).to receive(:windows_hyperv_admin?).and_return(true)
|
19
|
+
allow(powershell).to receive(:available?).and_return(true)
|
20
20
|
end
|
21
21
|
|
22
22
|
describe ".usable?" do
|
23
23
|
subject { described_class }
|
24
24
|
|
25
25
|
it "returns false if not windows" do
|
26
|
-
platform.
|
26
|
+
allow(platform).to receive(:windows?).and_return(false)
|
27
27
|
expect(subject).to_not be_usable
|
28
28
|
end
|
29
29
|
|
30
30
|
it "returns false if neither an admin nor a hyper-v admin" do
|
31
|
-
platform.
|
32
|
-
platform.
|
31
|
+
allow(platform).to receive(:windows_admin?).and_return(false)
|
32
|
+
allow(platform).to receive(:windows_hyperv_admin?).and_return(false)
|
33
33
|
expect(subject).to_not be_usable
|
34
34
|
end
|
35
35
|
|
36
36
|
it "returns true if not an admin but is a hyper-v admin" do
|
37
|
-
platform.
|
38
|
-
platform.
|
37
|
+
allow(platform).to receive(:windows_admin?).and_return(false)
|
38
|
+
allow(platform).to receive(:windows_hyperv_admin?).and_return(true)
|
39
39
|
expect(subject).to be_usable
|
40
40
|
end
|
41
41
|
|
42
42
|
it "returns false if powershell is not available" do
|
43
|
-
powershell.
|
43
|
+
allow(powershell).to receive(:available?).and_return(false)
|
44
44
|
expect(subject).to_not be_usable
|
45
45
|
end
|
46
46
|
|
47
47
|
it "raises an exception if not windows" do
|
48
|
-
platform.
|
48
|
+
allow(platform).to receive(:windows?).and_return(false)
|
49
49
|
|
50
50
|
expect { subject.usable?(true) }.
|
51
51
|
to raise_error(VagrantPlugins::HyperV::Errors::WindowsRequired)
|
52
52
|
end
|
53
53
|
|
54
54
|
it "raises an exception if neither an admin nor a hyper-v admin" do
|
55
|
-
platform.
|
56
|
-
platform.
|
55
|
+
allow(platform).to receive(:windows_admin?).and_return(false)
|
56
|
+
allow(platform).to receive(:windows_hyperv_admin?).and_return(false)
|
57
57
|
|
58
58
|
expect { subject.usable?(true) }.
|
59
59
|
to raise_error(VagrantPlugins::HyperV::Errors::AdminRequired)
|
60
60
|
end
|
61
61
|
|
62
62
|
it "raises an exception if neither an admin nor a hyper-v admin" do
|
63
|
-
platform.
|
64
|
-
platform.
|
63
|
+
allow(platform).to receive(:windows_admin?).and_return(false)
|
64
|
+
allow(platform).to receive(:windows_hyperv_admin?).and_return(false)
|
65
65
|
|
66
66
|
expect { subject.usable?(true) }.
|
67
67
|
to raise_error(VagrantPlugins::HyperV::Errors::AdminRequired)
|
68
68
|
end
|
69
69
|
|
70
70
|
it "raises an exception if powershell is not available" do
|
71
|
-
powershell.
|
71
|
+
allow(powershell).to receive(:available?).and_return(false)
|
72
72
|
|
73
73
|
expect { subject.usable?(true) }.
|
74
74
|
to raise_error(VagrantPlugins::HyperV::Errors::PowerShellRequired)
|
@@ -83,13 +83,13 @@ describe VagrantPlugins::HyperV::Provider do
|
|
83
83
|
|
84
84
|
describe "#state" do
|
85
85
|
it "returns not_created if no ID" do
|
86
|
-
machine.
|
86
|
+
allow(machine).to receive(:id).and_return(nil)
|
87
87
|
|
88
88
|
expect(subject.state.id).to eq(:not_created)
|
89
89
|
end
|
90
90
|
|
91
91
|
it "calls an action to determine the ID" do
|
92
|
-
machine.
|
92
|
+
allow(machine).to receive(:id).and_return("foo")
|
93
93
|
expect(machine).to receive(:action).with(:read_state).
|
94
94
|
and_return({ machine_state_id: :bar })
|
95
95
|
|
@@ -13,7 +13,7 @@ describe VagrantPlugins::ProviderVirtualBox::Action::NetworkFixIPv6 do
|
|
13
13
|
|
14
14
|
let(:machine) do
|
15
15
|
iso_env.machine(iso_env.machine_names[0], :dummy).tap do |m|
|
16
|
-
m.provider.
|
16
|
+
allow(m.provider).to receive(:driver).and_return(driver)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -45,7 +45,7 @@ describe VagrantPlugins::ProviderVirtualBox::Action::NetworkFixIPv6 do
|
|
45
45
|
.and_return(private_network: { ip: 'fe:80::' })
|
46
46
|
allow(UDPSocket).to receive(:new).with(Socket::AF_INET6)
|
47
47
|
.and_return(socket)
|
48
|
-
socket.
|
48
|
+
allow(socket).to receive(:connect)
|
49
49
|
end
|
50
50
|
|
51
51
|
it "only checks the interfaces associated with the VM" do
|
@@ -15,7 +15,7 @@ describe VagrantPlugins::ProviderVirtualBox::Action::Network do
|
|
15
15
|
|
16
16
|
let(:machine) do
|
17
17
|
iso_env.machine(iso_env.machine_names[0], :virtualbox).tap do |m|
|
18
|
-
m.provider.
|
18
|
+
allow(m.provider).to receive(:driver).and_return(driver)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -15,7 +15,7 @@ describe VagrantPlugins::ProviderVirtualBox::Action::PrepareNFSSettings do
|
|
15
15
|
|
16
16
|
let(:machine) do
|
17
17
|
iso_env.machine(iso_env.machine_names[0], :dummy).tap do |m|
|
18
|
-
m.provider.
|
18
|
+
allow(m.provider).to receive(:driver).and_return(driver)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -33,8 +33,8 @@ describe VagrantPlugins::ProviderVirtualBox::Action::PrepareNFSSettings do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
it "calls the next action in the chain" do
|
36
|
-
driver.
|
37
|
-
driver.
|
36
|
+
allow(driver).to receive(:read_network_interfaces).and_return({2 => {type: :hostonly, hostonly: "vmnet2"}})
|
37
|
+
allow(driver).to receive(:read_host_only_interfaces).and_return([{name: "vmnet2", ip: "1.2.3.4"}])
|
38
38
|
allow(driver).to receive(:read_guest_ip).with(1).and_return("2.3.4.5")
|
39
39
|
|
40
40
|
called = false
|
@@ -47,20 +47,22 @@ describe VagrantPlugins::ProviderVirtualBox::Action::PrepareNFSSettings do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
context "with an nfs synced folder" do
|
50
|
+
let(:host_only_interfaces) {
|
51
|
+
[{name: "vmnet2", ip: "1.2.3.4"}]
|
52
|
+
}
|
53
|
+
|
50
54
|
before do
|
51
55
|
# We can't be on Windows, because NFS gets disabled on Windows
|
52
|
-
Vagrant::Util::Platform.
|
56
|
+
allow(Vagrant::Util::Platform).to receive(:windows?).and_return(false)
|
53
57
|
|
54
58
|
env[:machine].config.vm.synced_folder("/host/path", "/guest/path", type: "nfs")
|
55
59
|
env[:machine].config.finalize!
|
56
60
|
|
57
61
|
# Stub out the stuff so it just works by default
|
58
|
-
driver.
|
62
|
+
allow(driver).to receive(:read_network_interfaces).and_return({
|
59
63
|
2 => {type: :hostonly, hostonly: "vmnet2"},
|
60
64
|
})
|
61
|
-
driver.
|
62
|
-
{name: "vmnet2", ip: "1.2.3.4"},
|
63
|
-
])
|
65
|
+
allow(driver).to receive(:read_host_only_interfaces).and_return(host_only_interfaces)
|
64
66
|
allow(driver).to receive(:read_guest_ip).with(1).and_return("2.3.4.5")
|
65
67
|
|
66
68
|
# override sleep to 0 so test does not take seconds
|
@@ -68,6 +70,30 @@ describe VagrantPlugins::ProviderVirtualBox::Action::PrepareNFSSettings do
|
|
68
70
|
allow(subject).to receive(:retry_options).and_return(retry_options.merge(sleep: 0))
|
69
71
|
end
|
70
72
|
|
73
|
+
context "with host interface netmask defined" do
|
74
|
+
context "with machine IP included within host interface range" do
|
75
|
+
let(:host_only_interfaces) {
|
76
|
+
[{name: "vmnet2", ip: "2.3.4.1", netmask: "255.255.255.0"}]
|
77
|
+
}
|
78
|
+
|
79
|
+
it "sets nfs_host_ip and nfs_machine_ip properly" do
|
80
|
+
subject.call(env)
|
81
|
+
|
82
|
+
expect(env[:nfs_host_ip]).to eq("2.3.4.1")
|
83
|
+
expect(env[:nfs_machine_ip]).to eq("2.3.4.5")
|
84
|
+
end
|
85
|
+
end
|
86
|
+
context "with machine IP included within host interface range" do
|
87
|
+
let(:host_only_interfaces) {
|
88
|
+
[{name: "vmnet2", ip: "1.2.3.4", netmask: "255.255.255.0"}]
|
89
|
+
}
|
90
|
+
|
91
|
+
it "raises an error when the machine IP is not within host interface range" do
|
92
|
+
expect{ subject.call(env) }.to raise_error(Vagrant::Errors::NFSNoHostonlyNetwork)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
71
97
|
it "sets nfs_host_ip and nfs_machine_ip properly" do
|
72
98
|
subject.call(env)
|
73
99
|
|
@@ -13,7 +13,7 @@ describe VagrantPlugins::ProviderVirtualBox::Action::PrepareNFSValidIds do
|
|
13
13
|
|
14
14
|
let(:machine) do
|
15
15
|
iso_env.machine(iso_env.machine_names[0], :dummy).tap do |m|
|
16
|
-
m.provider.
|
16
|
+
allow(m.provider).to receive(:driver).and_return(driver)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -24,7 +24,7 @@ describe VagrantPlugins::ProviderVirtualBox::Action::PrepareNFSValidIds do
|
|
24
24
|
subject { described_class.new(app, env) }
|
25
25
|
|
26
26
|
before do
|
27
|
-
driver.
|
27
|
+
allow(driver).to receive(:read_vms).and_return({})
|
28
28
|
end
|
29
29
|
|
30
30
|
it "calls the next action in the chain" do
|
@@ -39,7 +39,7 @@ describe VagrantPlugins::ProviderVirtualBox::Action::PrepareNFSValidIds do
|
|
39
39
|
|
40
40
|
it "sets nfs_valid_ids" do
|
41
41
|
hash = {"foo" => "1", "bar" => "4"}
|
42
|
-
driver.
|
42
|
+
allow(driver).to receive(:read_vms).and_return(hash)
|
43
43
|
|
44
44
|
subject.call(env)
|
45
45
|
|
@@ -14,8 +14,8 @@ describe VagrantPlugins::ProviderVirtualBox::Cap do
|
|
14
14
|
|
15
15
|
let(:machine) do
|
16
16
|
iso_env.machine(iso_env.machine_names[0], :dummy).tap do |m|
|
17
|
-
m.provider.
|
18
|
-
m.
|
17
|
+
allow(m.provider).to receive(:driver).and_return(driver)
|
18
|
+
allow(m).to receive(:state).and_return(state)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -25,10 +25,10 @@ describe VagrantPlugins::ProviderVirtualBox::Config do
|
|
25
25
|
|
26
26
|
before do
|
27
27
|
vm_config = double("vm_config")
|
28
|
-
vm_config.
|
28
|
+
allow(vm_config).to receive(:networks).and_return([])
|
29
29
|
config = double("config")
|
30
|
-
config.
|
31
|
-
machine.
|
30
|
+
allow(config).to receive(:vm).and_return(vm_config)
|
31
|
+
allow(machine).to receive(:config).and_return(config)
|
32
32
|
end
|
33
33
|
|
34
34
|
its "valid by default" do
|
@@ -39,10 +39,10 @@ describe VagrantPlugins::ProviderVirtualBox::Config do
|
|
39
39
|
context "defaults" do
|
40
40
|
before { subject.finalize! }
|
41
41
|
|
42
|
-
it { expect(subject.check_guest_additions).to
|
43
|
-
it { expect(subject.gui).to
|
42
|
+
it { expect(subject.check_guest_additions).to be(true) }
|
43
|
+
it { expect(subject.gui).to be(false) }
|
44
44
|
it { expect(subject.name).to be_nil }
|
45
|
-
it { expect(subject.functional_vboxsf).to
|
45
|
+
it { expect(subject.functional_vboxsf).to be(true) }
|
46
46
|
|
47
47
|
it "should have one NAT adapter" do
|
48
48
|
expect(subject.network_adapters).to eql({
|