Sha256: 7d396f7199d11e66afb1f5d49b3c0cdac7b70a37b9e666e6245dfd1a2e38a784

Contents?: true

Size: 696 Bytes

Versions: 16

Compression:

Stored size: 696 Bytes

Contents

# encoding: utf-8
require_relative "../../spec_helper"
require "sinatra"
require "logstash/api/modules/plugins"
require "logstash/json"

describe LogStash::Api::Modules::Plugins do
  include_context "api setup"

  extend ResourceDSLMethods

  before(:all) do
    do_request { get "/" }
  end

  let(:payload) { LogStash::Json.load(last_response.body) }

  describe "retrieving plugins" do
    it "should return OK" do
      expect(last_response).to be_ok
    end

    it "should return a list of plugins" do      
      expect(payload["plugins"]).to be_a(Array)
    end

    it "should return the total number of plugins" do
      expect(payload["total"]).to be_a(Numeric)
    end
    
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/spec/api/lib/api/node_plugins_spec.rb
logstash-filter-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/spec/api/lib/api/node_plugins_spec.rb
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/spec/api/lib/api/node_plugins_spec.rb
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/spec/api/lib/api/node_plugins_spec.rb
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/spec/api/lib/api/node_plugins_spec.rb
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/spec/api/lib/api/node_plugins_spec.rb
logstash-filter-base64-1.0.1 vendor/bundle/jruby/2.3.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/spec/api/lib/api/node_plugins_spec.rb
logstash-filter-base64-1.0.0 vendor/bundle/jruby/2.3.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/spec/api/lib/api/node_plugins_spec.rb
logstash-core-5.0.0.alpha6.snapshot5-java spec/api/lib/api/node_plugins_spec.rb
logstash-core-5.0.0.alpha6.snapshot4-java spec/api/lib/api/node_plugins_spec.rb
logstash-core-5.0.0.alpha6.snapshot3-java spec/api/lib/api/node_plugins_spec.rb
logstash-core-5.0.0.alpha6.snapshot2-java spec/api/lib/api/node_plugins_spec.rb
logstash-core-5.0.0.alpha6.snapshot1-java spec/api/lib/api/node_plugins_spec.rb
logstash-core-5.0.0.alpha5.snapshot1-java spec/api/lib/api/node_plugins_spec.rb
logstash-core-5.0.0.alpha4.snapshot3-java spec/api/lib/api/node_plugins_spec.rb
logstash-core-5.0.0.alpha4.snapshot2-java spec/api/lib/api/node_plugins_spec.rb