Sha256: c1fc45448dc81c2cfb3c81b1a2381cb8ca5aff1f3b659bfee93c8367f7dd26ad
Contents?: true
Size: 957 Bytes
Versions: 2
Compression:
Stored size: 957 Bytes
Contents
require 'test_helper' module Elasticsearch module Test class ClusterNodeHotThreadsTest < ::Test::Unit::TestCase context "Cluster: Node hot threads" do subject { FakeClient.new } should "perform correct request" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal 'GET', method assert_equal '_cluster/nodes/hot_threads', url assert_equal Hash.new, params assert_nil body true end.returns(FakeResponse.new) subject.cluster.node_hot_threads end should "send :node_id correctly" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal '_cluster/nodes/foo/hot_threads', url true end.returns(FakeResponse.new) subject.cluster.node_hot_threads :node_id => 'foo' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elasticsearch-api-0.4.0 | test/unit/cluster/node_hot_threads_test.rb |
elasticsearch-api-0.0.2 | test/unit/cluster/node_hot_threads_test.rb |