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)) do
25 its(["tiles"]) { should eq(["https://vector.openstreetmap.org/shortbread_v1/{z}/{x}/{y}.mvt"]) }
28 # There are no tiles so everything should return a 404
29 describe http("https://localhost/shortbread_v1/0/0/0.mvt", :ssl_verify => false) do
30 its("status") { should cmp 404 }
32 describe http("https://localhost/shortbread_v1/16/0/0.mvt", :ssl_verify => false) do
33 its("status") { should cmp 404 }