puppet-tripleo/spec/functions/tripleo_swift_devices_spec.rb
Alex Schultz 4a576293c1 Update parser functions to 4.x api
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
2018-10-29 14:26:54 +00:00

14 lines
389 B
Ruby

require 'spec_helper'
describe 'tripleo_swift_devices' do
it {
should run.with_params('r1z1-', ['192.168.1.12', '192.168.1.13'], [':%PORT%/device1', ':%PORT%/device2'])
.and_return([
'r1z1-192.168.1.12:%PORT%/device1',
'r1z1-192.168.1.12:%PORT%/device2',
'r1z1-192.168.1.13:%PORT%/device1',
'r1z1-192.168.1.13:%PORT%/device2',
])
}
end