directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1704188 - in /directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec: EncKrbPrivPartDecoderTest.java KrbSafeBodyDecoderTest.java
Date Sun, 20 Sep 2015 20:32:02 GMT
Author: seelmann
Date: Sun Sep 20 20:31:57 2015
New Revision: 1704188

URL: http://svn.apache.org/viewvc?rev=1704188&view=rev
Log:
Revert back to 127.0.0.1 because that address is hardcoded in the encoded stream.

Modified:
    directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbPrivPartDecoderTest.java
    directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KrbSafeBodyDecoderTest.java

Modified: directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbPrivPartDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbPrivPartDecoderTest.java?rev=1704188&r1=1704187&r2=1704188&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbPrivPartDecoderTest.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/EncKrbPrivPartDecoderTest.java
Sun Sep 20 20:31:57 2015
@@ -145,7 +145,7 @@ public class EncKrbPrivPartDecoderTest
         EncKrbPrivPart encKrbPrivPart = container.getEncKrbPrivPart();
 
         String time = "20101119080043Z";
-        HostAddress ad = new HostAddress( InetAddress.getLocalHost() );
+        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
 
         assertTrue( Arrays.equals( new byte[]
             { 0, 1 }, encKrbPrivPart.getUserData() ) );
@@ -254,7 +254,7 @@ public class EncKrbPrivPartDecoderTest
 
         EncKrbPrivPart enKrbPrivPart = container.getEncKrbPrivPart();
 
-        HostAddress ad = new HostAddress( InetAddress.getLocalHost() );
+        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
 
         assertTrue( Arrays.equals( new byte[]
             { 0, 1 }, enKrbPrivPart.getUserData() ) );
@@ -358,7 +358,7 @@ public class EncKrbPrivPartDecoderTest
 
         EncKrbPrivPart encKrbPrivPart = container.getEncKrbPrivPart();
 
-        HostAddress ad = new HostAddress( InetAddress.getLocalHost() );
+        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
 
         assertTrue( Arrays.equals( new byte[]
             { 0, 1 }, encKrbPrivPart.getUserData() ) );
@@ -458,7 +458,7 @@ public class EncKrbPrivPartDecoderTest
 
         EncKrbPrivPart encKrbPrivPart = container.getEncKrbPrivPart();
 
-        HostAddress ad = new HostAddress( InetAddress.getLocalHost() );
+        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
 
         assertTrue( Arrays.equals( new byte[]
             { 0, 1 }, encKrbPrivPart.getUserData() ) );
@@ -582,7 +582,7 @@ public class EncKrbPrivPartDecoderTest
         EncKrbPrivPart encKrbPrivPart = container.getEncKrbPrivPart();
 
         String time = "20101119080043Z";
-        HostAddress ad = new HostAddress( InetAddress.getLocalHost() );
+        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
 
         assertTrue( Arrays.equals( new byte[]
             { 0, 1 }, encKrbPrivPart.getUserData() ) );
@@ -666,7 +666,7 @@ public class EncKrbPrivPartDecoderTest
 
         EncKrbPrivPart encKrbPrivPart = container.getEncKrbPrivPart();
 
-        HostAddress ad = new HostAddress( InetAddress.getLocalHost() );
+        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
 
         assertTrue( Arrays.equals( new byte[]
             { 0, 1 }, encKrbPrivPart.getUserData() ) );

Modified: directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KrbSafeBodyDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KrbSafeBodyDecoderTest.java?rev=1704188&r1=1704187&r2=1704188&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KrbSafeBodyDecoderTest.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KrbSafeBodyDecoderTest.java
Sun Sep 20 20:31:57 2015
@@ -145,7 +145,7 @@ public class KrbSafeBodyDecoderTest
         KrbSafeBody body = container.getKrbSafeBody();
 
         String time = "20101119080043Z";
-        HostAddress ad = new HostAddress( InetAddress.getLocalHost() );
+        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
 
         assertTrue( Arrays.equals( new byte[]
             { 0, 1 }, body.getUserData() ) );
@@ -254,7 +254,7 @@ public class KrbSafeBodyDecoderTest
 
         KrbSafeBody body = container.getKrbSafeBody();
 
-        HostAddress ad = new HostAddress( InetAddress.getLocalHost() );
+        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
 
         assertTrue( Arrays.equals( new byte[]
             { 0, 1 }, body.getUserData() ) );
@@ -358,7 +358,7 @@ public class KrbSafeBodyDecoderTest
 
         KrbSafeBody body = container.getKrbSafeBody();
 
-        HostAddress ad = new HostAddress( InetAddress.getLocalHost() );
+        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
 
         assertTrue( Arrays.equals( new byte[]
             { 0, 1 }, body.getUserData() ) );
@@ -458,7 +458,7 @@ public class KrbSafeBodyDecoderTest
 
         KrbSafeBody body = container.getKrbSafeBody();
 
-        HostAddress ad = new HostAddress( InetAddress.getLocalHost() );
+        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
 
         assertTrue( Arrays.equals( new byte[]
             { 0, 1 }, body.getUserData() ) );
@@ -582,7 +582,7 @@ public class KrbSafeBodyDecoderTest
         KrbSafeBody body = container.getKrbSafeBody();
 
         String time = "20101119080043Z";
-        HostAddress ad = new HostAddress( InetAddress.getLocalHost() );
+        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
 
         assertTrue( Arrays.equals( new byte[]
             { 0, 1 }, body.getUserData() ) );
@@ -666,7 +666,7 @@ public class KrbSafeBodyDecoderTest
 
         KrbSafeBody body = container.getKrbSafeBody();
 
-        HostAddress ad = new HostAddress( InetAddress.getLocalHost() );
+        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
 
         assertTrue( Arrays.equals( new byte[]
             { 0, 1 }, body.getUserData() ) );



Mime
View raw message