diff --git a/package-testing/spec/package/airgapped_usage_spec.rb b/package-testing/spec/package/airgapped_usage_spec.rb index 30cce91c1..afd2e022d 100644 --- a/package-testing/spec/package/airgapped_usage_spec.rb +++ b/package-testing/spec/package/airgapped_usage_spec.rb @@ -28,8 +28,8 @@ end context 'when validating the module' do - context 'with puppet 7.x' do - puppet_version = '7.x' + context 'with puppet 8.x' do + puppet_version = '8.x' let(:ruby_version) { ruby_for_puppet(puppet_version) } describe command("pdk validate --puppet-version=#{puppet_version}") do diff --git a/package-testing/spec/package/support/spec_utils.rb b/package-testing/spec/package/support/spec_utils.rb index 741df7efa..3a53b43ec 100644 --- a/package-testing/spec/package/support/spec_utils.rb +++ b/package-testing/spec/package/support/spec_utils.rb @@ -52,6 +52,7 @@ def ruby_for_puppet(pupver) when /^5\./ then '2.4.*' when /^6\./ then '2.5.*' when /^7\./ then '2.7.*' + when /^8\./ then '3.2.*' end return unless ruby_pattern diff --git a/package-testing/spec/package/validate_a_new_module_spec.rb b/package-testing/spec/package/validate_a_new_module_spec.rb index 3992fb189..77aa1b371 100644 --- a/package-testing/spec/package/validate_a_new_module_spec.rb +++ b/package-testing/spec/package/validate_a_new_module_spec.rb @@ -18,8 +18,8 @@ end context 'when validating the module' do - context 'with puppet 7.x' do - puppet_version = '7.x' + context 'with puppet 8.x' do + puppet_version = '8.x' let(:ruby_version) { ruby_for_puppet(puppet_version) } describe command("pdk validate --puppet-version=#{puppet_version}") do