From: Paul Norman Date: Thu, 4 Jul 2024 17:34:11 +0000 (-0700) Subject: tile: Update index page to modern HTML, add tests X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/2eef14370528a64a321221a077dbdf476899ae1b tile: Update index page to modern HTML, add tests --- diff --git a/cookbooks/tile/templates/default/index.html.erb b/cookbooks/tile/templates/default/index.html.erb index 91305256e..8a12402ff 100644 --- a/cookbooks/tile/templates/default/index.html.erb +++ b/cookbooks/tile/templates/default/index.html.erb @@ -1,15 +1,14 @@ - - + + tile.openstreetmap.org - + -You've reached the OpenStreetMap.org tile server. (<%= node['fqdn'] %>)
+You've reached the OpenStreetMap.org tile server (<%= node['fqdn'] %>)
If you are a user...
You probably want OpenStreetMap itself.
diff --git a/test/integration/tile/inspec/apache_spec.rb b/test/integration/tile/inspec/apache_spec.rb index 8006330b4..50a916801 100644 --- a/test/integration/tile/inspec/apache_spec.rb +++ b/test/integration/tile/inspec/apache_spec.rb @@ -16,3 +16,11 @@ describe port(443) do it { should be_listening } its("protocols") { should cmp "tcp" } end + +describe http("http://localhost") do + its("status") { should cmp 301 } +end + +describe http("https://localhost", :ssl_verify => false) do + its("status") { should cmp 200 } +end