diff options
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/_snap.rb | 29 | ||||
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/linux.rb | 4 |
2 files changed, 28 insertions, 5 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_snap.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_snap.rb index 0a4ba48a58..7d7845f0af 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/_snap.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/_snap.rb @@ -8,7 +8,32 @@ end execute "sleep 5" -snap_package "black" do +snap_package "hello" do + action :install + channel "stable" +end + +snap_package "hello" do action :upgrade - channel "beta" + channel "edge" +end + +snap_package "hello" do + action :remove +end + +snap_package "hello" + +snap_package "hello" do + action :purge +end + +snap_package "hello" do + options ["devmode"] end + +snap_package "hello" do + action :remove +end + +snap_package %w(hello black)
\ No newline at end of file diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb b/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb index 079f66f511..5a4f0646c6 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb @@ -156,6 +156,4 @@ if ::File.exist?("/etc/systemd/system") include_recipe "::_habitat_user_toml" end -# at the moment these do not run properly in docker -# we need to investigate if this is a snap on docker issue or a chef issue -# include_recipe "::_snap" if platform?("ubuntu") +include_recipe "::_snap" if platform?("ubuntu") |