From b925020b45235a2f37b362f5d66f237b76e27c5e Mon Sep 17 00:00:00 2001 From: david22swan Date: Wed, 22 Nov 2023 15:04:16 +0000 Subject: [PATCH] (CAT-1601) Update Puppet test version --- package-testing/spec/package/airgapped_usage_spec.rb | 4 ++-- package-testing/spec/package/support/spec_utils.rb | 1 + package-testing/spec/package/validate_a_new_module_spec.rb | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) 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