Răsfoiți Sursa

Change default host names for some tests

Testing "nagiosplugins.org" will currently not work.
Holger Weiss 12 ani în urmă
părinte
comite
aac0980edb
2 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 4 4
      plugins/t/check_dig.t
  2. 1 1
      plugins/t/check_http.t

+ 4 - 4
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",
-			"nagiosplugins.org"
+			"orwell.monitoring-plugins.org"
 			);
 
 my $hostname_valid_ip = getTestParameter(
 			"NP_HOSTNAME_VALID_IP",
 			"The IP address of the valid hostname $hostname_valid",
-			"67.207.143.200",
+			"130.133.8.40",
 			);
 
 my $hostname_valid_reverse = getTestParameter(
 			"NP_HOSTNAME_VALID_REVERSE",
 			"The hostname of $hostname_valid_ip",
-			"nagiosplugins.org.",
+			"orwell.monitoring-plugins.org.",
 			);
 
 my $hostname_invalid = getTestParameter(
 			"NP_HOSTNAME_INVALID",
 			"An invalid (not known to DNS) hostname",
-			"nosuchhost.altinity.com",
+			"nosuchhost.monitoring-plugins.org",
 			);
 
 my $dns_server       = getTestParameter(

+ 1 - 1
plugins/t/check_http.t

@@ -32,7 +32,7 @@ my $internet_access = getTestParameter( "NP_INTERNET_ACCESS",
 
 my $host_tcp_http2  = getTestParameter( "NP_HOST_TCP_HTTP2",
             "A host providing an index page containing the string 'nagios'",
-            "nagiosplugins.org" );
+            "nagios.org" );
 
 
 $res = NPTest->testCmd(