Sha256: ba868722bb7143a22433bdac193057dbc366b9d044e61d93d406501f4b697208

Contents?: true

Size: 940 Bytes

Versions: 53

Compression:

Stored size: 940 Bytes

Contents

require_relative '../../../shared/core_plugin_test_helper.rb'

#-----------------------------------------------------------------------#
# Plugin Definition
#-----------------------------------------------------------------------#
class PluginManagerCliDefinitionTests < MiniTest::Test
  include CorePluginUnitHelper

  def test_plugin_registered
    loader = Inspec::Plugin::V2::Loader.new
    loader.load_all # We want to ensure it is auto-loaded

    assert registry.known_plugin?(:'inspec-plugin-manager-cli'), 'inspec-plugin-manager-cli should be registered'
    assert registry.loaded_plugin?(:'inspec-plugin-manager-cli'), 'inspec-plugin-manager-cli should be loaded'

    status = registry[:'inspec-plugin-manager-cli']
    assert_equal 2, status.api_generation, 'inspec-plugin-manager-cli should be v2'
    assert_includes status.plugin_types, :cli_command, 'inspec-plugin-manager-cli should have cli_command activators'
  end
end

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
inspec-3.4.1 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.3.14 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.3.14 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.2.6 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.2.6 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.1.3 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.1.3 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.0.64 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.0.64 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.0.61 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.0.61 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.0.52 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.0.52 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.0.46 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.0.46 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.0.25 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.0.25 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.0.12 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.0.12 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.0.9 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb