Add the RVM gpg keys in the formula to prevent keyserver's errors
[arvados-formula.git] / test / integration / repo / controls / repo_spec.rb
index 33caf8f7e9bee9992145579de151aa8eae255e37..17f1d5e8cc161e1614861d8a3037457e700dfbcb 100644 (file)
@@ -1,12 +1,26 @@
 # frozen_string_literal: true
 
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
 case os[:name]
 when 'centos'
   repo_file = '/etc/yum.repos.d/arvados.repo'
   repo_url = 'baseurl=http://rpm.arvados.org/CentOS/$releasever/os/$basearch/'
-when 'debian', 'ubuntu'
+when 'debian'
+  repo_file = '/etc/apt/sources.list.d/arvados.list'
+  repo_url = 'deb http://apt.arvados.org/buster buster main'
+when 'ubuntu'
   repo_file = '/etc/apt/sources.list.d/arvados.list'
-  repo_url = 'deb http://apt.arvados.org buster main'
+  repo_url = case platform[:release].to_f.truncate
+             when 20
+               'focal'
+             when 18
+               'bionic'
+             when 16
+               'xenial'
+             end
 end
 
 control 'arvados repository' do