Sha256: 82723241bffb55283c5763a08d2e0f2bbc032edc2bf4646cee057052dea8c1ce
Contents?: true
Size: 821 Bytes
Versions: 31
Compression:
Stored size: 821 Bytes
Contents
require "logstash/devutils/rspec/spec_helper" require "logstash/outputs/elasticsearch/http_client" require "java" require "json" describe LogStash::Outputs::ElasticSearch::TemplateManager do describe ".default_template_path" do context "elasticsearch 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 "elasticsearch 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 "elasticsearch 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
31 entries across 31 versions & 2 rubygems