YARN-11464: TestFSQueueConverter#testAutoCreateV2FlagsInWeightMode has a missing dot before auto-queue-creation-v2.enabled for method call assertNoValueForQueues (#5792)
Co-authored-by: Susheel Gupta <susheel.gupta@cloudera.com>
This commit is contained in:
parent
fac7d26c5d
commit
c13d92996d
@ -344,6 +344,10 @@ public class TestFSQueueConverter {
|
||||
assertTrue("root.admins autocreate v2 flag",
|
||||
csConfig.getBoolean(
|
||||
PREFIX + "root.admins.auto-queue-creation-v2.enabled", false));
|
||||
assertTrue("root.admins.alice autocreate v2 flag",
|
||||
csConfig.getBoolean(
|
||||
PREFIX + "root.admins.alice.auto-queue-creation-v2.enabled",
|
||||
false));
|
||||
assertTrue("root.users autocreate v2 flag",
|
||||
csConfig.getBoolean(
|
||||
PREFIX + "root.users.auto-queue-creation-v2.enabled", false));
|
||||
@ -351,13 +355,15 @@ public class TestFSQueueConverter {
|
||||
csConfig.getBoolean(
|
||||
PREFIX + "root.misc.auto-queue-creation-v2.enabled", false));
|
||||
|
||||
//leaf queue root.admins.alice is removed from the below list
|
||||
//adding reservation to a leaf, it's queueType changes to FSParentQueue
|
||||
Set<String> leafs = Sets.difference(ALL_QUEUES,
|
||||
Sets.newHashSet("root",
|
||||
"root.default",
|
||||
"root.admins",
|
||||
"root.users",
|
||||
"root.misc"));
|
||||
assertNoValueForQueues(leafs, "auto-queue-creation-v2.enabled",
|
||||
"root.misc",
|
||||
"root.admins.alice"));
|
||||
assertNoValueForQueues(leafs, ".auto-queue-creation-v2.enabled",
|
||||
csConfig);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user