YARN-10363. TestRMAdminCLI.testHelp is failing in branch-2.10. Contributed by
Bilwa S T.
This commit is contained in:
parent
1768618ab9
commit
87816e8a51
|
@ -775,11 +775,6 @@ public class TestRMAdminCLI {
|
||||||
"Usage: yarn rmadmin [-getServiceState <serviceId>]", dataErr, 0);
|
"Usage: yarn rmadmin [-getServiceState <serviceId>]", dataErr, 0);
|
||||||
testError(new String[] { "-help", "-checkHealth" },
|
testError(new String[] { "-help", "-checkHealth" },
|
||||||
"Usage: yarn rmadmin [-checkHealth <serviceId>]", dataErr, 0);
|
"Usage: yarn rmadmin [-checkHealth <serviceId>]", dataErr, 0);
|
||||||
testError(new String[] { "-help", "-failover" },
|
|
||||||
"Usage: yarn rmadmin " +
|
|
||||||
"[-failover [--forcefence] [--forceactive] " +
|
|
||||||
"<serviceId> <serviceId>]",
|
|
||||||
dataErr, 0);
|
|
||||||
|
|
||||||
testError(new String[] { "-help", "-badParameter" },
|
testError(new String[] { "-help", "-badParameter" },
|
||||||
"Usage: yarn rmadmin", dataErr, 0);
|
"Usage: yarn rmadmin", dataErr, 0);
|
||||||
|
@ -1062,7 +1057,7 @@ public class TestRMAdminCLI {
|
||||||
ByteArrayOutputStream errOutBytes = new ByteArrayOutputStream();
|
ByteArrayOutputStream errOutBytes = new ByteArrayOutputStream();
|
||||||
rmAdminCLIWithHAEnabled.setErrOut(new PrintStream(errOutBytes));
|
rmAdminCLIWithHAEnabled.setErrOut(new PrintStream(errOutBytes));
|
||||||
try {
|
try {
|
||||||
String[] args = { "-failover" };
|
String[] args = { "-transitionToActive" };
|
||||||
assertEquals(-1, rmAdminCLIWithHAEnabled.run(args));
|
assertEquals(-1, rmAdminCLIWithHAEnabled.run(args));
|
||||||
String errOut = new String(errOutBytes.toByteArray(), Charsets.UTF_8);
|
String errOut = new String(errOutBytes.toByteArray(), Charsets.UTF_8);
|
||||||
errOutBytes.reset();
|
errOutBytes.reset();
|
||||||
|
|
Loading…
Reference in New Issue