]> git.openstreetmap.org Git - chef.git/commitdiff
Fix cgimap tests to check for unix domain socket
authorTom Hughes <tom@compton.nu>
Thu, 7 Dec 2023 22:33:55 +0000 (22:33 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 7 Dec 2023 22:34:38 +0000 (22:34 +0000)
test/integration/web-cgimap/inspec/cgimap_spec.rb
test/integration/web-frontend/inspec/cgimap_spec.rb

index 8c9b5ce24e45b6363f994dbf46837f20a56c4e5a..2d3953465525b4e35a55afab184290ce0d884b60 100644 (file)
@@ -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
index 8c9b5ce24e45b6363f994dbf46837f20a56c4e5a..2d3953465525b4e35a55afab184290ce0d884b60 100644 (file)
@@ -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