We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcfdff7 commit a16b51fCopy full SHA for a16b51f
spec/unit/type/logical_volume_spec.rb
@@ -185,6 +185,19 @@
185
}.not_to raise_error
186
end
187
188
+ it 'raises an ArgumentError when the physical volume is neither string nor array' do
189
+ expect {
190
+ resource = Puppet::Type.type(:logical_volume).new(
191
+ name: 'john',
192
+ ensure: :present,
193
+ volume_group: 'ernie',
194
+ size: '10M',
195
+ physical_volume: 42,
196
+ )
197
+ }.to raise_error(Puppet::ResourceError,
198
+ 'physical_volume should be String or Array: 42')
199
+ end
200
+
201
it 'invalid number of stripes raises error' do
202
expect {
203
resource = Puppet::Type.type(:logical_volume).new(
0 commit comments