Skip to content

Commit 7f2b0d7

Browse files
Merge pull request #1201 from puppetlabs/MAINT-fix_test_puppet_versions
2 parents 8f8e63a + 2c45751 commit 7f2b0d7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

spec/acceptance/version_changer_spec.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
end
2222
end
2323

24-
%w[7.3.0 6.19.1].each do |puppet_version|
24+
%w[7.22.0 6.29.0].each do |puppet_version|
2525
context "when requesting --puppet-version #{puppet_version}" do
2626
describe command("pdk validate --puppet-version #{puppet_version}") do
2727
its(:exit_status) { is_expected.to eq(0) }
@@ -34,13 +34,16 @@
3434
end
3535
end
3636

37-
{ '2019.8.4' => '6.19.1' }.each do |pe_version, puppet_version|
38-
context "when requesting --pe-version #{pe_version}" do
37+
# PE mapping test have been marked as pending due to an issue with concurrent-ruby versions in
38+
# older Puppet gems. This is being tracked and will be resolved in a future version.
39+
{ '2021.7.1' => '7.20.0' }.each do |pe_version, puppet_version|
40+
xcontext "when requesting --pe-version #{pe_version}" do
3941
describe command("pdk validate --pe-version #{pe_version}") do
4042
its(:exit_status) { is_expected.to eq(0) }
4143
end
4244

4345
describe file('Gemfile.lock') do
46+
its(:exit_status) { is_expected.to eq(0) }
4447
it { is_expected.to exist }
4548
its(:content) { is_expected.to match(%r{^\s+puppet \(#{Regexp.escape(puppet_version)}(\)|-)}im) }
4649
end

0 commit comments

Comments
 (0)