- name: python
run_list:
- recipe[python::default]
+ - name: rsyncd
+ run_list:
+ - recipe[rsyncd::default]
- name: serverinfo
run_list:
- recipe[serverinfo::default]
- name: "Test Kitchen (python)"
script:
- bundle exec kitchen test python-ubuntu-1804
+ - name: "Test Kitchen (rsyncd)"
+ script:
+ - bundle exec kitchen test rsyncd-ubuntu-1804
- name: "Test Kitchen (serverinfo)"
script:
- bundle exec kitchen test serverinfo-ubuntu-1804
--- /dev/null
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("rsync") do
+ it { should be_installed }
+end
+
+describe service("rsync") do
+ it { should be_enabled }
+ it { should be_running }
+end
+
+describe port(873) do
+ it { should be_listening.with("tcp") }
+end