Uploaded image for project: 'OpenShift Node'
  1. OpenShift Node
  2. OCPNODE-2684

Add Unit tests to Daemonset

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • InstaSlice
    • BU Product Work
    • 5
    • False
    • None
    • False
    • OCPSTRAT-1591 - Dev P: Dynamic Accelerator slicer Operator (fka: InstaSlice)
    • OCP Node Sprint 262 (Blue)

      Add unit tests to the instaslice daemonset to increase the coverage.

      Present coverage

      test -s /home/svanka/go/src/instaslice-operator/bin/setup-envtest || GOBIN=/home/svanka/go/src/instaslice-operator/bin go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latestKUBEBUILDER_ASSETS="/home/svanka/go/src/instaslice-operator/bin/k8s/1.31.0-linux-amd64" go test $(go list ./... | grep -v /e2e) -coverprofile cover.out	
      
      github.com/openshift/instaslice-operator/api/v1alpha1		coverage: 0.0% of statements	
      github.com/openshift/instaslice-operator/cmd/daemonset		coverage: 0.0% of statements	
      github.com/openshift/instaslice-operator/cmd/controller		coverage: 0.0% of statements	
      github.com/openshift/instaslice-operator/test/utils		coverage: 0.0% of statementsok  	github.com/openshift/instaslice-operator/internal/controller	3.947s	coverage: 29.9% of statements
        

       

              svanka@redhat.com Sai Ramesh Vanka
              svanka@redhat.com Sai Ramesh Vanka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: