1 # frozen_string_literal: true
3 # Copyright (C) The Arvados Authors. All rights reserved.
5 # SPDX-License-Identifier: Apache-2.0
7 control 'ruby bundler package' do
8 title 'should not be installed'
10 describe package('ruby-bundler') do
11 it { should_not be_installed }
13 describe package('bundler') do
14 it { should_not be_installed }
18 control 'arvados api package' do
19 title 'should be installed'
21 describe package('arvados-api-server') do
22 it { should be_installed }
26 control 'RVM dependencies' do
27 title 'should be installed'
29 only_if("Forced requirement for RedHat's family") do
48 describe package(p) do
49 it { should be_installed }
54 control 'RVM ruby manager' do
55 title 'should be installed'
57 only_if('Forced requirement for Centos-7, Ubuntu-18.04 and Debian-10') do
58 (os.redhat? and platform[:release].to_f.truncate == 7) or
59 (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18) or
60 (os.name == 'debian' and platform[:release].to_f.truncate == 10)
63 describe command('/usr/local/rvm/bin/rvm list') do
64 its(:exit_status) { should eq 0 }
65 its('stdout') { should match(/ruby-2.7.2/) }
69 control 'arvados cli gem' do
70 title 'should be installed'
72 only_if('Skipped in Centos-7, Ubuntu-18.04 and Debian-10') do
73 !((os.redhat? and platform[:release].to_f.truncate == 7) or
74 (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18) or
75 (os.name == 'debian' and platform[:release].to_f.truncate == 10))
78 describe gem('arvados-cli') do
79 it { should be_installed }
83 control 'RVM arvados cli gem' do
84 title 'should be installed'
86 only_if('Forced requirement for Centos-7, Ubuntu-18.04 and Debian-10') do
87 (os.redhat? and platform[:release].to_f.truncate == 7) or
88 (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18) or
89 (os.name == 'debian' and platform[:release].to_f.truncate == 10)
92 describe gem('arvados-cli', '/usr/local/rvm/bin/rvm all do gem') do
93 it { should be_installed }