Skip to content

Commit

Permalink
Add a test recipe for source to remove apt usage
Browse files Browse the repository at this point in the history
Also this shows off how you’d do it in a wrapper

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Apr 20, 2017
1 parent fff5c62 commit 7c01002
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
11 changes: 3 additions & 8 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ platforms:
- name: centos-6.8
- name: centos-7.3
- name: debian-7.11
run_list: apt::default
- name: debian-8.6
run_list: apt::default
- name: fedora-25
- name: opensuse-leap-42.2
- name: ubuntu-14.04
run_list: apt::default
- name: ubuntu-16.04
run_list: apt::default
- name: freebsd-10.3
driver:
ssh:
Expand All @@ -33,10 +29,9 @@ platforms:
box: chef/windows-server-2012r2-standard

suites:
- name: source_install
run_list:
- recipe[php::default]
attributes: { php: { install_method: "source" } }
- name: resource_test
run_list:
- recipe[test::default]
- name: source_install
run_list:
- recipe[test::source]
1 change: 0 additions & 1 deletion Berksfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ metadata

group :integration do
cookbook 'test', path: './test/cookbooks/test'
cookbook 'apt'
end
5 changes: 5 additions & 0 deletions test/cookbooks/test/recipes/source.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apt_update 'update'

node.override['php']['install_method'] = 'source'

include_recipe 'php'

0 comments on commit 7c01002

Please sign in to comment.