34 lines
889 B
Ruby
34 lines
889 B
Ruby
require 'spec_helper_acceptance'
|
|
|
|
describe 'midonet::analytics class' do
|
|
context 'with mandatory parameters (default params not overwritten)' do
|
|
# Using puppet_apply as a helper
|
|
it 'should install the midonet analytics without any errors' do
|
|
pp = <<-EOS
|
|
class { 'midonet::analytics':
|
|
is_mem => false,
|
|
manage_repo => false,
|
|
mem_username => undef,
|
|
mem_password => undef,
|
|
zookeeper_hosts => [{ 'ip' => '127.0.0.1', 'port' => '2181' }],
|
|
}
|
|
EOS
|
|
|
|
# Run it twice and test for idempotency
|
|
expect(apply_manifest(pp).exit_code).to_not eq(1)
|
|
expect(apply_manifest(pp).exit_code).to eq(0)
|
|
end
|
|
|
|
describe package('logstash') do
|
|
it { should be_installed }
|
|
end
|
|
|
|
describe package('elasticsearch') do
|
|
it { should be_installed }
|
|
end
|
|
end
|
|
|
|
context
|
|
|
|
end
|