Follow up to #15900 -- fix remaining acceptance tests (#15907)

PR#15900 missed a few more places where Logstash is installed but
a working minimal pipeline config is added.
This commit fixes that and stabilizes all acceptance tests, thus
minizing the need for time consuming BK retries of corresponding
steps.

Relates #15900
Relates https://github.com/elastic/logstash/issues/15784
This commit is contained in:
Dimitrios Liappis 2024-02-15 11:33:17 +02:00 committed by GitHub
parent eedccea33f
commit 54f73e5d22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 14 additions and 0 deletions

View file

@ -22,6 +22,7 @@ describe "artifacts composition" do
before(:each) do
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
end
after(:each) do

View file

@ -22,6 +22,7 @@ require "fileutils"
shared_examples "logstash generate" do |logstash|
before(:each) do
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
end
after(:each) do

View file

@ -22,6 +22,7 @@ require "fileutils"
shared_examples "logstash install" do |logstash|
before(:each) do
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
end
after(:each) do

View file

@ -24,6 +24,7 @@ shared_examples "integration plugins compatible" do |logstash|
let(:plugin) { "logstash-integration-rabbitmq" }
before :each do
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
end
after :each do
@ -60,6 +61,7 @@ shared_examples "integration plugins compatible" do |logstash|
let(:plugin) { "logstash-integration-rabbitmq" }
before :each do
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
end
after :each do
@ -83,6 +85,7 @@ shared_examples "integration plugins compatible" do |logstash|
let(:plugin) { "logstash-integration-rabbitmq" }
before :each do
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
end
after :each do

View file

@ -23,6 +23,7 @@ shared_examples "logstash list" do |logstash|
describe "logstash-plugin list on [#{logstash.human_name}]" do
before(:all) do
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
end
after(:all) do

View file

@ -23,6 +23,7 @@ shared_examples "logstash remove" do |logstash|
describe "logstash-plugin remove on [#{logstash.human_name}]" do
before :each do
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
end
after :each do

View file

@ -23,6 +23,7 @@ shared_examples "logstash uninstall" do |logstash|
describe "logstash-plugin uninstall on [#{logstash.human_name}]" do
before :each do
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
end
after :each do

View file

@ -22,6 +22,7 @@ shared_examples "logstash update" do |logstash|
describe "logstash-plugin update on [#{logstash.human_name}]" do
before :each do
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
end
after :each do

View file

@ -22,6 +22,7 @@ shared_examples "logstash version" do |logstash|
describe "logstash --version" do
before :all do
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
end
after :all do

View file

@ -22,6 +22,7 @@ require 'logstash/version'
RSpec.shared_examples "runnable" do |logstash|
before(:each) do
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
end
it "is running on [#{logstash.human_name}]" do

View file

@ -37,12 +37,14 @@ RSpec.shared_examples "updated" do |logstash, from_release_branch|
logstash.download(url, dest)
options = {:version => latest_logstash_release_version, :snapshot => false, :base => "./", :skip_jdk_infix => false }
logstash.install(options)
logstash.write_default_pipeline
end
it "can be updated and run on [#{logstash.human_name}]" do
expect(logstash).to be_installed
# Performing the update
logstash.install({:version => LOGSTASH_VERSION})
logstash.write_default_pipeline
expect(logstash).to be_installed
# starts the service to be sure it runs after the upgrade
with_running_logstash_service(logstash) do