Sha256: 06b84547185d6608367ba2ee373d0b590530b167a6deb3823096ba6af6a1d917

Contents?: true

Size: 825 Bytes

Versions: 46

Compression:

Stored size: 825 Bytes

Contents

require "logstash/devutils/rspec/spec_helper"
require "logstash/outputs/elasticsearch/http_client"
require "logstash/outputs/elasticsearch/license_checker"

describe LogStash::Outputs::ElasticSearch::LicenseChecker do

  # Note that the actual license checking logic is spec'ed in pool_spec.rb

  context "LicenseChecker API required by Pool class" do
    subject { described_class }

    it "defines the appropriate_license? methods" do
      expect(subject.instance_methods).to include(:appropriate_license?)
    end
  end

  context "Pool class API required by the LicenseChecker" do
    subject { LogStash::Outputs::ElasticSearch::HttpClient::Pool }

    it "contains the get_license method" do
      expect(LogStash::Outputs::ElasticSearch::HttpClient::Pool.instance_methods).to include(:get_license)
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
logstash-output-elasticsearch-11.4.2-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.15.9-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.15.8-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.15.7-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.15.6-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.15.5-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.15.4-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.15.2-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.15.1-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.15.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.14.1-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.14.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.13.1-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.13.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.12.4-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.12.3-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.12.2-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.12.1-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.12.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.11.0-java spec/unit/outputs/license_check_spec.rb