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

index d77de74add0d1bf13db44705c4044484212f9539..792b4198b25e40eadec63db240f8bf58493fca7d 100644 (file)
@@ -134,6 +134,9 @@ suites:
   - name: openssh
     run_list:
       - recipe[openssh::default]
+  - name: osmosis
+    run_list:
+      - recipe[osmosis::default]
   - name: otrs
     run_list:
       - recipe[accounts::default]
index 68dac833f25c3783b50e34d55615287827ffa935..26f95c00e9417395f16b190fef2c726b2821b4a6 100644 (file)
@@ -80,6 +80,9 @@ jobs:
     - name: "Test Kitchen (openssh)"
       script:
         - bundle exec kitchen test openssh-ubuntu-1804
+    - name: "Test Kitchen (osmosis)"
+      script:
+        - bundle exec kitchen test osmosis-ubuntu-1804
     - name: "Test Kitchen (otrs)"
       script:
         - bundle exec kitchen test otrs-ubuntu-1804
diff --git a/test/integration/osmosis/serverspec/osmosis_spec.rb b/test/integration/osmosis/serverspec/osmosis_spec.rb
new file mode 100644 (file)
index 0000000..93aecf0
--- /dev/null
@@ -0,0 +1,8 @@
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe file("/usr/local/bin/osmosis") do
+  it { should be_symlink }
+end