Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2124

Fix incorrect test in queue_test.go#TestNewConfiguredQueue

    XMLWordPrintableJSON

Details

    Description

      in unit test queue_test.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

      Attachments

        Issue Links

          Activity

            People

              brandboat Kuan Po Tseng
              brandboat Kuan Po Tseng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: