Skip to content

Commit

Permalink
[CLIENT] Change the transport integration test to use "found" instead…
Browse files Browse the repository at this point in the history
… of "exists"

Related: elastic/elasticsearch@2cb40fc
  • Loading branch information
karmi committed Jan 7, 2014
1 parent d6c9c96 commit d540aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elasticsearch-transport/test/integration/client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ class Elasticsearch::Transport::ClientIntegrationTest < Elasticsearch::Test::Int
@client.perform_request 'GET', '_cluster/health?wait_for_status=green', {}

response = @client.perform_request 'GET', 'myindex/mydoc/1?routing=XYZ'
assert_equal true, response.body['exists']
assert_equal true, response.body['found']
assert_equal 'bar', response.body['_source']['foo']
assert_raise Elasticsearch::Transport::Transport::Errors::NotFound do
response = @client.perform_request 'GET', 'myindex/mydoc/1?routing=ABC'
assert_nil response.body['_source']
assert_equal false, response.body['exists']
assert_equal false, response.body['found']
end
end

Expand Down

0 comments on commit d540aa6

Please sign in to comment.