- name: stateofthemap
run_list:
- recipe[stateofthemap::default]
+ - name: subversion
+ run_list:
+ - recipe[subversion::default]
- name: switch2osm
run_list:
- recipe[switch2osm::default]
- name: "Test Kitchen (stateofthemap)"
script:
- bundle exec kitchen test stateofthemap-ubuntu-1804
+ - name: "Test Kitchen (subversion)"
+ script:
+ - bundle exec kitchen test subversion-ubuntu-1804
- name: "Test Kitchen (switch2osm)"
script:
- bundle exec kitchen test switch2osm-ubuntu-1804
end
apache_module "dav_svn" do
- package "libapache2-svn"
+ package "libapache2-mod-svn"
end
apache_module "authz_svn" do
- package "libapache2-svn"
+ package "libapache2-mod-svn"
end
ssl_certificate "svn.openstreetmap.org" do
--- /dev/null
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("apache2") do
+ it { should be_installed }
+end
+
+describe service("apache2") do
+ it { should be_enabled }
+ it { should be_running }
+end
+
+describe port(80) do
+ it { should be_listening.with("tcp") }
+end
+
+describe port(443) do
+ it { should be_listening.with("tcp") }
+end
--- /dev/null
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("subversion") do
+ it { should be_installed }
+end