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 12:56:51 +0000 |
commit | f3f4bed1ffabb7879fd9d51c7b5670751e8508fd (patch) | |
tree | 2843b4d535c295f7c71fcd3707939c285f0d5a89 | |
parent | 73e17e1abda5870abcdaee92230927bd3e9ece9b (diff) | |
download | mongo-f3f4bed1ffabb7879fd9d51c7b5670751e8508fd.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 20ed4b1cd03..46ccb1659d9 100644 --- a/buildscripts/package_test/.kitchen.yml +++ b/buildscripts/package_test/.kitchen.yml @@ -78,7 +78,7 @@ platforms: username: ec2-user - name: suse12 driver: - image_id: ami-aeb532c6 + image_id: ami-043eebeabcc4e3d35 transport: username: ec2-user - name: suse15 diff --git a/buildscripts/package_test/recipes/install_mongodb.rb b/buildscripts/package_test/recipes/install_mongodb.rb index 92e880bfdb8..7968a875f50 100644 --- a/buildscripts/package_test/recipes/install_mongodb.rb +++ b/buildscripts/package_test/recipes/install_mongodb.rb @@ -116,23 +116,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 |