
This change updates additional parser functions we have to use teh puppet 4.x function api. This includes some basic unit tests to ensure they continue to function as expected. Change-Id: Iebeb82b2890216bed139219441718fffc4004391 Related-Bug: #1799786
12 lines
268 B
Ruby
12 lines
268 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'list_to_hash' do
|
|
it {
|
|
should run.with_params(['192.168.0.1:5000', '192.168.0.2:5000'], ['transparent'])
|
|
.and_return({
|
|
'192.168.0.1:5000' => ['transparent'],
|
|
'192.168.0.2:5000' => ['transparent'],
|
|
})
|
|
}
|
|
end
|