Add specific tests in the plugin manager acceptance test for --no-verify flag

Fixes #5538
This commit is contained in:
Pere Urbon-Bayes 2016-06-29 12:46:42 +02:00
parent 8bf0afbd4e
commit a82fe85197

View file

@ -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