attributes:
web:
readonly_database_host: readonly
+ - name: postgresql
+ run_list:
+ - recipe[postgresql::default]
+ attributes:
+ postgresql:
+ versions:
+ - 10
- name: python
run_list:
- recipe[python::default]
- name: "Test Kitchen (planet::replication)"
script:
- bundle exec kitchen test planet-replication-ubuntu-1804
+ - name: "Test Kitchen (postgresql)"
+ script:
+ - bundle exec kitchen test postgresql-ubuntu-1804
- name: "Test Kitchen (python)"
script:
- bundle exec kitchen test python-ubuntu-1804
--- /dev/null
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("postgresql-10") do
+ it { should be_installed }
+end
+
+describe service("postgresql@10-main") do
+ it { should be_enabled }
+ it { should be_running }
+end
+
+describe port(5432) do
+ it { should be_listening.with("tcp") }
+end