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-4.3.2 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-4.2.0.preview lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-4.1.4.preview lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.9.3 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.9.0 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.7.11 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.7.11 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.7.1 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.7.1 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.6.6 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.6.6 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.6.4 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.6.4 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-2.3.28 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-2.3.28 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.6.2 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.6.2 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.5.0 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-3.5.0 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb
inspec-core-3.4.1 lib/plugins/inspec-plugin-manager-cli/test/unit/plugin_def_test.rb