spec/outputs/http_spec.rb in logstash-output-http-4.1.0 vs spec/outputs/http_spec.rb in logstash-output-http-4.2.0

- old
+ new

@@ -285,19 +285,25 @@ "pool_max" => 1, "mapping" => { "host" => "X %{foo}", "event" => { "user" => "Y %{user}" - } + }, + "arrayevent" => [{ + "user" => "Z %{user}" + }] } } } let(:expected_body) { LogStash::Json.dump({ "host" => "X #{event.get("foo")}", "event" => { "user" => "Y #{event.get("user")}" - } + }, + "arrayevent" => [{ + "user" => "Z #{event.get("user")}" + }] }) } let(:expected_content_type) { "application/json" } include_examples("a received event")