From f2ae0bd7c707ea5b04c64c74cbc9e8add43042fc Mon Sep 17 00:00:00 2001 From: Panos Xynos Date: Thu, 30 Nov 2023 09:22:57 +0000 Subject: [PATCH] [186049138] Testing the existance of PG server and client --- cf-acceptance-tests/cf-acceptance-tests_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cf-acceptance-tests/cf-acceptance-tests_spec.rb b/cf-acceptance-tests/cf-acceptance-tests_spec.rb index ba187d5d..00702ba8 100644 --- a/cf-acceptance-tests/cf-acceptance-tests_spec.rb +++ b/cf-acceptance-tests/cf-acceptance-tests_spec.rb @@ -58,6 +58,16 @@ ).to eq(0) end + it "has psql available" do + expect( + command("psql --version").exit_status + ).to eq(0) + end + + it "can start postgresql" do + expect(Pathname.new('/usr/bin/pg_ctlcluster')).to exist + end + it "has the CF_PLUGIN_HOME variable set" do expect( command("env").stdout