You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ae...@apache.org on 2017/04/17 17:28:25 UTC
[26/50] hadoop git commit: YARN-6461. TestRMAdminCLI has very low
test timeouts. Contributed by Eric Badger
YARN-6461. TestRMAdminCLI has very low test timeouts. Contributed by Eric Badger
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/90d97372
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/90d97372
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/90d97372
Branch: refs/heads/HDFS-7240
Commit: 90d97372ed11aaa95d338db8583f578da159834a
Parents: 0e065f2
Author: Jason Lowe <jl...@yahoo-inc.com>
Authored: Tue Apr 11 09:16:11 2017 -0500
Committer: Jason Lowe <jl...@yahoo-inc.com>
Committed: Tue Apr 11 09:16:11 2017 -0500
----------------------------------------------------------------------
.../hadoop/yarn/client/cli/TestRMAdminCLI.java | 32 ++++++++++----------
1 file changed, 16 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/90d97372/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestRMAdminCLI.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestRMAdminCLI.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestRMAdminCLI.java
index a2f5330..013c227 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestRMAdminCLI.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestRMAdminCLI.java
@@ -187,14 +187,14 @@ public class TestRMAdminCLI {
dummyNodeLabelsManager.init(conf);
}
- @Test(timeout=500)
+ @Test
public void testRefreshQueues() throws Exception {
String[] args = { "-refreshQueues" };
assertEquals(0, rmAdminCLI.run(args));
verify(admin).refreshQueues(any(RefreshQueuesRequest.class));
}
- @Test(timeout=500)
+ @Test
public void testRefreshUserToGroupsMappings() throws Exception {
String[] args = { "-refreshUserToGroupsMappings" };
assertEquals(0, rmAdminCLI.run(args));
@@ -202,7 +202,7 @@ public class TestRMAdminCLI {
any(RefreshUserToGroupsMappingsRequest.class));
}
- @Test(timeout=500)
+ @Test
public void testRefreshSuperUserGroupsConfiguration() throws Exception {
String[] args = { "-refreshSuperUserGroupsConfiguration" };
assertEquals(0, rmAdminCLI.run(args));
@@ -210,14 +210,14 @@ public class TestRMAdminCLI {
any(RefreshSuperUserGroupsConfigurationRequest.class));
}
- @Test(timeout=500)
+ @Test
public void testRefreshAdminAcls() throws Exception {
String[] args = { "-refreshAdminAcls" };
assertEquals(0, rmAdminCLI.run(args));
verify(admin).refreshAdminAcls(any(RefreshAdminAclsRequest.class));
}
- @Test(timeout = 5000)
+ @Test
public void testRefreshClusterMaxPriority() throws Exception {
String[] args = { "-refreshClusterMaxPriority" };
assertEquals(0, rmAdminCLI.run(args));
@@ -225,14 +225,14 @@ public class TestRMAdminCLI {
any(RefreshClusterMaxPriorityRequest.class));
}
- @Test(timeout=500)
+ @Test
public void testRefreshServiceAcl() throws Exception {
String[] args = { "-refreshServiceAcl" };
assertEquals(0, rmAdminCLI.run(args));
verify(admin).refreshServiceAcls(any(RefreshServiceAclsRequest.class));
}
- @Test(timeout=500)
+ @Test
public void testUpdateNodeResource() throws Exception {
String nodeIdStr = "0.0.0.0:0";
int memSize = 2048;
@@ -256,7 +256,7 @@ public class TestRMAdminCLI {
resource);
}
- @Test(timeout=500)
+ @Test
public void testUpdateNodeResourceWithInvalidValue() throws Exception {
String nodeIdStr = "0.0.0.0:0";
int memSize = -2048;
@@ -270,7 +270,7 @@ public class TestRMAdminCLI {
any(UpdateNodeResourceRequest.class));
}
- @Test(timeout=500)
+ @Test
public void testRefreshNodes() throws Exception {
String[] args = { "-refreshNodes" };
assertEquals(0, rmAdminCLI.run(args));
@@ -373,7 +373,7 @@ public class TestRMAdminCLI {
assertEquals(-1, rmAdminCLI.run(invalidTrackingArgs));
}
- @Test(timeout=500)
+ @Test
public void testGetGroups() throws Exception {
when(admin.getGroupsForUser(eq("admin"))).thenReturn(
new String[] {"group1", "group2"});
@@ -395,7 +395,7 @@ public class TestRMAdminCLI {
}
}
- @Test(timeout = 500)
+ @Test
public void testTransitionToActive() throws Exception {
String[] args = {"-transitionToActive", "rm1"};
@@ -414,7 +414,7 @@ public class TestRMAdminCLI {
verify(haadmin, times(1)).getServiceStatus();
}
- @Test(timeout = 500)
+ @Test
public void testTransitionToStandby() throws Exception {
String[] args = {"-transitionToStandby", "rm1"};
@@ -431,7 +431,7 @@ public class TestRMAdminCLI {
any(HAServiceProtocol.StateChangeRequestInfo.class));
}
- @Test(timeout = 500)
+ @Test
public void testGetServiceState() throws Exception {
String[] args = {"-getServiceState", "rm1"};
@@ -464,7 +464,7 @@ public class TestRMAdminCLI {
rmAdminCLIWithHAEnabled.setOut(System.out);
}
- @Test(timeout = 500)
+ @Test
public void testCheckHealth() throws Exception {
String[] args = {"-checkHealth", "rm1"};
@@ -482,7 +482,7 @@ public class TestRMAdminCLI {
/**
* Test printing of help messages
*/
- @Test(timeout=500)
+ @Test
public void testHelp() throws Exception {
PrintStream oldOutPrintStream = System.out;
PrintStream oldErrPrintStream = System.err;
@@ -624,7 +624,7 @@ public class TestRMAdminCLI {
}
}
- @Test(timeout=500)
+ @Test
public void testException() throws Exception {
PrintStream oldErrPrintStream = System.err;
ByteArrayOutputStream dataErr = new ByteArrayOutputStream();
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org