From: Tom Hughes Date: Tue, 25 Feb 2020 19:02:39 +0000 (+0000) Subject: Add test for sysfs cookbook X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/19019c92db709bad0df7bf67b4283e26b656360b?hp=753925a4d9fd0674520027113d558f791fa1726a Add test for sysfs cookbook --- diff --git a/.github/workflows/test-kitchen.yml b/.github/workflows/test-kitchen.yml index 85ec2038d..1a90a238c 100644 --- a/.github/workflows/test-kitchen.yml +++ b/.github/workflows/test-kitchen.yml @@ -78,6 +78,7 @@ jobs: - supybot - switch2osm - sysctl + - sysfs - taginfo - tile - tilecache diff --git a/.kitchen.yml b/.kitchen.yml index e5ea0008e..532299aa1 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -277,6 +277,9 @@ suites: - name: sysctl run_list: - recipe[sysctl::default] + - name: sysfs + run_list: + - recipe[sysfs::default] - name: taginfo run_list: - recipe[taginfo::default] diff --git a/test/integration/sysfs/serverspec/sysfsutils_spec.rb b/test/integration/sysfs/serverspec/sysfsutils_spec.rb new file mode 100644 index 000000000..fde71d848 --- /dev/null +++ b/test/integration/sysfs/serverspec/sysfsutils_spec.rb @@ -0,0 +1,13 @@ +require "serverspec" + +# Required by serverspec +set :backend, :exec + +describe package("sysfsutils") do + it { should be_installed } +end + +describe service("sysfsutils") do + it { should be_enabled } + it { should be_running } +end