This is an automated email from the ASF dual-hosted git repository.
apkhmv pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push:
new 846b563f47 IGNITE-23194 Add missing test for recovery restart repl
command (#4378)
846b563f47 is described below
commit 846b563f4791590041ee600757da9c2d171778b4
Author: Vadim Pakhnushev <[email protected]>
AuthorDate: Mon Sep 16 17:42:40 2024 +0300
IGNITE-23194 Add missing test for recovery restart repl command (#4378)
---
.../partitions/reset/ItResetPartitionsCommandTest.java | 8 ++------
.../partitions/restart/ItRestartPartitionsCommandTest.java | 8 ++------
...mandTest.java => ItRestartPartitionsReplCommandTest.java} | 12 ++++--------
.../partitions/states/ItPartitionStatesCommandTest.java | 8 ++------
4 files changed, 10 insertions(+), 26 deletions(-)
diff --git
a/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/reset/ItResetPartitionsCommandTest.java
b/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/reset/ItResetPartitionsCommandTest.java
index 5756f3a10e..d3f526dd1b 100644
---
a/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/reset/ItResetPartitionsCommandTest.java
+++
b/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/reset/ItResetPartitionsCommandTest.java
@@ -17,14 +17,10 @@
package org.apache.ignite.internal.cli.commands.recovery.partitions.reset;
-import org.apache.ignite.internal.util.ArrayUtils;
-
/** Test class for {@link ResetPartitionsCommand}. */
public class ItResetPartitionsCommandTest extends ItResetPartitionsTest {
@Override
- protected void execute(String... args) {
- String[] fullArgs = ArrayUtils.concat(new String[] {"recovery",
"partitions", "reset"}, args);
-
- super.execute(fullArgs);
+ protected Class<?> getCommandClass() {
+ return ResetPartitionsCommand.class;
}
}
diff --git
a/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/restart/ItRestartPartitionsCommandTest.java
b/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/restart/ItRestartPartitionsCommandTest.java
index 65dfe2dfee..125025e84e 100644
---
a/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/restart/ItRestartPartitionsCommandTest.java
+++
b/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/restart/ItRestartPartitionsCommandTest.java
@@ -17,14 +17,10 @@
package org.apache.ignite.internal.cli.commands.recovery.partitions.restart;
-import org.apache.ignite.internal.util.ArrayUtils;
-
/** Test class for {@link RestartPartitionsCommand}. */
public class ItRestartPartitionsCommandTest extends ItRestartPartitionsTest {
@Override
- protected void execute(String... args) {
- String[] fullArgs = ArrayUtils.concat(new String[]{"recovery",
"partitions", "restart"}, args);
-
- super.execute(fullArgs);
+ protected Class<?> getCommandClass() {
+ return RestartPartitionsCommand.class;
}
}
diff --git
a/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/restart/ItRestartPartitionsCommandTest.java
b/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/restart/ItRestartPartitionsReplCommandTest.java
similarity index 70%
copy from
modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/restart/ItRestartPartitionsCommandTest.java
copy to
modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/restart/ItRestartPartitionsReplCommandTest.java
index 65dfe2dfee..2ebc30f3d6 100644
---
a/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/restart/ItRestartPartitionsCommandTest.java
+++
b/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/restart/ItRestartPartitionsReplCommandTest.java
@@ -17,14 +17,10 @@
package org.apache.ignite.internal.cli.commands.recovery.partitions.restart;
-import org.apache.ignite.internal.util.ArrayUtils;
-
-/** Test class for {@link RestartPartitionsCommand}. */
-public class ItRestartPartitionsCommandTest extends ItRestartPartitionsTest {
+/** Test class for {@link RestartPartitionsReplCommand}. */
+public class ItRestartPartitionsReplCommandTest extends
ItRestartPartitionsTest {
@Override
- protected void execute(String... args) {
- String[] fullArgs = ArrayUtils.concat(new String[]{"recovery",
"partitions", "restart"}, args);
-
- super.execute(fullArgs);
+ protected Class<?> getCommandClass() {
+ return RestartPartitionsReplCommand.class;
}
}
diff --git
a/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/states/ItPartitionStatesCommandTest.java
b/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/states/ItPartitionStatesCommandTest.java
index fd8c6f83cb..68a82ba797 100644
---
a/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/states/ItPartitionStatesCommandTest.java
+++
b/modules/cli/src/integrationTest/java/org/apache/ignite/internal/cli/commands/recovery/partitions/states/ItPartitionStatesCommandTest.java
@@ -17,14 +17,10 @@
package org.apache.ignite.internal.cli.commands.recovery.partitions.states;
-import org.apache.ignite.internal.util.ArrayUtils;
-
/** Test class for {@link PartitionStatesCommand}. */
public class ItPartitionStatesCommandTest extends ItPartitionStatesTest {
@Override
- protected void execute(String... args) {
- String[] fullArgs = ArrayUtils.concat(new String[] {"recovery",
"partitions", "states"}, args);
-
- super.execute(fullArgs);
+ protected Class<?> getCommandClass() {
+ return PartitionStatesCommand.class;
}
}