This test case introduced by
YARN-3131 works well on CapacityScheduler but not on FairScheduler, since CS doesn't allow dynamically create a queue, while FS supports it. So if you give a random queue name, CS will reject it, but FS will create a new queue for it by default.
One simple solution is to specific CS in this test case. /cc Chang Li. I was thinking about creating another test case for FS. But for the code introduced by
YARN-3131, it may be not necessary.