]> git.openstreetmap.org Git - chef.git/commitdiff
Update kitchen tests for changes to frontend and backend services
authorTom Hughes <tom@compton.nu>
Wed, 9 Sep 2020 19:35:56 +0000 (20:35 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 9 Sep 2020 19:35:56 +0000 (20:35 +0100)
test/integration/web-backend/serverspec/rails_spec.rb
test/integration/web-frontend/serverspec/cgimap_spec.rb [new file with mode: 0644]
test/integration/web-frontend/serverspec/rails_spec.rb

index 478549a6e566c4205f1fa0f376f9a73b9301eeaf..d02a65898996c19e78d68983a7a264c6637ab86d 100644 (file)
@@ -7,8 +7,3 @@ describe service("api-statistics") do
   it { should be_enabled }
   it { should be_running }
 end
   it { should be_enabled }
   it { should be_running }
 end
-
-describe service("rails-jobs@storage") do
-  it { should be_enabled }
-  it { should be_running }
-end
diff --git a/test/integration/web-frontend/serverspec/cgimap_spec.rb b/test/integration/web-frontend/serverspec/cgimap_spec.rb
new file mode 100644 (file)
index 0000000..d91e145
--- /dev/null
@@ -0,0 +1,13 @@
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe service("cgimap") do
+  it { should be_enabled }
+  it { should be_running }
+end
+
+describe port(8000) do
+  it { should be_listening.with("tcp") }
+end
index 3c4c194cd7d2967d4b4d72d2ef5d0040fafeb2fc..1abe820b6f6491f5d79bd03713e0edeffb409332 100644 (file)
@@ -12,3 +12,8 @@ describe service("rails-jobs@mailers") do
   it { should be_enabled }
   it { should be_running }
 end
   it { should be_enabled }
   it { should be_running }
 end
+
+describe service("rails-jobs@storage") do
+  it { should be_enabled }
+  it { should be_running }
+end