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 233233 "class {'postgresql::server':}"
234234 end
235235
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
237241 end
238242
239243 context 'invalid object_name - too many array elements' do
251255 "class {'postgresql::server':}"
252256 end
253257
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
255263 end
256-
257264end
You can’t perform that action at this time.
0 commit comments