Kuan-Po Tseng created YUNIKORN-2124:
---------------------------------------

             Summary: Fix incorrect test in queue.go#TestNewConfiguredQueue
                 Key: YUNIKORN-2124
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2124
             Project: Apache YuniKorn
          Issue Type: Task
          Components: core - scheduler, test - unit
            Reporter: Kuan-Po Tseng
            Assignee: Kuan-Po Tseng


in unit test queue.go#TestNewConfiguredQueue

// case 0: leaf can use template

[https://github.com/apache/yunikorn-core/blob/284cc92974a7330c95ad3c6ecdf05ea68b9eee9d/pkg/scheduler/objects/queue_test.go#L2225-L2226]

This test is flawed as it erroneously allows managed leaf queues to utilize 
child template and it consistently passes because the {{getResourceConf}} 
function lacks the required randomness. 
([https://github.com/apache/yunikorn-core/blob/284cc92974a7330c95ad3c6ecdf05ea68b9eee9d/pkg/scheduler/objects/queue_test.go#L1728])
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to