Master is called master and node is called node

This commit is contained in:
Michael Russell 2018-06-19 17:20:48 +02:00
parent f53e639797
commit 433ed7f5e3
No known key found for this signature in database
GPG key ID: A90C1696496085FE

View file

@ -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