mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
not use elasticsearch input in test as this is present in branches that already had one release
Fixes #5107
This commit is contained in:
parent
9f7fe0d4e5
commit
5285f07f35
1 changed files with 4 additions and 4 deletions
|
@ -25,10 +25,10 @@ describe LogStash::Registry do
|
|||
end
|
||||
|
||||
it "should raise an error if can not find the plugin class" do
|
||||
expect(LogStash::Registry::Plugin).to receive(:new).with("input", "elasticsearch").and_return(plugin)
|
||||
expect(plugin).to receive(:path).and_return("logstash/input/elasticsearch").twice
|
||||
expect(LogStash::Registry::Plugin).to receive(:new).with("input", "elastic").and_return(plugin)
|
||||
expect(plugin).to receive(:path).and_return("logstash/input/elastic").twice
|
||||
expect(plugin).to receive(:installed?).and_return(true)
|
||||
expect { registry.lookup("input", "elasticsearch") }.to raise_error(LoadError)
|
||||
expect { registry.lookup("input", "elastic") }.to raise_error(LoadError)
|
||||
end
|
||||
|
||||
it "should load from registry is already load" do
|
||||
|
@ -49,7 +49,7 @@ describe LogStash::Registry do
|
|||
|
||||
context "when plugin is not installed and not defined" do
|
||||
it "should raise an error" do
|
||||
expect { registry.lookup("input", "elasticsearch") }.to raise_error(LoadError)
|
||||
expect { registry.lookup("input", "elastic") }.to raise_error(LoadError)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue