test fix: don't use stdin for blocking pipeline

Fixes #8961
This commit is contained in:
Jake Landis 2018-01-16 13:38:53 -06:00
parent 86bf8dbb37
commit 60c883fcf7

View file

@ -53,7 +53,7 @@ describe "Test that Logstash" do
it "expands secret store variables from settings" do it "expands secret store variables from settings" do
test_env["LOGSTASH_KEYSTORE_PASS"] = "keystore_pa9454w3rd" test_env["LOGSTASH_KEYSTORE_PASS"] = "keystore_pa9454w3rd"
@logstash.env_variables = test_env @logstash.env_variables = test_env
@logstash.spawn_logstash("-e", "input {stdin {}} output { }", "--path.settings", settings_dir) @logstash.spawn_logstash("-e", "input {heartbeat {}} output { }", "--path.settings", settings_dir)
@logstash.wait_for_logstash @logstash.wait_for_logstash
Stud.try(num_retries.times, [StandardError, RSpec::Expectations::ExpectationNotMetError]) do Stud.try(num_retries.times, [StandardError, RSpec::Expectations::ExpectationNotMetError]) do
result = @logstash.monitoring_api.node_stats rescue nil result = @logstash.monitoring_api.node_stats rescue nil