You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2022/11/26 18:24:32 UTC

[ant] branch master updated: fix forward test, but I don't find any host with a stable reverse lookup

This is an automated email from the ASF dual-hosted git repository.

bodewig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
     new 7601bf176 fix forward test, but I don't find any host with a stable reverse lookup
7601bf176 is described below

commit 7601bf1767a0c191ff22f661c8fde97302d0cd3a
Author: Stefan Bodewig <st...@innoq.com>
AuthorDate: Sat Nov 26 19:23:52 2022 +0100

    fix forward test, but I don't find any host with a stable reverse lookup
---
 src/tests/antunit/taskdefs/hostinfo-test.xml | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/src/tests/antunit/taskdefs/hostinfo-test.xml b/src/tests/antunit/taskdefs/hostinfo-test.xml
index 1a42403e5..398bfafa2 100644
--- a/src/tests/antunit/taskdefs/hostinfo-test.xml
+++ b/src/tests/antunit/taskdefs/hostinfo-test.xml
@@ -27,10 +27,10 @@
   <property name="undef-ip4" value="0.0.0.0" />
   <property name="undef-ip6" value="::" />
       
-  <property name="xs4all-hostname" value="www.xs4all.nl" />
-  <property name="xs4all-domain" value="xs4all.nl" />
-  <property name="xs4all-realhost" value="www" />
-  <property name="xs4all-ip4" value="194.109.6.92" />
+  <property name="apache-hostname" value="ant.apache.org" />
+  <property name="apache-domain" value="apache.org" />
+  <property name="apache-realhost" value="ant" />
+  <property name="apache-ip4" value="151.101.2.132" />
     
   <target name="setUp">
   </target>
@@ -41,17 +41,18 @@
   </target>
 
     <target name="testForward" depends="setUp">
-      <hostinfo host="${xs4all-hostname}"/>
-      <au:assertEquals expected="${xs4all-realhost}" actual="${NAME}"/>
-      <au:assertEquals expected="${xs4all-domain}" actual="${DOMAIN}"/>
-      <au:assertEquals expected="${xs4all-ip4}" actual="${ADDR4}"/>
+      <hostinfo host="${apache-hostname}"/>
+      <au:assertEquals expected="${apache-realhost}" actual="${NAME}"/>
+      <au:assertEquals expected="${apache-domain}" actual="${DOMAIN}"/>
+      <au:assertEquals expected="${apache-ip4}" actual="${ADDR4}"/>
     </target>
     
-    <target name="testReverse" depends="setUp">
-      <hostinfo prefix="reverse" host="${xs4all-ip4}"/>
-      <au:assertEquals expected="${xs4all-realhost}" actual="${reverse.NAME}"/>
-      <au:assertEquals expected="${xs4all-domain}" actual="${reverse.DOMAIN}"/>
-      <au:assertEquals expected="${xs4all-ip4}" actual="${reverse.ADDR4}"/>
+    <target name="XtestReverse" depends="setUp"
+            description="there doesn't seem to be a host with a stable reverse name nowadays">
+      <hostinfo prefix="reverse" host="${apache-ip4}"/>
+      <au:assertEquals expected="${apache-realhost}" actual="${reverse.NAME}"/>
+      <au:assertEquals expected="${apache-domain}" actual="${reverse.DOMAIN}"/>
+      <au:assertEquals expected="${apache-ip4}" actual="${reverse.ADDR4}"/>
     </target>
     
     <target name="testUndef" depends="setUp">