File tree 1 file changed +3
-13
lines changed
test/integration/repo/controls
1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 18
18
repo_file = os_name_repo_file [ platform . name ]
19
19
20
20
when 'debian'
21
- # Inspec does not provide a `codename` matcher, so we add ours
22
- finger_codename = {
23
- 'ubuntu-18.04' => 'bionic' ,
24
- 'ubuntu-20.04' => 'focal' ,
25
- 'debian-9' => 'stretch' ,
26
- 'debian-10' => 'buster' ,
27
- 'debian-11' => 'bullseye'
28
- }
29
- codename = finger_codename [ system . platform [ :finger ] ]
30
-
31
21
repo_keyring = '/usr/share/postgresql-common/pgdg/apt.postgresql.org.gpg'
32
22
repo_file = '/etc/apt/sources.list.d/pgdg.list'
33
- # rubocop:disable Metrics /LineLength
34
- repo_url = "deb [signed-by=#{ repo_keyring } ] http://apt.postgresql.org/pub/repos/apt #{ codename } -pgdg main"
35
- # rubocop:enable Metrics /LineLength
23
+ # rubocop:disable Layout /LineLength
24
+ repo_url = "deb [signed-by=#{ repo_keyring } ] http://apt.postgresql.org/pub/repos/apt #{ system . platform [ : codename] } -pgdg main"
25
+ # rubocop:enable Layout /LineLength
36
26
end
37
27
38
28
control 'Postgresql repository keyring' do
You can’t perform that action at this time.
0 commit comments