@@ -3,16 +3,18 @@ package operators
3
3
import (
4
4
"context"
5
5
"fmt"
6
+
6
7
"github.com/google/go-github/github"
7
8
g "github.com/onsi/ginkgo"
8
9
o "github.com/onsi/gomega"
9
10
10
- exutil "github.com/openshift/origin/test/extended/util"
11
- "k8s.io/apimachinery/pkg/util/wait"
12
- e2e "k8s.io/kubernetes/test/e2e/framework"
13
11
"path/filepath"
14
12
"strings"
15
13
"time"
14
+
15
+ exutil "github.com/openshift/origin/test/extended/util"
16
+ "k8s.io/apimachinery/pkg/util/wait"
17
+ e2e "k8s.io/kubernetes/test/e2e/framework"
16
18
)
17
19
18
20
var _ = g .Describe ("[Feature:Platform] OLM should" , func () {
@@ -209,4 +211,19 @@ var _ = g.Describe("[Feature:Platform] an end user use OLM", func() {
209
211
o .Expect (err ).NotTo (o .HaveOccurred ())
210
212
o .Expect (output ).To (o .ContainSubstring (etcdClusterName ))
211
213
})
214
+
215
+ // OCP-24829 - Report `Upgradeable` in OLM ClusterOperators status
216
+
217
+ g .It ("Report Upgradeable in OLM ClusterOperators status" , func () {
218
+ olmCOs := []string {"operator-lifecycle-manager" , "operator-lifecycle-manager-catalog" , "operator-lifecycle-manager-packageserver" }
219
+ for _ , co := range olmCOs {
220
+ msg , err := oc .AsAdmin ().WithoutNamespace ().Run ("get" ).Args ("co" , co , "-o=jsonpath={range .status.conditions[*]}{.type}{' '}{.status}" ).Output ()
221
+ if err != nil {
222
+ e2e .Failf ("Unable to get co %s status, error:%v" , msg , err )
223
+ }
224
+ o .Expect (err ).NotTo (o .HaveOccurred ())
225
+ o .Expect (msg ).To (o .ContainSubstring ("Upgradeable True" ))
226
+ }
227
+
228
+ })
212
229
})
0 commit comments