Update ruby version used with RVM on Centos 7
[arvados-formula.git] / test / integration / api / controls / packages_spec.rb
index 25641d35d4ec6c1c72e1cc26c61308c07e07009e..804b2746a587631c6644b942f08b498b85c32a4c 100644 (file)
@@ -1,5 +1,9 @@
 # frozen_string_literal: true
 
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
 control 'arvados api package' do
   title 'should be installed'
 
@@ -7,3 +11,43 @@ control 'arvados api package' do
     it { should be_installed }
   end
 end
+
+control 'arvados cli gem' do
+  title 'should be installed'
+
+  describe gem('arvados-cli') do
+    it { should be_installed }
+  end
+end
+
+control 'RVM and dependencies' do
+  title 'should be installed'
+
+  only_if("Forced requirement for RedHat's family") do
+    os.redhat?
+  end
+
+  %w[
+    centos-release-scl
+    curl
+    gcc
+    git
+    libcurl
+    libcurl-devel
+    libxml2
+    libxml2-devel
+    make
+    pam-devel
+    postgresql12-libs
+    python3-devel
+    zlib-devel
+  ].each do |p|
+    describe package(p) do
+      it { should be_installed }
+    end
+  end
+  describe command('/usr/local/rvm/bin/rvm list') do
+    its(:exit_status) { should eq 0 }
+    its('stdout') { should match(/ruby-2.7.2/) }
+  end
+end