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