
Several changes to deprecate the MidoNet's zookeeper module. Deric's Zookeeper: https://github.com/deric/puppet-zookeeper Is well mantained and it has much more functionality. So the commit replaces the dependencies and sets some changes to adapt to the new module. I have kept the ::midonet::zookeeper manifest to maintain backwards compatiblity with tools that use MidoNet 2015.01 version. So the ::midonet::zookeeper manifest is just a gangway to the actual's deric one now. Change-Id: I6e6ebe8c9fea2e3d3195d9890b1c89362bd23d58
14 lines
373 B
Ruby
14 lines
373 B
Ruby
require 'spec_helper'
|
|
|
|
input = [{'id' => '1', 'host' => 'host1'},
|
|
{'id' => '2', 'host' => 'host2'}]
|
|
output = ['host1', 'host2']
|
|
|
|
input2 = {'id' => '1', 'host' => 'host1'}
|
|
output2 = ['host1']
|
|
|
|
describe 'zookeeper_servers' do
|
|
it { is_expected.to run.with_params(input).and_return(output) }
|
|
it { is_expected.to run.with_params(input2).and_return(output2) }
|
|
end
|