From 700f7f1d222ffe85905484a366a3fe033cab2e59 Mon Sep 17 00:00:00 2001 From: Elliot Schleglemilch Date: Thu, 11 Jul 2024 21:10:59 +0000 Subject: [PATCH] also update versions in tests. --- spec/classes/letsencrypt_spec.rb | 4 ++-- spec/classes/plugin/dns_cloudflare_spec.rb | 2 +- spec/classes/plugin/dns_rfc2136_spec.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/classes/letsencrypt_spec.rb b/spec/classes/letsencrypt_spec.rb index 1abe1252..b26fee8a 100644 --- a/spec/classes/letsencrypt_spec.rb +++ b/spec/classes/letsencrypt_spec.rb @@ -74,9 +74,9 @@ is_expected.to contain_package('letsencrypt').with(name: 'certbot').with_ensure('installed') is_expected.to contain_file('/etc/letsencrypt').with(ensure: 'directory') elsif facts[:operatingsystem] == 'FreeBSD' - is_expected.to contain_class('letsencrypt::install').with(package_name: 'py39-certbot') + is_expected.to contain_class('letsencrypt::install').with(package_name: 'py311-certbot') is_expected.to contain_class('letsencrypt').with(package_command: 'certbot') - is_expected.to contain_package('letsencrypt').with(name: 'py39-certbot').with_ensure('installed') + is_expected.to contain_package('letsencrypt').with(name: 'py311-certbot').with_ensure('installed') is_expected.to contain_file('/usr/local/etc/letsencrypt').with(ensure: 'directory') else is_expected.to contain_class('letsencrypt::install') diff --git a/spec/classes/plugin/dns_cloudflare_spec.rb b/spec/classes/plugin/dns_cloudflare_spec.rb index bfe4cf1c..29e87f05 100644 --- a/spec/classes/plugin/dns_cloudflare_spec.rb +++ b/spec/classes/plugin/dns_cloudflare_spec.rb @@ -18,7 +18,7 @@ class { 'letsencrypt': if %w[Debian RedHat].include?(facts[:os]['family']) 'python3-certbot-dns-cloudflare' elsif %w[FreeBSD].include?(facts[:os]['family']) - 'py39-certbot-dns-cloudflare' + 'py311-certbot-dns-cloudflare' end end diff --git a/spec/classes/plugin/dns_rfc2136_spec.rb b/spec/classes/plugin/dns_rfc2136_spec.rb index e9e7ddfe..15be0f23 100644 --- a/spec/classes/plugin/dns_rfc2136_spec.rb +++ b/spec/classes/plugin/dns_rfc2136_spec.rb @@ -17,7 +17,7 @@ class { 'letsencrypt': let(:package_name) do case facts[:os]['family'] when 'FreeBSD' - 'py39-certbot-dns-rfc2136' + 'py11-certbot-dns-rfc2136' when 'OpenBSD' '' else