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.10.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.9.3-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.9.2-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.9.1-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.9.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.8.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.7.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.6.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.5.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.4.1-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.4.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.3.3-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.3.2-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.3.1-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.3.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.2.3-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.2.2-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.2.1-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.2.0-java spec/unit/outputs/license_check_spec.rb
logstash-output-elasticsearch-11.1.0-java spec/unit/outputs/license_check_spec.rb