diff options
author | Tim Smith <tsmith@chef.io> | 2017-09-18 10:36:04 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-09-18 10:36:04 -0700 |
commit | 4638bf01b05b4dfc98b6b106e6d95f4f7a37a6e1 (patch) | |
tree | 8ef4fb81d754a05e0685e6935deceeb8b2f6c767 /kitchen-tests/cookbooks | |
parent | d794cb8d4adcd0af89be8ea34ed01032b82d11f1 (diff) | |
download | chef-4638bf01b05b4dfc98b6b106e6d95f4f7a37a6e1.tar.gz |
Add the multipackage stuff backtravis_integration
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests/cookbooks')
-rw-r--r-- | kitchen-tests/cookbooks/base/metadata.rb | 1 | ||||
-rw-r--r-- | kitchen-tests/cookbooks/base/recipes/packages.rb | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/kitchen-tests/cookbooks/base/metadata.rb b/kitchen-tests/cookbooks/base/metadata.rb index f95dca7c04..9a85a0e24b 100644 --- a/kitchen-tests/cookbooks/base/metadata.rb +++ b/kitchen-tests/cookbooks/base/metadata.rb @@ -13,6 +13,7 @@ depends "build-essential" depends "chef-client" depends "chef_hostname" depends "logrotate" +depends "multipackage" depends "nscd" depends "ntp" depends "openssh" diff --git a/kitchen-tests/cookbooks/base/recipes/packages.rb b/kitchen-tests/cookbooks/base/recipes/packages.rb index 9a74b0bf9d..bb5fa7bb71 100644 --- a/kitchen-tests/cookbooks/base/recipes/packages.rb +++ b/kitchen-tests/cookbooks/base/recipes/packages.rb @@ -7,7 +7,13 @@ # this is just a list of package that exist on every O/S we test, and often aren't installed by default. you don't # have to get too clever here, you can delete packages if they don't exist everywhere we test. -package %w{lsof tcpdump strace zsh dmidecode ltrace bc curl wget telnet subversion git traceroute htop tmux } +pkgs = %w{lsof tcpdump strace zsh dmidecode ltrace bc curl wget telnet subversion git traceroute htop tmux } + +# this deliberately calls the multipackage API N times in order to do one package installation in order to exercise the +# multipackage cookbook. +pkgs.each do |pkg| + multipackage pkgs +end gems = %w{fpm aws-sdk} |