Sha256: 3fd635d1a110ccadfcf72f2c0bd04d61dc9005fee4f2540ba44cae76d3cbb667

Contents?: true

Size: 805 Bytes

Versions: 4

Compression:

Stored size: 805 Bytes

Contents

require "logstash/devutils/rspec/spec_helper"
require "logstash/outputs/amazon_es/http_client"
require "java"
require "json"

describe LogStash::Outputs::ElasticSearch::TemplateManager do

  describe ".default_template_path" do
    context "amazon_es 1.x" do
      it "chooses the 2x template" do
        expect(described_class.default_template_path(1)).to match(/elasticsearch-template-es2x.json/)
      end
    end
    context "amazon_es 2.x" do
      it "chooses the 2x template" do
        expect(described_class.default_template_path(2)).to match(/elasticsearch-template-es2x.json/)
      end
    end
    context "amazon_es 5.x" do
      it "chooses the 5x template" do
        expect(described_class.default_template_path(5)).to match(/elasticsearch-template-es5x.json/)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
logstash-output-amazon_es-7.0-java spec/unit/outputs/elasticsearch/template_manager_spec.rb
logstash-output-amazon_es-6.4.2-java spec/unit/outputs/elasticsearch/template_manager_spec.rb
logstash-output-amazon_es-6.4.1-java spec/unit/outputs/elasticsearch/template_manager_spec.rb
logstash-output-amazon_es-6.4.0-java spec/unit/outputs/elasticsearch/template_manager_spec.rb