Move all shared tests into the shared test helper

This commit is contained in:
Michael Russell 2018-06-19 21:17:10 +02:00
parent 9673fe4679
commit c325ff79fa
No known key found for this signature in database
GPG key ID: A90C1696496085FE
25 changed files with 205 additions and 611 deletions

View file

@ -1,12 +1,4 @@
require 'spec_helper'
shared_examples 'oss_to_xpack_upgrade::init' do |vars|
describe 'version check' do
it 'should be reported as version '+vars['es_version'] do
expect(curl_json('http://localhost:9200', username='elastic', password='changeme')['version']['number']).to eq(vars['es_version'])
end
it 'should be be running the standard (xpack) version' do
expect(curl_json('http://localhost:9200/_xpack', username='elastic', password='changeme')['tagline']).to eq('You know, for X')
end
end
end