From: Tom Hughes Date: Thu, 7 Dec 2023 22:33:55 +0000 (+0000) Subject: Fix cgimap tests to check for unix domain socket X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/c99bacfc0490cc424c370530c0e7748417308891?ds=sidebyside Fix cgimap tests to check for unix domain socket --- diff --git a/test/integration/web-cgimap/inspec/cgimap_spec.rb b/test/integration/web-cgimap/inspec/cgimap_spec.rb index 8c9b5ce24..2d3953465 100644 --- a/test/integration/web-cgimap/inspec/cgimap_spec.rb +++ b/test/integration/web-cgimap/inspec/cgimap_spec.rb @@ -3,7 +3,6 @@ describe service("cgimap") do it { should be_running } end -describe port(8000) do - it { should be_listening } - its("protocols") { should cmp "tcp" } +describe file("/run/cgimap/socket") do + it { should be_socket } end diff --git a/test/integration/web-frontend/inspec/cgimap_spec.rb b/test/integration/web-frontend/inspec/cgimap_spec.rb index 8c9b5ce24..2d3953465 100644 --- a/test/integration/web-frontend/inspec/cgimap_spec.rb +++ b/test/integration/web-frontend/inspec/cgimap_spec.rb @@ -3,7 +3,6 @@ describe service("cgimap") do it { should be_running } end -describe port(8000) do - it { should be_listening } - its("protocols") { should cmp "tcp" } +describe file("/run/cgimap/socket") do + it { should be_socket } end