Skip to content

Commit

Permalink
fix(opensuse): fix repo key parameter
Browse files Browse the repository at this point in the history
Also, fix tests for the different RedHat's family members
  • Loading branch information
javierbertoli committed Feb 4, 2022
1 parent b6a28fe commit 7bba14a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion postgres/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Suse:
humanname: PostgreSQL {{ repo.version }} $releasever - $basearch
# works for postgres 11 onwards
baseurl: 'https://download.postgresql.org/pub/repos/zypp/{{ repo.version }}/suse/sles-$releasever-$basearch'
key_url: 'https://download.postgresql.org/pub/repos/zypp/{{ repo.version }}/suse/sles-$releasever-$basearch/repodata/repomd.xml.key'
gpgkey: 'https://download.postgresql.org/pub/repos/zypp/{{ repo.version }}/suse/sles-$releasever-$basearch/repodata/repomd.xml.key'
gpgcheck: 1
gpgautoimport: True

Expand Down
10 changes: 8 additions & 2 deletions test/integration/repo/controls/repository.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# frozen_string_literal: true

case platform.family
when 'redhat'
when 'redhat', 'fedora'
repo_file = '/etc/yum.repos.d/pgdg13.repo'
repo_url = 'https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-$releasever-$basearch'
os_name_repo_url = {
'amazon' => 'https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-7-$basearch',
'fedora' => 'https://download.postgresql.org/pub/repos/yum/13/fedora/fedora-$releasever-$basearch',
'default' => 'https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-$releasever-$basearch'
}
repo_url = os_name_repo_url[platform.name]

when 'debian'
# Inspec does not provide a `codename` matcher, so we add ours
finger_codename = {
Expand Down

0 comments on commit 7bba14a

Please sign in to comment.