Sha256: 8945e620f4936d3514c6c32b080c2f55c5eb6acdb5a566f28e1ead63e2f3ad0c

Contents?: true

Size: 1.02 KB

Versions: 12

Compression:

Stored size: 1.02 KB

Contents

require "vagrant-spec/acceptance/output"

module Vagrant
  module Spec
    # Default plugins within plugin list when run mode
    # is set as "plugin"
    DEFAULT_PLUGINS = ["vagrant-share".freeze].freeze

    # Tests the Vagrant plugin list output has no plugins
    OutputTester[:plugin_list_none] = lambda do |text|
      text =~ /^No plugins/
    end

    # Tests that plugin list shows a plugin
    OutputTester[:plugin_list_plugin] = lambda do |text, name, version|
      text =~ /^#{name} \(#{version}\)$/
    end

    # Tests that Vagrant plugin install fails to a plugin not found
    OutputTester[:plugin_install_not_found] = lambda do |text, name|
      text =~ /Unable to resolve dependency:.* '#{name}/
    end

    # Tests that Vagrant plugin install fails to a plugin not found
    OutputTester[:plugin_installed] = lambda do |text, name, version|
      if version.nil?
        text =~ /^Installed the plugin '#{name} \(/
      else
        text =~ /^Installed the plugin '#{name} \(#{version}\)'/
      end
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/output/plugin_output.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/output/plugin_output.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/output/plugin_output.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/output/plugin_output.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/output/plugin_output.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/output/plugin_output.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/output/plugin_output.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/output/plugin_output.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/output/plugin_output.rb
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/output/plugin_output.rb
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/output/plugin_output.rb
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/acceptance/output/plugin_output.rb