diff options
Diffstat (limited to 'buildscripts/package_test/recipes/install_mongodb.rb')
-rw-r--r-- | buildscripts/package_test/recipes/install_mongodb.rb | 40 |
1 files changed, 0 insertions, 40 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 |