puppet-midonet/spec/functions/zookeeper_servers_spec.rb
Alex Ruiz Estradera ae34c22f65 Add ZK servers SPEC test
Change-Id: I505cfc6044e2c209bc9c4de1876910581b3b63b4
2016-07-18 11:40:55 +02:00

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