summaryrefslogtreecommitdiff
path: root/buildscripts/package_test
diff options
context:
space:
mode:
authorAlexander Neben <alexander.neben@mongodb.com>2022-05-13 01:10:38 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-13 01:38:01 +0000
commit90a033ffa15e8a1c2ca9018534f873fe0cfc0f0c (patch)
treef8007bdb6455687a8df1534b45080d0a5b3ee776 /buildscripts/package_test
parent0592f87648a1fc2fdf4a51c96eb01d84330aad5b (diff)
downloadmongo-90a033ffa15e8a1c2ca9018534f873fe0cfc0f0c.tar.gz
SERVER-64352 mongo shell no longer built by default
Diffstat (limited to 'buildscripts/package_test')
-rw-r--r--buildscripts/package_test/recipes/install_mongodb.rb40
-rw-r--r--buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb22
2 files changed, 0 insertions, 62 deletions
diff --git a/buildscripts/package_test/recipes/install_mongodb.rb b/buildscripts/package_test/recipes/install_mongodb.rb
index 1e857627f1e..d57546ce6b9 100644
--- a/buildscripts/package_test/recipes/install_mongodb.rb
+++ b/buildscripts/package_test/recipes/install_mongodb.rb
@@ -92,12 +92,6 @@ if platform_family? 'debian'
command 'apt update && apt -y -f install'
live_stream true
end
-
- execute 'install mongo shell' do
- command 'dpkg -i `find . -name "*shell*.deb"`'
- live_stream true
- cwd homedir
- end
end
if platform_family? 'rhel' or platform_family? 'amazon'
@@ -118,12 +112,6 @@ if platform_family? 'rhel' or platform_family? 'amazon'
live_stream true
cwd homedir
end
-
- execute 'install mongo shell' do
- command 'yum install -y `find . -name "*shell*.rpm"`'
- live_stream true
- cwd homedir
- end
end
if platform_family? 'suse'
@@ -155,32 +143,4 @@ if platform_family? 'suse'
live_stream true
cwd homedir
end
-
- execute 'install mongo' do
- command 'zypper --no-gpg-checks -n install `find . -name "*shell*.rpm"`'
- live_stream true
- cwd homedir
- end
-end
-
-inspec_wait = <<HEREDOC
-#!/bin/bash -x
-ulimit -v unlimited
-for i in {1..60}
-do
- mongo --eval "db.smoke.insert({answer: 42})"
- if [ $? -eq 0 ]
- then
- exit 0
- else
- echo "sleeping"
- sleep 1
- fi
-done
-exit 1
-HEREDOC
-
-file '/inspec_wait.sh' do
- content inspec_wait
- mode '0755'
end
diff --git a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb b/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
index 2bbc118f29a..821f55f1a57 100644
--- a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
+++ b/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb
@@ -78,11 +78,6 @@ else
end
end
-# wait to make sure mongod is ready
-describe command("/inspec_wait.sh") do
- its('exit_status') { should eq 0 }
-end
-
############################################################
# This section verifies files, directories, and users
# - files and directories exist and have correct attributes
@@ -200,23 +195,6 @@ ulimits.each do |limit, value|
end
############################################################
-# This section verifies reads and writes.
-# - insert a document into the database
-# - verify that findOne() returns a matching document
-############################################################
-
-describe command('sh -c "ulimit -v unlimited && mongo --eval \"db.smoke.insert({answer: 42})\""') do
- its('exit_status') { should eq 0 }
- its('stdout') { should match(/.+WriteResult\({ "nInserted" : 1 }\).+/m) }
-end
-
-# read a document from the db
-describe command('sh -c "ulimit -v unlimited && mongo --eval \"db.smoke.findOne()\""') do
- its('exit_status') { should eq 0 }
- its('stdout') { should match(/.+"answer" : 42.+/m) }
-end
-
-############################################################
# This section verifies uninstall.
############################################################