nizhikov commented on a change in pull request #8038:
URL: https://github.com/apache/ignite/pull/8038#discussion_r481098398



##########
File path: 
modules/core/src/test/java/org/apache/ignite/internal/processors/security/impl/TestCertificateSecurityProcessor.java
##########
@@ -70,14 +73,18 @@ public TestCertificateSecurityProcessor(GridKernalContext 
ctx, Collection<TestSe
 
     /** {@inheritDoc} */
     @Override public SecurityContext authenticateNode(ClusterNode node, 
SecurityCredentials cred) {
-        return new TestSecurityContext(
+        SecurityContext res = new TestSecurityContext(
             new TestSecuritySubject()
                 .setType(REMOTE_NODE)
                 .setId(node.id())
                 .setAddr(new InetSocketAddress(F.first(node.addresses()), 0))
                 .setLogin("")
                 .setPerms(ALLOW_ALL)
         );
+
+        SECURITY_CONTEXTS.put(res.subject().id(), res);

Review comment:
       Why do you mad `SECURITY_CONTEXTS` static?
   AFAICS it used in a non-static context only.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to