1 # frozen_string_literal: true
3 # Copyright (C) The Arvados Authors. All rights reserved.
5 # SPDX-License-Identifier: Apache-2.0
7 control 'arvados api package' do
8 title 'should be installed'
10 describe package('arvados-api-server') do
11 it { should be_installed }
15 control 'RVM dependencies' do
16 title 'should be installed'
18 only_if("Forced requirement for RedHat's family") do
37 describe package(p) do
38 it { should be_installed }
43 control 'RVM ruby manager' do
44 title 'should be installed'
46 only_if('Forced requirement for Centos-7, Ubuntu-18.04 and Debian-10') do
47 (os.redhat? and platform[:release].to_f.truncate == 7) or
48 (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18) or
49 (os.name == 'debian' and platform[:release].to_f.truncate == 10)
52 describe command('/usr/local/rvm/bin/rvm list') do
53 its(:exit_status) { should eq 0 }
54 its('stdout') { should match(/ruby-2.7.2/) }
58 control 'arvados cli gem' do
59 title 'should be installed'
61 only_if('Skipped in Centos-7, Ubuntu-18.04 and Debian-10') do
62 !((os.redhat? and platform[:release].to_f.truncate == 7) or
63 (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18) or
64 (os.name == 'debian' and platform[:release].to_f.truncate == 10))
67 describe gem('arvados-cli') do
68 it { should be_installed }
72 control 'RVM arvados cli gem' do
73 title 'should be installed'
75 only_if('Forced requirement for Centos-7, Ubuntu-18.04 and Debian-10') do
76 (os.redhat? and platform[:release].to_f.truncate == 7) or
77 (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18) or
78 (os.name == 'debian' and platform[:release].to_f.truncate == 10)
81 describe gem('arvados-cli', '/usr/local/rvm/bin/rvm all do gem') do
82 it { should be_installed }