File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 233
233
"class {'postgresql::server':}"
234
234
end
235
235
236
- it { is_expected . to compile . and_raise_error ( /parameter 'object_name' variant 0 expects size to be 2, got 1/ ) }
236
+ if Puppet ::Util ::Package . versioncmp ( Puppet . version , '5.2.0' ) >= 0
237
+ it { is_expected . to compile . and_raise_error ( /parameter 'object_name' variant 1 expects size to be 2, got 1/ ) }
238
+ else
239
+ it { is_expected . to compile . and_raise_error ( /parameter 'object_name' variant 0 expects size to be 2, got 1/ ) }
240
+ end
237
241
end
238
242
239
243
context 'invalid object_name - too many array elements' do
251
255
"class {'postgresql::server':}"
252
256
end
253
257
254
- it { is_expected . to compile . and_raise_error ( /parameter 'object_name' variant 0 expects size to be 2, got 3/ ) }
258
+ if Puppet ::Util ::Package . versioncmp ( Puppet . version , '5.2.0' ) >= 0
259
+ it { is_expected . to compile . and_raise_error ( /parameter 'object_name' variant 1 expects size to be 2, got 3/ ) }
260
+ else
261
+ it { is_expected . to compile . and_raise_error ( /parameter 'object_name' variant 0 expects size to be 2, got 3/ ) }
262
+ end
255
263
end
256
-
257
264
end
You can’t perform that action at this time.
0 commit comments