diff options
author | Phil Dibowitz <phil@ipom.com> | 2020-06-02 22:29:31 -0700 |
---|---|---|
committer | Phil Dibowitz <phil@ipom.com> | 2020-06-14 15:08:54 -0700 |
commit | 65b52caf20fe608eaf2a0975ed09539c5ba0d4c4 (patch) | |
tree | 39ca629f9f964ac27330968e682e2c224e2f1d3a /kitchen-tests | |
parent | 4c34569581a26438e7226fdd4c4cebd651b21afb (diff) | |
download | chef-65b52caf20fe608eaf2a0975ed09539c5ba0d4c4.tar.gz |
Add kitchen tests for snapd
Signed-off-by: Phil Dibowitz <phil@ipom.com>
Diffstat (limited to 'kitchen-tests')
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/_snap.rb | 14 | ||||
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/linux.rb | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_snap.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_snap.rb new file mode 100644 index 0000000000..d062d27de6 --- /dev/null +++ b/kitchen-tests/cookbooks/end_to_end/recipes/_snap.rb @@ -0,0 +1,14 @@ +package 'snapd' do + action :upgrade +end + +service 'snapd' do + action :start +end + +execute 'sleep 5' + +snap_package 'black' do + action :upgrade + channel 'beta' +end diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb b/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb index f2ea241a14..063ce1726a 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb @@ -109,6 +109,7 @@ end include_recipe "::_apt" if platform_family?("debian") include_recipe "::_zypper" if suse? +include_recipe "::_snap" if platform?("ubuntu") include_recipe "::_chef-vault" unless includes_recipe?("end_to_end::chef-vault") include_recipe "::_sudo" include_recipe "::_sysctl" |