[Nagiosplug-checkins] nagiosplug/plugins/t check_mysql.t,1.5,1.6

Ton Voon tonvoon at users.sourceforge.net
Tue Jan 31 06:38:30 CET 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins/t
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17020/t

Modified Files:
	check_mysql.t 
Log Message:
Extra explanation in tests

Index: check_mysql.t
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/t/check_mysql.t,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- check_mysql.t	15 Dec 2005 17:06:55 -0000	1.5
+++ check_mysql.t	31 Jan 2006 14:37:11 -0000	1.6
@@ -4,6 +4,12 @@
 #
 # $Id$
 #
+#
+# These are the database permissions required for this test:
+#  GRANT SELECT ON $db.* TO $user@$host INDENTIFIED BY '$password';
+#  GRANT SUPER, REPLICATION CLIENT ON *.* TO $user@$host;
+# Check with:
+#  mysql -u$user -p$password -h$host $db
 
 use strict;
 use Test::More;
@@ -23,7 +29,7 @@
 my $mysql_login_details = getTestParameter( 
 		"MYSQL_LOGIN_DETAILS", 
 		"Command line parameters to specify login access",
-		"-u user -ppw",
+		"-u user -ppw -d db",
 		);
 my $with_slave = getTestParameter( 
 		"NP_MYSQL_WITH_SLAVE", 





More information about the Commits mailing list