X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/cc86cd81cffdd76884a37518d8f9ea73228f90bf..96e114d93f94f56275bcddd03f03e29a00f7a3e3:/test/integration/shell/controls/repo_spec.rb diff --git a/test/integration/shell/controls/repo_spec.rb b/test/integration/shell/controls/repo_spec.rb index a9dc3cb..0f097fe 100644 --- a/test/integration/shell/controls/repo_spec.rb +++ b/test/integration/shell/controls/repo_spec.rb @@ -23,7 +23,23 @@ when 'debian', 'ubuntu' codename = 'bullseye' end repo_file = '/etc/apt/sources.list.d/arvados.list' - repo_url = "deb http://apt.arvados.org/#{codename} #{codename}-dev main" + repo_keyring = '/usr/share/keyrings/arvados-archive-keyring.gpg' + repo_url = "deb [signed-by=/usr/share/keyrings/arvados-archive-keyring.gpg arch=amd64] http://apt.arvados.org/#{codename} #{codename}-dev main" +end + +control 'arvados repository keyring' do + title 'should be installed' + + only_if('Requirement for Debian family') do + platform.family == 'debian' + end + + describe file(repo_keyring) do + it { should exist } + it { should be_owned_by 'root' } + it { should be_grouped_into 'root' } + its('mode') { should cmp '0644' } + end end control 'arvados repository' do