Skip to content

Commit 1f0d9a1

Browse files
odyreidmv
authored andcommitted
Update tests to reflect new supported PE range
1 parent faeeaf7 commit 1f0d9a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/functions/assert_supported_pe_version_spec.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
describe 'peadm::assert_supported_pe_version' do
66
context 'invalid PE versions' do
77
it 'rejects PE versions that are too new' do
8-
is_expected.to run.with_params('2021.1.0').and_raise_error(Puppet::ParseError, %r{This\ version\ of\ the})
8+
is_expected.to run.with_params('2035.0.0').and_raise_error(Puppet::ParseError, %r{This\ version\ of\ the})
99
end
1010

1111
it 'rejects PE versions that are too old' do
@@ -18,12 +18,12 @@
1818
is_expected.to run.with_params('2019.7.0').and_return({ 'supported' => true })
1919
end
2020

21-
it 'accepts the newest supported version number' do
22-
is_expected.to run.with_params('2021.0.0').and_return({ 'supported' => true })
21+
it 'accepts the newest supported version' do
22+
is_expected.to run.with_params('2021.2.1').and_return({ 'supported' => true })
2323
end
2424

2525
it 'accepts a version in the middle' do
26-
is_expected.to run.with_params('2019.8.4').and_return({ 'supported' => true })
26+
is_expected.to run.with_params('2019.8.7').and_return({ 'supported' => true })
2727
end
2828
end
2929
end

0 commit comments

Comments
 (0)