diff options
author | Brian McCarthy <brian.mccarthy@mongodb.com> | 2020-06-08 19:16:37 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-11 14:57:32 +0000 |
commit | fbc475e72f28262727c04d9b3a5578a4bef88e8c (patch) | |
tree | 97a97d12d81d82bfe55eb17cb01e686b059a2a6b | |
parent | bdaf0cd2dbf6a009990e71c84310f0b41e9dce84 (diff) | |
download | mongo-fbc475e72f28262727c04d9b3a5578a4bef88e8c.tar.gz |
SERVER-48659 Update SLES 12 AMI for package tests
(cherry picked from commit 1cc92d974e60248fd24532dcc05e5eb878e9b6d5)
-rw-r--r-- | buildscripts/package_test/.kitchen.yml | 2 | ||||
-rw-r--r-- | buildscripts/package_test/recipes/install_mongodb.rb | 14 |
2 files changed, 3 insertions, 13 deletions
diff --git a/buildscripts/package_test/.kitchen.yml b/buildscripts/package_test/.kitchen.yml index d02570164fd..21d67e02ac7 100644 --- a/buildscripts/package_test/.kitchen.yml +++ b/buildscripts/package_test/.kitchen.yml @@ -63,7 +63,7 @@ platforms: username: ec2-user - name: suse12 driver: - image_id: ami-aeb532c6 + image_id: ami-043eebeabcc4e3d35 transport: username: ec2-user - name: ubuntu1204 diff --git a/buildscripts/package_test/recipes/install_mongodb.rb b/buildscripts/package_test/recipes/install_mongodb.rb index 588847ea603..7625f5bf359 100644 --- a/buildscripts/package_test/recipes/install_mongodb.rb +++ b/buildscripts/package_test/recipes/install_mongodb.rb @@ -104,23 +104,13 @@ 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"`' + command 'zypper --no-gpg-checks -n install `find . -name "*server*.rpm"`' cwd homedir end execute 'install mongo' do - command 'zypper -n install `find . -name "*shell*.rpm"`' + command 'zypper --no-gpg-checks -n install `find . -name "*shell*.rpm"`' cwd homedir end end |