From 2eef14370528a64a321221a077dbdf476899ae1b Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Thu, 4 Jul 2024 10:34:11 -0700 Subject: [PATCH] tile: Update index page to modern HTML, add tests --- cookbooks/tile/templates/default/index.html.erb | 9 ++++----- test/integration/tile/inspec/apache_spec.rb | 8 ++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) 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 -- 2.39.5