Flaugh24 commented on code in PR #1569:
URL: https://github.com/apache/ignite-3/pull/1569#discussion_r1122991863


##########
modules/cluster-management/src/test/java/org/apache/ignite/internal/cluster/management/ClusterInitializerTest.java:
##########
@@ -210,13 +210,17 @@ private CompletableFuture<NetworkMessage> 
initCompleteMessage() {
      */
     @Test
     void testInitIllegalArguments() {
-        assertThrows(IllegalArgumentException.class, () -> 
clusterInitializer.initCluster(List.of(), List.of(), "cluster"));
+        assertThrows(IllegalArgumentException.class,

Review Comment:
   accidentally 



##########
modules/cluster-management/src/test/java/org/apache/ignite/internal/cluster/management/raft/CmgRaftGroupListenerTest.java:
##########
@@ -146,6 +149,31 @@ void restoreFromSnapshotTriggersTopologyLeapEvent() {
         verify(logicalTopology).fireTopologyLeap();
     }
 
+    @Test
+    void absentAuthConfigUpdateErasesAuthConfig() {
+        ClusterState clusterState = clusterState(
+                msgFactory,
+                Set.of("foo"),
+                Set.of("bar"),
+                IgniteProductVersion.CURRENT_VERSION,
+                clusterTag,
+                authentication(msgFactory, disabled())
+        );
+
+        
listener.onWrite(iterator(msgFactory.initCmgStateCommand().node(node).clusterState(clusterState).build()));
+
+        ClusterState clusterStateToUpdate = clusterState(
+                msgFactory,
+                clusterState.cmgNodes(),
+                clusterState.metaStorageNodes(),
+                clusterState.igniteVersion(),
+                clusterState.clusterTag()
+        );
+
+        
listener.onWrite(iterator(msgFactory.updateClusterStateCommand().clusterState(clusterStateToUpdate).build()));
+        assertNull(listener.storage().getClusterState().restAuthToApply());

Review Comment:
   done



-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to