diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2014-01-21 07:59:07 -0500 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2014-01-21 07:59:07 -0500 |
commit | 11cf54ca78185d820085a476cdbf7d8f9149c292 (patch) | |
tree | f91c77af08f3bbe60be2a1a699033ad7eda27ba2 /plugins/t | |
parent | 66544851f7a4f5eeaf86d1cee8b1f54c76f98433 (diff) | |
parent | 6141cfebf6c42873e0181105d2051143d8c11eb7 (diff) | |
download | monitoring-plugins-11cf54ca78185d820085a476cdbf7d8f9149c292.tar.gz |
Merge branch 'rename'
Diffstat (limited to 'plugins/t')
-rw-r--r-- | plugins/t/check_disk.t | 4 | ||||
-rw-r--r-- | plugins/t/check_dns.t | 2 | ||||
-rw-r--r-- | plugins/t/check_http.t | 22 |
3 files changed, 14 insertions, 14 deletions
diff --git a/plugins/t/check_disk.t b/plugins/t/check_disk.t index 39b4ca9f..7e0f74b7 100644 --- a/plugins/t/check_disk.t +++ b/plugins/t/check_disk.t @@ -4,7 +4,7 @@ # # -# TODO: Add in tests for perf data. Need to beef up Nagios::Plugin::Performance to cater for max, min, etc +# TODO: Add in tests for perf data. Need to beef up Monitoring::Plugin::Performance to cater for max, min, etc use strict; use Test::More; @@ -37,7 +37,7 @@ cmp_ok( $c, '==', 2, "Got two mountpoints in output"); # Get perf data -# Should use Nagios::Plugin +# Should use Monitoring::Plugin my @perf_data = sort(split(/ /, $result->perf_output)); diff --git a/plugins/t/check_dns.t b/plugins/t/check_dns.t index 64aaf0ce..2c903db9 100644 --- a/plugins/t/check_dns.t +++ b/plugins/t/check_dns.t @@ -17,7 +17,7 @@ my $successOutput = '/DNS OK: [\.0-9]+ seconds? response time/'; my $hostname_valid = getTestParameter( "NP_HOSTNAME_VALID", "A valid (known to DNS) hostname", - "nagios.com" + "monitoring-plugins.org" ); my $hostname_valid_ip = getTestParameter( diff --git a/plugins/t/check_http.t b/plugins/t/check_http.t index 29086737..a74220e2 100644 --- a/plugins/t/check_http.t +++ b/plugins/t/check_http.t @@ -31,8 +31,8 @@ my $internet_access = getTestParameter( "NP_INTERNET_ACCESS", "yes"); my $host_tcp_http2 = getTestParameter( "NP_HOST_TCP_HTTP2", - "A host providing an index page containing the string 'nagios'", - "nagios.org" ); + "A host providing an index page containing the string 'monitoring'", + "test.monitoring-plugins.org" ); $res = NPTest->testCmd( @@ -62,23 +62,23 @@ cmp_ok( $res->return_code, '==', 2, "Webserver $hostname_invalid not valid" ); like( $res->output, "/Unable to open TCP socket|Socket timeout after/", "Output OK"); SKIP: { - skip "No host serving nagios in index file", 7 unless $host_tcp_http2; + skip "No host serving monitoring in index file", 7 unless $host_tcp_http2; - $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'nagios'" ); - cmp_ok( $res->return_code, "==", 0, "Got a reference to 'nagios'"); + $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'monitoring'" ); + cmp_ok( $res->return_code, "==", 0, "Got a reference to 'monitoring'"); - $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'nAGiOs'" ); - cmp_ok( $res->return_code, "==", 2, "Not got 'nAGiOs'"); + $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'mONiTORing'" ); + cmp_ok( $res->return_code, "==", 2, "Not got 'mONiTORing'"); like ( $res->output, "/pattern not found/", "Error message says 'pattern not found'"); - $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -R 'nAGiOs'" ); - cmp_ok( $res->return_code, "==", 0, "But case insensitive doesn't mind 'nAGiOs'"); + $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -R 'mONiTORing'" ); + cmp_ok( $res->return_code, "==", 0, "But case insensitive doesn't mind 'mONiTORing'"); - $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'nagios' --invert-regex" ); + $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'monitoring' --invert-regex" ); cmp_ok( $res->return_code, "==", 2, "Invert results work when found"); like ( $res->output, "/pattern found/", "Error message says 'pattern found'"); - $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'nAGiOs' --invert-regex" ); + $res = NPTest->testCmd( "./check_http -H $host_tcp_http2 -r 'mONiTORing' --invert-regex" ); cmp_ok( $res->return_code, "==", 0, "And also when not found"); } SKIP: { |