ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [22/35] incubator-ignite git commit: #gg-9809: should not set DiscoverySpiNodeAuthenticator in os.
Date Tue, 24 Feb 2015 06:59:25 GMT
#gg-9809: should not set DiscoverySpiNodeAuthenticator in os.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/2b388623
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/2b388623
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/2b388623

Branch: refs/heads/sprint-2
Commit: 2b388623c13320abfd45a662aaa28935c8b050c6
Parents: f7230aa
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Wed Feb 18 17:23:02 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Wed Feb 18 17:23:02 2015 +0300

----------------------------------------------------------------------
 .../discovery/tcp/TcpDiscoverySpiStartStopSelfTest.java | 12 +-----------
 .../testframework/junits/spi/GridSpiAbstractTest.java   | 12 ------------
 2 files changed, 1 insertion(+), 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2b388623/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpiStartStopSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpiStartStopSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpiStartStopSelfTest.java
index 2b6bcdd..318a3a0 100644
--- a/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpiStartStopSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpiStartStopSelfTest.java
@@ -65,16 +65,6 @@ public class TcpDiscoverySpiStartStopSelfTest extends GridSpiStartStopAbstractTe
      */
     @GridSpiTestConfig
     public DiscoverySpiNodeAuthenticator getAuthenticator() {
-        return new DiscoverySpiNodeAuthenticator() {
-            @Override public SecurityContext authenticateNode(ClusterNode n, GridSecurityCredentials
cred) {
-                GridSecuritySubject subj = getGridSecuritySubject(GridSecuritySubjectType.REMOTE_NODE,
n.id());
-
-                return ((IgniteKernal) grid()).context().security().createSecurityContext(subj);
-            }
-
-            @Override public boolean isGlobalNodeAuthentication() {
-                return false;
-            }
-        };
+        return null;
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2b388623/modules/core/src/test/java/org/apache/ignite/testframework/junits/spi/GridSpiAbstractTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/testframework/junits/spi/GridSpiAbstractTest.java
b/modules/core/src/test/java/org/apache/ignite/testframework/junits/spi/GridSpiAbstractTest.java
index c524398..e4b0c24 100644
--- a/modules/core/src/test/java/org/apache/ignite/testframework/junits/spi/GridSpiAbstractTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/testframework/junits/spi/GridSpiAbstractTest.java
@@ -332,18 +332,6 @@ public abstract class GridSpiAbstractTest<T extends IgniteSpi>
extends GridAbstr
 
         getTestResources().inject(discoSpi);
 
-        discoSpi.setAuthenticator(new DiscoverySpiNodeAuthenticator() {
-            @Override public SecurityContext authenticateNode(ClusterNode n, GridSecurityCredentials
cred) {
-                GridSecuritySubject subj = getGridSecuritySubject(GridSecuritySubjectType.REMOTE_NODE,
n.id());
-
-                return ((IgniteKernal) grid()).context().security().createSecurityContext(subj);
-            }
-
-            @Override public boolean isGlobalNodeAuthentication() {
-                return false;
-            }
-        });
-
         configure(discoSpi);
 
         if (discoSpi.getNodeAttributes() != null)


Mime
View raw message