4
0
Эх сурвалжийг харах

Changed the dns tests to nagios-plugins servers.

More tests will be added in the near future to account for the new
record checks in check_dns.
abrist 12 жил өмнө
parent
commit
db73aaab43

+ 5 - 5
plugins/t/check_dig.t

@@ -22,25 +22,25 @@ my $successOutput = '/DNS OK - [\.0-9]+ seconds? response time/';
 my $hostname_valid = getTestParameter(
 			"NP_HOSTNAME_VALID",
 			"A valid (known to DNS) hostname",
-			"orwell.monitoring-plugins.org"
+			"nagios-plugins.org"
 			);
 
 my $hostname_valid_ip = getTestParameter(
 			"NP_HOSTNAME_VALID_IP",
 			"The IP address of the valid hostname $hostname_valid",
-			"130.133.8.40",
+			"72.14.186.43",
 			);
 
 my $hostname_valid_reverse = getTestParameter(
 			"NP_HOSTNAME_VALID_REVERSE",
 			"The hostname of $hostname_valid_ip",
-			"orwell.monitoring-plugins.org.",
+			"nagios-plugins.org",
 			);
 
 my $hostname_invalid = getTestParameter(
 			"NP_HOSTNAME_INVALID",
 			"An invalid (not known to DNS) hostname",
-			"nosuchhost.monitoring-plugins.org",
+			"nosuchhost.nagios-plugins.org",
 			);
 
 my $dns_server       = getTestParameter(
@@ -61,7 +61,7 @@ SKIP: {
 	$res = NPTest->testCmd("./check_dig -H $dns_server -l $hostname_valid -t 5 -w 0.000001 -c 0.00001");
 	cmp_ok( $res->return_code, '==', 2, "Critical threshold passed");
 
-	$res = NPTest->testCmd("./check_dig -H $dns_server -l $hostname_valid -t 5 -w 0.000001 -c 5");
+	$res = NPTest->testCmd("./check_dig -H $dns_server -l $hostname_valid -t 5 -w 0.000001");
 	cmp_ok( $res->return_code, '==', 1, "Warning threshold passed");
 
 	$res = NPTest->testCmd("./check_dig -H $dns_server -t 1");

+ 4 - 4
plugins/t/check_dns.t

@@ -17,25 +17,25 @@ my $successOutput = '/DNS OK: [\.0-9]+ seconds? response time/';
 my $hostname_valid = getTestParameter( 
 			"NP_HOSTNAME_VALID",
 			"A valid (known to DNS) hostname",
-			"nagios.com"
+			"nagios-plugins.org"
 			);
 
 my $hostname_valid_ip = getTestParameter(
 			"NP_HOSTNAME_VALID_IP",
 			"The IP address of the valid hostname $hostname_valid",
-			"66.118.156.50",
+			"72.14.186.43",
 			);
 
 my $hostname_valid_reverse = getTestParameter(
 			"NP_HOSTNAME_VALID_REVERSE",
 			"The hostname of $hostname_valid_ip",
-			"66-118-156-50.static.sagonet.net.",
+			"nagios-plugins.org.",
 			);
 
 my $hostname_invalid = getTestParameter( 
 			"NP_HOSTNAME_INVALID", 
 			"An invalid (not known to DNS) hostname",
-			"nosuchhost.altinity.com",
+			"nosuchhost.nagios-plugins.org",
 			);
 
 my $dns_server       = getTestParameter(