17750: Add postgresql dependencies for RVM in Centos 7
[arvados-formula.git] / test / integration / api / controls / packages_spec.rb
1 # frozen_string_literal: true
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: Apache-2.0
5
6 control 'arvados api package' do
7   title 'should be installed'
8
9   describe package('arvados-api-server') do
10     it { should be_installed }
11   end
12 end
13
14 control 'arvados cli gem' do
15   title 'should be installed'
16
17   describe gem('arvados-cli') do
18     it { should be_installed }
19   end
20 end
21
22 control 'RVM and dependencies' do
23   title 'should be installed'
24
25   only_if("Forced requirement for RedHat's family") do
26     os.redhat?
27   end
28
29   %w[
30     centos-release-scl
31     curl
32     gcc
33     git
34     libcurl
35     libcurl-devel
36     libxml2
37     libxml2-devel
38     make
39     pam-devel
40     postgresql12-libs
41     python3-devel
42     rubygem-bundler
43     zlib-devel
44   ].each do |p|
45     describe package(p) do
46       it { should be_installed }
47     end
48   end
49   describe command('/usr/local/rvm/bin/rvm list') do
50     its(:exit_status) { should eq 0 }
51     its('stdout') { should match (/ruby-2.5.8/) }
52   end
53 end