summaryrefslogtreecommitdiff
path: root/kitchen-tests/cookbooks/end_to_end/recipes/_apt.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-06 19:57:11 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-06 19:57:11 -0700
commitb305c3134c9af268e9008e25487c6dfaf905410b (patch)
tree2b9e8b525cf96bebbc4920c56c4b2ec363b0912f /kitchen-tests/cookbooks/end_to_end/recipes/_apt.rb
parent215ceafb1bbe0abeadf090fe0c1c18e073b41450 (diff)
downloadchef-b305c3134c9af268e9008e25487c6dfaf905410b.tar.gz
Expand our sudo, sysctl, execute, apt_update and apt_preference testing
Test more scenarios Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests/cookbooks/end_to_end/recipes/_apt.rb')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/_apt.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_apt.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_apt.rb
new file mode 100644
index 0000000000..901cd8c36c
--- /dev/null
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/_apt.rb
@@ -0,0 +1,24 @@
+#
+# Cookbook:: end_to_end
+# Recipe:: apt_preference
+#
+
+apt_update "periodic apt update" do
+ frequency 86400
+ action :periodic
+end
+
+apt_preference "dotdeb" do
+ glob "*"
+ pin "origin packages.dotdeb.org"
+ pin_priority "700"
+end
+
+apt_preference "a_fake_package" do
+ pin "version 5.1.49-3"
+ pin_priority "700"
+end
+
+apt_preference "libmysqlclient16" do
+ action :remove
+end