]> git.openstreetmap.org Git - chef.git/blob - test/integration/vectortile/inspec/tilekiln_spec.rb
Merge remote-tracking branch 'github/pull/699'
[chef.git] / test / integration / vectortile / inspec / tilekiln_spec.rb
1 describe pip("tilekiln", "/opt/tilekiln/bin/pip") do
2   it { should be_installed }
3   its("version") { should cmp >= "0.5.0" }
4 end
5
6 describe service("tilekiln") do
7   it { should be_enabled }
8   it { should be_running }
9 end
10
11 describe port(8000) do
12   it { should be_listening }
13   its("protocols") { should cmp %w[tcp] }
14 end
15
16 describe http("http://localhost:8000") do
17   its("status") { should cmp 404 }
18 end
19
20 describe http("https://localhost/shortbread_v1/tilejson.json", :ssl_verify => false) do
21   its("status") { should cmp 200 }
22 end
23
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"]) }
26 end
27
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 }
31 end
32 describe http("https://localhost/shortbread_v1/16/0/0.mvt", :ssl_verify => false) do
33   its("status") { should cmp 404 }
34 end