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

mock core scheduler interactions for shim unit tests

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      In the shim unit tests we start a full core scheduler. This leads to issues as when the full core is started we expect that there is a full working K8s cluster underneath.

      This is not the case and should not be the case for the unit tests. We need to mock the core scheduler instead of starting the full scheduler. There should be no need for build in workaround by placing code in "if test skip this part".

      The code should be robust enough to either handle the nil values that occur in tests or we need to return "empty" values.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            minni31 Minni Mittal
            wilfreds Wilfred Spiegelenburg

            Dates

              Created:
              Updated:

              Slack

                Issue deployment