X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/0e514df65ddf408108d9e986f85ea584a8916627..44506de8d5acbdd35b4d1f56c7a1a46085c7c7cf:/test/integration/repo/controls/repo_spec.rb diff --git a/test/integration/repo/controls/repo_spec.rb b/test/integration/repo/controls/repo_spec.rb index 601119f..49078c6 100644 --- a/test/integration/repo/controls/repo_spec.rb +++ b/test/integration/repo/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} 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} 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