more resilient testing of logging level setting

Fixes #11230
This commit is contained in:
Joao Duarte 2019-10-17 12:27:12 +01:00 committed by João Duarte
parent 391169b3d7
commit 472d333ad9

View file

@ -129,10 +129,10 @@ describe "Test Monitoring API" do
result = logstash_service.monitoring_api.logging_get
result["loggers"].each do | k, v |
#since we explicitly set the logstash.agent logger above, the logger.logstash parent logger will not take precedence
if k.eql?("logstash.agent") || k.start_with?("org.logstash") || k.eql?("org.reflections.Reflections")
expect(v).to eq("INFO")
else
if !k.eql?("logstash.agent") && (k.start_with?("logstash") || k.start_with?("slowlog"))
expect(v).to eq("ERROR")
else
expect(v).to eq("INFO")
end
end