Skip to content

Commit 209bfc0

Browse files
committed
Update test and remove reference to get_aliases endpoint
1 parent 263cb55 commit 209bfc0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

elasticsearch-extensions/test/ansi/unit/ansi_test.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ class Elasticsearch::Extensions::AnsiTest < Elasticsearch::Test::UnitTestCase
2424
@client = Elasticsearch::Client.new
2525
@client.stubs(:perform_request).returns \
2626
Elasticsearch::Transport::Transport::Response.new(200, { "ok" => true, "status" => 200, "name" => "Hit-Maker",
27-
"version" => { "number" => "0.90.7",
28-
"build_hash" => "abc123",
29-
"build_timestamp"=>"2013-11-13T12:06:54Z", "build_snapshot"=>false, "lucene_version"=>"4.5.1" },
30-
"tagline"=>"You Know, for Search" })
27+
"version" => { "number" => "0.90.7",
28+
"build_hash" => "abc123",
29+
"build_timestamp"=>"2013-11-13T12:06:54Z", "build_snapshot"=>false, "lucene_version"=>"4.5.1" },
30+
"tagline"=>"You Know, for Search" })
3131
end
3232

3333
should "wrap the response" do
@@ -47,7 +47,7 @@ class Elasticsearch::Extensions::AnsiTest < Elasticsearch::Test::UnitTestCase
4747
should "call the 'awesome_inspect' method when available and no handler found" do
4848
@client.stubs(:perform_request).returns \
4949
Elasticsearch::Transport::Transport::Response.new(200, {"index-1"=>{"aliases"=>{}}})
50-
response = @client.indices.get_aliases
50+
response = @client.cat.aliases
5151

5252
response.instance_eval do
5353
def awesome_inspect; "---PRETTY---"; end
@@ -58,7 +58,7 @@ def awesome_inspect; "---PRETTY---"; end
5858
should "call `to_s` method when no pretty printer or handler found" do
5959
@client.stubs(:perform_request).returns \
6060
Elasticsearch::Transport::Transport::Response.new(200, {"index-1"=>{"aliases"=>{}}})
61-
response = @client.indices.get_aliases
61+
response = @client.cat.aliases
6262

6363
assert_equal '{"index-1"=>{"aliases"=>{}}}', response.to_ansi
6464
end

0 commit comments

Comments
 (0)