check_postgres 2.22.0

Closes Homebrew/homebrew#41901.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Tomasz Pajor 2015-07-19 17:01:46 +02:00 committed by Xu Cheng
parent 353e2bdeb8
commit 19b352fbe6

View file

@ -1,10 +1,8 @@
require "formula"
class CheckPostgres < Formula
desc "Monitor Postgres databases"
homepage "http://bucardo.org/wiki/Check_postgres"
url "http://bucardo.org/downloads/check_postgres-2.21.0.tar.gz"
sha1 "88ddb1c35a8da0feeaad90036dd27d778551a36d"
url "http://bucardo.org/downloads/check_postgres-2.22.0.tar.gz"
sha256 "29cd8ea0a0c0fcd79a1e6afb3f5a1d662c1658eef207ea89276ddb30121b85a8"
head "https://github.com/bucardo/check_postgres.git"
@ -30,6 +28,6 @@ class CheckPostgres < Formula
# This test verifies that check_postgres fails correctly, assuming
# that no server is running at that port.
output = shell_output("#{bin}/check_postgres --action=connection --port=65432", 2)
assert output.include? "POSTGRES_CONNECTION CRITICAL"
assert_match /POSTGRES_CONNECTION CRITICAL/, output
end
end