Add test for incron cookbook
authorTom Hughes <tom@compton.nu>
Sat, 15 Feb 2020 12:28:21 +0000 (12:28 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 15 Feb 2020 17:32:12 +0000 (17:32 +0000)
.kitchen.yml
.travis.yml
test/integration/incron/serverspec/incron_spec.rb [new file with mode: 0644]

index 0eebce5fea3ce42e0aa3a8a1ab361b6c70446db8..d77de74add0d1bf13db44705c4044484212f9539 100644 (file)
@@ -89,6 +89,9 @@ suites:
     run_list:
       - recipe[accounts::default]
       - role[forum]
+  - name: incron
+    run_list:
+      - recipe[incron::default]
   - name: letsencrypt
     run_list:
       - recipe[accounts::default]
index e280da19cb88c50681bba0b3bd0970889bbcea11..68dac833f25c3783b50e34d55615287827ffa935 100644 (file)
@@ -47,6 +47,9 @@ jobs:
     - name: "Test Kitchen (forum)"
       script:
         - bundle exec kitchen test forum-ubuntu-1804
+    - name: "Test Kitchen (incron)"
+      script:
+        - bundle exec kitchen test incron-ubuntu-1804
     - name: "Test Kitchen (letsencrypt)"
       script:
         - bundle exec kitchen test letsencrypt-ubuntu-1804
diff --git a/test/integration/incron/serverspec/incron_spec.rb b/test/integration/incron/serverspec/incron_spec.rb
new file mode 100644 (file)
index 0000000..8f514be
--- /dev/null
@@ -0,0 +1,13 @@
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("incron") do
+  it { should be_installed }
+end
+
+describe service("incron") do
+  it { should be_enabled }
+  it { should be_running }
+end