Sha256: 48ea3395d980804d68dc42df9fb5ede0cd14ecc9f6e735e707eb8071174aeb36
Contents?: true
Size: 1.25 KB
Versions: 8
Compression:
Stored size: 1.25 KB
Contents
# Licensed to Elasticsearch B.V under one or more agreements. # Elasticsearch B.V licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information require 'spec_helper' describe 'client.nodes#shutdown' do let(:expected_args) do [ 'POST', url, params, nil, nil ] end let(:url) do '_cluster/nodes/_shutdown' end it 'performs the request' do expect(client_double.nodes.shutdown).to eq({}) end let(:params) do {} end context 'when the node id is specified' do let(:url) do '_cluster/nodes/foo/_shutdown' end it 'performs the request' do expect(client_double.nodes.shutdown(node_id: 'foo')).to eq({}) end end context 'when multiple node ids are specified as a list' do let(:url) do '_cluster/nodes/A,B,C/_shutdown' end it 'performs the request' do expect(client_double.nodes.shutdown(node_id: ['A', 'B', 'C'])).to eq({}) end end context 'when multiple node ids are specified as a String' do let(:url) do '_cluster/nodes/A,B,C/_shutdown' end it 'performs the request' do expect(client_double.nodes.shutdown(node_id: 'A,B,C')).to eq({}) end end end
Version data entries
8 entries across 8 versions & 1 rubygems