diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-05-04 15:25:07 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-05-04 15:26:34 -0700 |
commit | 21bff8e8a4cba6dbc03dd6ded304ee3aa542ee2c (patch) | |
tree | 368f30b4a1dd595e99f615bc910b1f688b018091 /kitchen-tests | |
parent | 42e8fb3ac885547f931acb4a92dbc812c51de29c (diff) | |
download | chef-21bff8e8a4cba6dbc03dd6ded304ee3aa542ee2c.tar.gz |
Add apt_preference tests
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests')
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/_apt_preference.rb | 14 | ||||
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/default.rb | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_apt_preference.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_apt_preference.rb new file mode 100644 index 0000000000..6b492230f1 --- /dev/null +++ b/kitchen-tests/cookbooks/end_to_end/recipes/_apt_preference.rb @@ -0,0 +1,14 @@ +# +# Cookbook:: end_to_end +# Recipe:: apt_preference +# + +apt_preference "dotdeb" do + glob "*" + pin "origin packages.dotdeb.org" + pin_priority "700" +end + +apt_preference "libmysqlclient16" do + action :remove +end
\ No newline at end of file diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/default.rb b/kitchen-tests/cookbooks/end_to_end/recipes/default.rb index 6378d55bcc..a53ecf568f 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/default.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/default.rb @@ -160,5 +160,6 @@ end include_recipe "::_chef-vault" unless includes_recipe?("end_to_end::chef-vault") include_recipe "::_sysctl" +include_recipe "::_apt_preference" include_recipe "::_alternatives" include_recipe "::_tests" |