]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/blog/serverspec/wordpress_spec.rb
wordpress: use wp-cli for initial DB install and activating plugins
[chef.git] / test / integration / blog / serverspec / wordpress_spec.rb
diff --git a/test/integration/blog/serverspec/wordpress_spec.rb b/test/integration/blog/serverspec/wordpress_spec.rb
new file mode 100644 (file)
index 0000000..c4a8ca1
--- /dev/null
@@ -0,0 +1,13 @@
+
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe command("/opt/wp-cli/wp --allow-root --path=/srv/blog.openstreetmap.org/wp/ core is-installed") do
+  its("exit_status") { should eq 0 }
+end
+
+describe command("/opt/wp-cli/wp --allow-root --path=/srv/blog.openstreetmap.org/wp/ plugin is-active wp-fail2ban") do
+  its("exit_status") { should eq 0 }
+end