Fix 'cleanup' step to properly delete all data.

In elasticsearch 1.0, the "DELETE /" request is now rejected by default.
So instead, we will "DELETE /*"
This commit is contained in:
Jordan Sissel 2014-01-21 11:59:38 -08:00
parent e9219cdc18
commit 06899c3940

View file

@ -176,7 +176,7 @@ describe "outputs/elasticsearch_http" do
before :each do
require "elasticsearch"
@es = Elasticsearch::Client.new
@es.indices.delete
@es.indices.delete(:index => "*")
subject.receive(LogStash::Event.new("message" => "sample message here"))
subject.receive(LogStash::Event.new("somevalue" => 100))