Skip to content

Commit

Permalink
[Auto TC] Implement packages API server and list packagemanifest info…
Browse files Browse the repository at this point in the history
… with namespace not NULL
  • Loading branch information
Bruno Dias committed Dec 12, 2019
1 parent 81205d1 commit 86e43ee
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/extended/operators/olm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package operators

import (
"fmt"
"strings"

g "github.com/onsi/ginkgo"
o "github.com/onsi/gomega"
Expand Down Expand Up @@ -87,4 +88,21 @@ var _ = g.Describe("[Feature:Platform] OLM should", func() {
o.Expect(msg).To(o.Equal("IfNotPresent"))
}
})

// OCP-21082 - Implement packages API server and list packagemanifest info with namespace not NULL
// author: [email protected]
g.It("Implement packages API server and list packagemanifest info with namespace not NULL", func() {
msg, err := oc.AsAdmin().WithoutNamespace().Run("get").Args("packagemanifest", "--all-namespaces", "--no-headers").Output()
o.Expect(err).NotTo(o.HaveOccurred())
packageserverLines := strings.Split(msg, "\n")
if len(packageserverLines) > 0 {
packageserverLine := strings.Fields(packageserverLines[0])
if strings.Index(packageserverLines[0], packageserverLine[0]) != 0 {
e2e.Failf("It should display a namespace for CSV: %s [ref:bz1670311]", packageserverLines[0])
}
} else {
e2e.Failf("No packages for evaluating if package namespace is not NULL")
}
})

})

0 comments on commit 86e43ee

Please sign in to comment.