summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZakhar Kleyman <zakhar.kleyman@mongodb.com>2018-01-29 17:49:59 -0500
committerZakhar Kleyman <zakhar.kleyman@mongodb.com>2018-01-29 17:49:59 -0500
commitfdb19a9d6b00a617ed86a33c7d2c5c3244204c1d (patch)
tree69ac195b53e7207e0e714cb288ba8447e0489926
parenta33ce8514c90ed07dcba461d8b8fd85211127afc (diff)
downloadmongo-fdb19a9d6b00a617ed86a33c7d2c5c3244204c1d.tar.gz
SERVER-32932 improve sles12 package testing
-rw-r--r--buildscripts/package_test/recipes/install_mongodb.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/buildscripts/package_test/recipes/install_mongodb.rb b/buildscripts/package_test/recipes/install_mongodb.rb
index 627aa09b8af..d8f0a00f188 100644
--- a/buildscripts/package_test/recipes/install_mongodb.rb
+++ b/buildscripts/package_test/recipes/install_mongodb.rb
@@ -87,6 +87,16 @@ if platform_family? 'suse'
EOD
end
+ %w(
+ SLES12-Pool
+ SLES12-Updates
+ ).each do |repo|
+ execute "add #{repo}" do
+ command "zypper addrepo --check --refresh --name \"#{repo}\" http://smt-ec2.susecloud.net/repo/SUSE/Products/SLE-SERVER/12/x86_64/product?credentials=SMT-http_smt-ec2_susecloud_net 'SMT-http_smt-ec2_susecloud_net:#{repo}'"
+ not_if "zypper lr | grep #{repo}"
+ end
+ end
+
execute 'install mongod' do
command 'zypper -n install `find . -name "*server*.rpm"`'
cwd homedir