chesnokoff commented on code in PR #12521:
URL: https://github.com/apache/ignite/pull/12521#discussion_r2580928692
##########
modules/control-utility/src/test/java/org/apache/ignite/util/RollingUpgradeCommandTest.java:
##########
@@ -177,4 +190,109 @@ public void testForceEnable() {
assertTrue(crd.context().rollingUpgrade().enabled());
}
+
+ /** */
+ @Test
+ public void testStatusWhenDisabled() {
+ int res = execute(ROLLING_UPGRADE, STATUS);
+
+ assertEquals(EXIT_CODE_OK, res);
+
+ RollingUpgradeTaskResult taskRes =
(RollingUpgradeTaskResult)lastOperationResult;
+
+ assertNull(taskRes.errorMessage());
+ assertNull(taskRes.currentVersion());
+ assertNull(taskRes.targetVersion());
+
+ assertNull(taskRes.nodes());
+
+ RollingUpgradeStatusCommand statusCmd = new
RollingUpgradeStatusCommand();
+
+ List<String> lines = new ArrayList<>();
+
+ statusCmd.printResult(null, taskRes, lines::add);
+
+ List<String> expectedLines = new ArrayList<>();
+
+ expectedLines.add("Rolling upgrade status: disabled");
+
+ assertEquals(expectedLines, lines);
Review Comment:
Output
```
Rolling upgrade status: disabled
```
--
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]