summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/t/check_mysql_query.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/t/check_mysql_query.t b/plugins/t/check_mysql_query.t
index f4743b7..f78f07b 100644
--- a/plugins/t/check_mysql_query.t
+++ b/plugins/t/check_mysql_query.t
@@ -6,7 +6,7 @@
6# 6#
7# 7#
8# These are the database permissions required for this test: 8# These are the database permissions required for this test:
9# GRANT SELECT ON $db.* TO $user@$host INDENTIFIED BY '$password'; 9# GRANT SELECT ON $db.* TO $user@$host IDENTIFIED BY '$password';
10# Check with: 10# Check with:
11# mysql -u$user -p$password -h$host $db 11# mysql -u$user -p$password -h$host $db
12 12
@@ -42,7 +42,7 @@ $result = NPTest->testCmd("./check_mysql_query -H $mysqlserver $mysql_login_deta
42cmp_ok( $result->return_code, '==', 3, "Missing query parmeter"); 42cmp_ok( $result->return_code, '==', 3, "Missing query parmeter");
43like( $result->output, "/Must specify a SQL query to run/", "Missing query error message"); 43like( $result->output, "/Must specify a SQL query to run/", "Missing query error message");
44 44
45$result = NPTest->testCmd("./check_mysql_query -q 'SELECT 1+1' -H $mysqlserver -u dummy"); 45$result = NPTest->testCmd("./check_mysql_query -q 'SELECT 1+1' -H $mysqlserver -u dummy -d mysql");
46cmp_ok( $result->return_code, '==', 2, "Login failure"); 46cmp_ok( $result->return_code, '==', 2, "Login failure");
47like( $result->output, "/Access denied for user /", "Expected login failure message"); 47like( $result->output, "/Access denied for user /", "Expected login failure message");
48 48