From a0991185ab94cc58dfa40c724410dfd549648d91 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 9 Sep 2020 20:35:56 +0100 Subject: [PATCH] Update kitchen tests for changes to frontend and backend services --- .../web-backend/serverspec/rails_spec.rb | 5 ----- .../web-frontend/serverspec/cgimap_spec.rb | 13 +++++++++++++ .../web-frontend/serverspec/rails_spec.rb | 5 +++++ 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 test/integration/web-frontend/serverspec/cgimap_spec.rb diff --git a/test/integration/web-backend/serverspec/rails_spec.rb b/test/integration/web-backend/serverspec/rails_spec.rb index 478549a6e..d02a65898 100644 --- a/test/integration/web-backend/serverspec/rails_spec.rb +++ b/test/integration/web-backend/serverspec/rails_spec.rb @@ -7,8 +7,3 @@ describe service("api-statistics") do 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 index 000000000..d91e14576 --- /dev/null +++ b/test/integration/web-frontend/serverspec/cgimap_spec.rb @@ -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 diff --git a/test/integration/web-frontend/serverspec/rails_spec.rb b/test/integration/web-frontend/serverspec/rails_spec.rb index 3c4c194cd..1abe820b6 100644 --- a/test/integration/web-frontend/serverspec/rails_spec.rb +++ b/test/integration/web-frontend/serverspec/rails_spec.rb @@ -12,3 +12,8 @@ describe service("rails-jobs@mailers") do it { should be_enabled } it { should be_running } end + +describe service("rails-jobs@storage") do + it { should be_enabled } + it { should be_running } +end -- 2.43.2