diff options
| author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-04-04 13:09:15 +0200 |
|---|---|---|
| committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-04-04 13:09:15 +0200 |
| commit | 2f4d6764d78cf085601b34ac92486405bd11095d (patch) | |
| tree | 550601dc79e74fd4c184dc96a95687d1d1238b43 /plugins/t/check_mysql.t | |
| parent | faea5899ba3264581bf75649e4b399d0b69bd125 (diff) | |
| parent | 5f16ba81c4af1a05e67806ca989a1dd46248a5fd (diff) | |
| download | monitoring-plugins-2f4d6764d78cf085601b34ac92486405bd11095d.tar.gz | |
Merge branch 'master' into feature_check_curl
Diffstat (limited to 'plugins/t/check_mysql.t')
| -rw-r--r-- | plugins/t/check_mysql.t | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/plugins/t/check_mysql.t b/plugins/t/check_mysql.t index 28cd4cd0..e426bf59 100644 --- a/plugins/t/check_mysql.t +++ b/plugins/t/check_mysql.t | |||
| @@ -21,30 +21,11 @@ plan skip_all => "check_mysql not compiled" unless (-x "check_mysql"); | |||
| 21 | plan tests => 15; | 21 | plan tests => 15; |
| 22 | 22 | ||
| 23 | my $bad_login_output = '/Access denied for user /'; | 23 | my $bad_login_output = '/Access denied for user /'; |
| 24 | my $mysqlserver = getTestParameter( | 24 | my $mysqlserver = getTestParameter("NP_MYSQL_SERVER", "A MySQL Server hostname or IP with no slaves setup"); |
| 25 | "NP_MYSQL_SERVER", | 25 | my $mysqlsocket = getTestParameter("NP_MYSQL_SOCKET", "Full path to a MySQL Server socket with no slaves setup"); |
| 26 | "A MySQL Server hostname or IP with no slaves setup" | 26 | my $mysql_login_details = getTestParameter("NP_MYSQL_LOGIN_DETAILS", "Command line parameters to specify login access (requires REPLICATION CLIENT privleges)", "-u test -ptest"); |
| 27 | ); | 27 | my $with_slave = getTestParameter("NP_MYSQL_WITH_SLAVE", "MySQL server with slaves setup"); |
| 28 | my $mysqlsocket = getTestParameter( | 28 | my $with_slave_login = getTestParameter("NP_MYSQL_WITH_SLAVE_LOGIN", "Login details for server with slave (requires REPLICATION CLIENT privleges)", $mysql_login_details || "-u test -ptest"); |
| 29 | "NP_MYSQL_SOCKET", | ||
| 30 | "Full path to a MySQL Server socket with no slaves setup" | ||
| 31 | ); | ||
| 32 | my $mysql_login_details = getTestParameter( | ||
| 33 | "MYSQL_LOGIN_DETAILS", | ||
| 34 | "Command line parameters to specify login access (requires " . | ||
| 35 | "REPLICATION CLIENT privleges)", | ||
| 36 | "-u test -ptest", | ||
| 37 | ); | ||
| 38 | my $with_slave = getTestParameter( | ||
| 39 | "NP_MYSQL_WITH_SLAVE", | ||
| 40 | "MySQL server with slaves setup" | ||
| 41 | ); | ||
| 42 | my $with_slave_login = getTestParameter( | ||
| 43 | "NP_MYSQL_WITH_SLAVE_LOGIN", | ||
| 44 | "Login details for server with slave (requires REPLICATION CLIENT " . | ||
| 45 | "privleges)", | ||
| 46 | $mysql_login_details || "-u test -ptest" | ||
| 47 | ); | ||
| 48 | 29 | ||
| 49 | my $result; | 30 | my $result; |
| 50 | 31 | ||
