1 describe pip("tilekiln", "/opt/tilekiln/bin/pip") do
2 it { should be_installed }
3 its("version") { should cmp >= "0.5.0" }
6 describe service("tilekiln") do
7 it { should be_enabled }
8 it { should be_running }
11 describe port(8000) do
12 it { should be_listening }
13 its("protocols") { should cmp %w[tcp] }
16 describe http("http://localhost:8000") do
17 its("status") { should cmp 404 }
20 describe http("https://localhost/shortbread_v1/tilejson.json", :ssl_verify => false) do
21 its("status") { should cmp 200 }
24 describe json(:content => http("https://localhost/shortbread_v1/tilejson.json", :ssl_verify => false).body) do
25 its(["tiles"]) { should eq(["https://vector.openstreetmap.org/shortbread_v1/{z}/{x}/{y}.mvt"]) }
28 describe http("https://localhost/shortbread_v1/16/0/0.mvt", :ssl_verify => false) do
29 its("status") { should cmp 410 }