Sega76 commented on a change in pull request #8402:
URL: https://github.com/apache/ignite/pull/8402#discussion_r524488550



##########
File path: 
modules/control-utility/src/test/java/org/apache/ignite/util/GridCommandHandlerTest.java
##########
@@ -2293,6 +2293,41 @@ public void testClusterSnapshotCreate() throws Exception 
{
         assertTrue("Snapshot must contains cache data [left=" + range + ']', 
range.isEmpty());
     }
 
+    /** @throws Exception If failed. */
+    @Test
+    public void testClusterSnapshotStatus() throws Exception {
+        int keysCnt = 100;
+        String snpName = "snapshot_02052020";
+
+        IgniteEx ig = startGrid(0);
+        ig.cluster().state(ACTIVE);
+
+        createCacheAndPreload(ig, keysCnt);
+
+        CommandHandler h = new CommandHandler();
+
+        assertEquals(EXIT_CODE_OK, execute(h, "--snapshot", "status"));
+
+        assertTrue(h.getLastOperationResult().toString().contains("No snapshot 
operations."));
+
+        assertEquals(EXIT_CODE_OK, execute(h, "--snapshot", "create", 
snpName));
+
+        assertEquals(EXIT_CODE_OK, execute(h, "--snapshot", "status"));
+
+        assertTrue(h.getLastOperationResult().toString()
+                .contains("Snapshot operation in progress on nodes with 
Consistent ID:"));

Review comment:
       added assert




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