mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Add specific tests in the plugin manager acceptance test for --no-verify flag
Fixes #5538
This commit is contained in:
parent
8bf0afbd4e
commit
a82fe85197
1 changed files with 12 additions and 0 deletions
|
@ -32,12 +32,24 @@ shared_examples "logstash install" do |logstash|
|
|||
end
|
||||
|
||||
context "when fetching a gem from rubygems" do
|
||||
|
||||
it "successfully install the plugin" do
|
||||
command = logstash.run_command_in_path("bin/logstash-plugin install logstash-filter-qatest")
|
||||
expect(command).to install_successfully
|
||||
expect(logstash).to have_installed?("logstash-filter-qatest")
|
||||
end
|
||||
|
||||
it "successfully install the plugin when verification is disabled" do
|
||||
command = logstash.run_command_in_path("bin/logstash-plugin install --no-verify logstash-filter-qatest")
|
||||
expect(command).to install_successfully
|
||||
expect(logstash).to have_installed?("logstash-filter-qatest")
|
||||
end
|
||||
|
||||
it "fails when installing a non logstash plugin" do
|
||||
command = logstash.run_command_in_path("bin/logstash-plugin install bundler")
|
||||
expect(command).not_to install_successfully
|
||||
end
|
||||
|
||||
it "allow to install a specific version" do
|
||||
command = logstash.run_command_in_path("bin/logstash-plugin install --no-verify --version 0.1.0 logstash-filter-qatest")
|
||||
expect(command).to install_successfully
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue