* [meta] refactor kitchen tests This commit update kitchen tests to match important feature to test: - default: test a deployment with all default values - license: test a deployment with a license and default values - trial: test a deployment with security enabled and trial license - oss: test a deployment with oss version and default values (6.x only) - upgrade: test an upgrade from a previous version - oss-upgrade: test an upgrade with oss version (6.x only) - oss-to-default-upgrade: test an upgrade from previous oss to latest default version - custom_config: test a deployment with custom config files - security: test a deployment with security enabled * [meta] fix license test
20 lines
619 B
Ruby
20 lines
619 B
Ruby
require 'spec_helper'
|
|
require 'shared_spec'
|
|
|
|
shared_examples 'custom_config::init' do |vars|
|
|
describe file("/etc/elasticsearch/log4j2.properties") do
|
|
it { should be_file }
|
|
it { should be_owned_by 'root' }
|
|
it { should contain 'Log4j CUSTOM FILE' }
|
|
end
|
|
describe file("/etc/elasticsearch/jvm.options") do
|
|
it { should be_file }
|
|
it { should be_owned_by 'root' }
|
|
it { should contain 'JVM configuration CUSTOM FILE' }
|
|
end
|
|
describe file($family['defaults_path']) do
|
|
it { should be_file }
|
|
it { should be_owned_by 'root' }
|
|
it { should contain 'Elasticsearch CUSTOM FILE' }
|
|
end
|
|
end
|