MAPREDUCE-7066. TestQueue fails on Java9
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
parent
6bd130ea45
commit
86816da5b4
|
@ -153,9 +153,10 @@ public class TestQueue {
|
||||||
writer = new StringWriter();
|
writer = new StringWriter();
|
||||||
QueueManager.dumpConfiguration(writer, conf);
|
QueueManager.dumpConfiguration(writer, conf);
|
||||||
result = writer.toString();
|
result = writer.toString();
|
||||||
assertEquals(
|
assertTrue(result.contains("{\"queues\":[{\"name\":\"default\",\"state\":\"running\",\"acl_submit_job\":\"*\",\"acl_administer_jobs\":\"*\",\"properties\":[],\"children\":[]},{\"name\":\"q1\",\"state\":\"running\",\"acl_submit_job\":\" \",\"acl_administer_jobs\":\" \",\"properties\":[],\"children\":[{\"name\":\"q1:q2\",\"state\":\"running\",\"acl_submit_job\":\" \",\"acl_administer_jobs\":\" \",\"properties\":["));
|
||||||
"{\"queues\":[{\"name\":\"default\",\"state\":\"running\",\"acl_submit_job\":\"*\",\"acl_administer_jobs\":\"*\",\"properties\":[],\"children\":[]},{\"name\":\"q1\",\"state\":\"running\",\"acl_submit_job\":\" \",\"acl_administer_jobs\":\" \",\"properties\":[],\"children\":[{\"name\":\"q1:q2\",\"state\":\"running\",\"acl_submit_job\":\" \",\"acl_administer_jobs\":\" \",\"properties\":[{\"key\":\"capacity\",\"value\":\"20\"},{\"key\":\"user-limit\",\"value\":\"30\"}],\"children\":[]}]}]}",
|
assertTrue(result.contains("{\"key\":\"capacity\",\"value\":\"20\"}"));
|
||||||
result);
|
assertTrue(result.contains("{\"key\":\"user-limit\",\"value\":\"30\"}"));
|
||||||
|
assertTrue(result.contains("],\"children\":[]}]}]}"));
|
||||||
// test constructor QueueAclsInfo
|
// test constructor QueueAclsInfo
|
||||||
QueueAclsInfo qi = new QueueAclsInfo();
|
QueueAclsInfo qi = new QueueAclsInfo();
|
||||||
assertNull(qi.getQueueName());
|
assertNull(qi.getQueueName());
|
||||||
|
|
Loading…
Reference in New Issue