[Pkg-nagios-changes] [pkg-nagios-plugins-contrib] 02/06: add test restrictions

Jan Wagner waja at moszumanska.debian.org
Wed Jan 4 13:05:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

waja pushed a commit to annotated tag debian/19.20170104
in repository pkg-nagios-plugins-contrib.

commit 1f127a609f1f0557942e9230d9a816424cc49011
Author: Evgeni Golov <evgeni at debian.org>
Date:   Wed Jan 4 13:32:33 2017 +0100

    add test restrictions
---
 check_checksums/tests    | 1 +
 check_cups/tests         | 1 +
 check_etc_hosts/tests    | 1 +
 check_httpd_status/tests | 3 ++-
 4 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/check_checksums/tests b/check_checksums/tests
index 3506838..a20fbb8 100644
--- a/check_checksums/tests
+++ b/check_checksums/tests
@@ -1 +1,2 @@
 Test-Command: mkdir -p /etc/nagios/ && sha256sum /bin/true > /etc/nagios/check_checksums.sha256 && /usr/lib/nagios/plugins/check_checksums
+Restrictions: needs-root
diff --git a/check_cups/tests b/check_cups/tests
index bc0a235..fdfa9e4 100644
--- a/check_cups/tests
+++ b/check_cups/tests
@@ -1,2 +1,3 @@
 Depends: cups, libdate-manip-perl, libmonitoring-plugin-perl | libnagios-plugin-perl, libnet-cups-perl
 Test-Command: service cups restart && /usr/lib/nagios/plugins/check_cups -H localhost
+Restrictions: needs-root
diff --git a/check_etc_hosts/tests b/check_etc_hosts/tests
index ca3b4e5..9555da3 100644
--- a/check_etc_hosts/tests
+++ b/check_etc_hosts/tests
@@ -1,2 +1,3 @@
 Depends: libnet-dns-perl 
 Test-Command: echo "127.0.0.1 localhost" > /etc/hosts && /usr/lib/nagios/plugins/check_etc_hosts
+Restrictions: needs-root
diff --git a/check_httpd_status/tests b/check_httpd_status/tests
index 1aea5c1..9e181d7 100644
--- a/check_httpd_status/tests
+++ b/check_httpd_status/tests
@@ -1,2 +1,3 @@
 Depends: apache2, liblocale-gettext-perl, libmonitoring-plugin-perl | libnagios-plugin-perl, liblwp-useragent-determined-perl
-Test-Command: service apache2 restart 2>/dev/null && /usr/lib/nagios/plugins/check_httpd_status -H localhost
+Test-Command: service apache2 restart && /usr/lib/nagios/plugins/check_httpd_status -H localhost
+Restrictions: needs-root allow-stderr

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins-contrib.git



More information about the Pkg-nagios-changes mailing list