18642: ruby-bundler should not be installed
[arvados-formula.git] / test / integration / api / controls / packages_spec.rb
index 969bf0752f16052d8ac2d5c28d68cd163a2ed002..1653b588159f37a68a3acdb6655689faf9388c21 100644 (file)
@@ -4,6 +4,17 @@
 #
 # SPDX-License-Identifier: Apache-2.0
 
+control 'ruby bundler package' do
+  title 'should not be installed'
+
+  describe package('ruby-bundler') do
+    it { should_not be_installed }
+  end
+  describe package('bundler') do
+    it { should_not be_installed }
+  end
+end
+
 control 'arvados api package' do
   title 'should be installed'
 
@@ -43,9 +54,10 @@ end
 control 'RVM ruby manager' do
   title 'should be installed'
 
-  only_if('Forced requirement for Centos-7 and Ubuntu-18.04') do
+  only_if('Forced requirement for Centos-7, Ubuntu-18.04 and Debian-10') do
     (os.redhat? and platform[:release].to_f.truncate == 7) or
-      (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18)
+      (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18) or
+      (os.name == 'debian' and platform[:release].to_f.truncate == 10)
   end
 
   describe command('/usr/local/rvm/bin/rvm list') do
@@ -57,9 +69,10 @@ end
 control 'arvados cli gem' do
   title 'should be installed'
 
-  only_if('Skipped in Centos-7 and Ubuntu-18.04') do
+  only_if('Skipped in Centos-7, Ubuntu-18.04 and Debian-10') do
     !((os.redhat? and platform[:release].to_f.truncate == 7) or
-    (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18))
+    (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18) or
+    (os.name == 'debian' and platform[:release].to_f.truncate == 10))
   end
 
   describe gem('arvados-cli') do
@@ -70,9 +83,10 @@ end
 control 'RVM arvados cli gem' do
   title 'should be installed'
 
-  only_if('Forced requirement for Centos-7 and Ubuntu-18.04') do
+  only_if('Forced requirement for Centos-7, Ubuntu-18.04 and Debian-10') do
     (os.redhat? and platform[:release].to_f.truncate == 7) or
-      (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18)
+      (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18) or
+      (os.name == 'debian' and platform[:release].to_f.truncate == 10)
   end
 
   describe gem('arvados-cli', '/usr/local/rvm/bin/rvm all do gem') do