From d4ab2df2a62168ee31ec1f143cf42e996ecfbe18 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Thu, 16 Nov 2023 19:43:15 +0100 Subject: [PATCH 1/2] Fix tests Co-Authored-By: Eric D. Helms --- spec/classes/pulpcore_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/classes/pulpcore_spec.rb b/spec/classes/pulpcore_spec.rb index 4507a1c8..9f1f76e0 100644 --- a/spec/classes/pulpcore_spec.rb +++ b/spec/classes/pulpcore_spec.rb @@ -386,7 +386,7 @@ it do is_expected.to compile.with_all_deps is_expected.to contain_class('pulpcore::repo') - is_expected.to contain_file('/etc/yum.repos.d/pulpcore.repo').that_notifies('Class[pulpcore::install]') + is_expected.to contain_yumrepo('pulpcore').that_notifies('Class[pulpcore::install]') end end From 15079d346241b7e6368be02c00fdf2ed4d071a6a Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 17 Nov 2023 09:30:10 +0100 Subject: [PATCH 2/2] use descr not name for the nice name --- manifests/repo.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/repo.pp b/manifests/repo.pp index a22e7abe..a3807323 100644 --- a/manifests/repo.pp +++ b/manifests/repo.pp @@ -15,7 +15,7 @@ $dist_tag = "el${facts['os']['release']['major']}" yumrepo { 'pulpcore': - name => "Pulpcore ${version}", + descr => "Pulpcore ${version}", baseurl => pick($baseurl, "https://yum.theforeman.org/pulpcore/${version}/${dist_tag}/\$basearch"), enabled => '1', gpgcheck => if $gpgkey == '' { '0' } else { '1' },