]> git.openstreetmap.org Git - chef.git/blob - 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
1
2 require "serverspec"
3
4 # Required by serverspec
5 set :backend, :exec
6
7 describe command("/opt/wp-cli/wp --allow-root --path=/srv/blog.openstreetmap.org/wp/ core is-installed") do
8   its("exit_status") { should eq 0 }
9 end
10
11 describe command("/opt/wp-cli/wp --allow-root --path=/srv/blog.openstreetmap.org/wp/ plugin is-active wp-fail2ban") do
12   its("exit_status") { should eq 0 }
13 end