Changes to support license
This commit is contained in:
parent
6ef629a869
commit
2ea0842a6c
12 changed files with 35 additions and 31 deletions
|
|
@ -90,10 +90,9 @@ shared_examples 'xpack::init' do |es_version|
|
|||
|
||||
#Test if x-pack is activated
|
||||
describe 'x-pack activation' do
|
||||
it 'should be activated with the license uid '+ENV["ES_XPACK_LICENSE_UID"] do
|
||||
command = command('curl -s localhost:9200/_xpack/license?pretty=true -u es_admin:changeMe')
|
||||
expect(command.stdout).to match(active)
|
||||
expect(command.stdout).to match(ENV["ES_XPACK_LICENSE_UID"])
|
||||
it 'should be activated and valid' do
|
||||
command = command('curl -s localhost:9200/_license?pretty=true -u es_admin:changeMe')
|
||||
expect(command.stdout).to match('"status" : "active"')
|
||||
expect(command.exit_status).to eq(0)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue