]> git.openstreetmap.org Git - chef.git/commitdiff
Add test for sysfs cookbook
authorTom Hughes <tom@compton.nu>
Tue, 25 Feb 2020 19:02:39 +0000 (19:02 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 25 Feb 2020 19:02:39 +0000 (19:02 +0000)
.github/workflows/test-kitchen.yml
.kitchen.yml
test/integration/sysfs/serverspec/sysfsutils_spec.rb [new file with mode: 0644]

index 85ec2038d81d384582b1ed96a322e4ac10834f47..1a90a238c93519bb1b9d12c6300b96ada2fd63ab 100644 (file)
@@ -78,6 +78,7 @@ jobs:
           - supybot
           - switch2osm
           - sysctl
+          - sysfs
           - taginfo
           - tile
           - tilecache
index e5ea0008e757708f2b82fd5da373589dba68fa64..532299aa16ec1d4e69380a49f0fa1940b8dc8cac 100644 (file)
@@ -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 (file)
index 0000000..fde71d8
--- /dev/null
@@ -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