forked from openshift/osde2e
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimagestreams.go
More file actions
34 lines (25 loc) · 971 Bytes
/
imagestreams.go
File metadata and controls
34 lines (25 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package verify
import (
"context"
"github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/openshift/osde2e/pkg/common/alert"
"github.com/openshift/osde2e/pkg/common/helper"
"github.com/openshift/osde2e/pkg/common/util"
)
var imageStreamsTestName string = "[Suite: e2e] ImageStreams"
func init() {
alert.RegisterGinkgoAlert(imageStreamsTestName, "SD-CICD", "Diego Santamaria", "sd-cicd-alerts", "sd-cicd@redhat.com", 4)
}
var _ = ginkgo.Describe(imageStreamsTestName, func() {
h := helper.New()
util.GinkgoIt("should exist in the cluster", func() {
list, err := h.Image().ImageV1().ImageStreams(metav1.NamespaceAll).List(context.TODO(), metav1.ListOptions{})
Expect(err).NotTo(HaveOccurred(), "couldn't list ImageStreams")
Expect(list).NotTo(BeNil())
numImages := len(list.Items)
minImages := 50
Expect(numImages).Should(BeNumerically(">", minImages), "need more images")
}, 300)
})