Sha256: e2ef293b3f3f4a21f666c2c662ea0cddfc8867e0ba08732c4659f937d09f4607
Contents?: true
Size: 971 Bytes
Versions: 2
Compression:
Stored size: 971 Bytes
Contents
# SPDX-License-Identifier: Apache-2.0 # See NOTICE for attribution details. # Modifications Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. require "logstash/devutils/rspec/spec_helper" require "logstash/outputs/amazon_es/http_client" require "java" require "json" describe LogStash::Outputs::AmazonElasticSearch::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
2 entries across 2 versions & 1 rubygems