Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-5001

Add unit tests to image-updater pkg/image

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • None
    • GitOps Tangerine - Sprint 3261

      Story (Required)

      As a developer using image-updater, I want to make sure all packages and commands are fully tested.  We should add tests to verify their expected behavior.

      Current unit test coverage in pkg/image: 70.27%
      credentials.go: 69
      image: 78
      kustomize: 0
      matchfunc.go: 100
      options.go: 84
      version.go: 39

      Acceptance Criteria (Mandatory)

      • analyze the current unit test coverage in pkg/image
      • add unit tests so that all testable code paths are covered
      • code blocks that are not testable by unit tests under the current testing framework can be exempted

       

      INVEST Checklist

      Dependencies identified

      Blockers noted and expected delivery timelines set

      Design is implementable

      Acceptance criteria agreed upon

      Story estimated

      Legend

      Unknown

      Verified

      Unsatisfied

      Done Checklist

      • Code is completed, reviewed, documented and checked in
      • Unit and integration test automation have been delivered and running cleanly in continuous integration/staging/canary environment
      • Continuous Delivery pipeline(s) is able to proceed with new code included
      • Customer facing documentation, API docs etc. are produced/updated, reviewed and published
      • Acceptance criteria are met

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: