Master is called master and node is called node
This commit is contained in:
parent
f53e639797
commit
433ed7f5e3
1 changed files with 2 additions and 5 deletions
|
|
@ -53,17 +53,14 @@ shared_examples 'multi::init' do |vars|
|
|||
#test we started on the correct port was used for master
|
||||
describe 'master started' do
|
||||
it 'master node should be running', :retry => 3, :retry_wait => 10 do
|
||||
expect(curl_json('http://localhost:9200')['name']).to eq('localhost-node1')
|
||||
expect(command.exit_status).to eq(0)
|
||||
expect(curl_json('http://localhost:9200')['name']).to eq('localhost-master')
|
||||
end
|
||||
end
|
||||
|
||||
#test we started on the correct port was used for node 1
|
||||
describe 'node1 started' do
|
||||
it 'node should be running', :retry => 3, :retry_wait => 10 do
|
||||
command = command('curl "localhost:9201" | grep name')
|
||||
#expect(command.stdout).should match '/*node1_localhost*/'
|
||||
expect(command.exit_status).to eq(0)
|
||||
expect(curl_json('http://localhost:9201')['name']).to eq('localhost-node1')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue