Skip to content

Commit 544842d

Browse files
UPSTREAM: <carry>: [OTE] add catalog tests from openshift/origin
1 parent 1b06fc6 commit 544842d

File tree

226 files changed

+10078
-4761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+10078
-4761
lines changed

openshift/tests-extension/.openshift-tests-extension/openshift_payload_olmv1.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
[
2+
{
3+
"name": "[sig-olmv1][OCPFeatureGate:NewOLM][Skipped:Disconnected] OLMv1 Catalogs should be installed",
4+
"labels": {},
5+
"resources": {
6+
"isolation": {}
7+
},
8+
"source": "openshift:payload:olmv1",
9+
"lifecycle": "blocking",
10+
"environmentSelector": {}
11+
},
12+
{
13+
"name": "[sig-olmv1][OCPFeatureGate:NewOLM][Skipped:Disconnected] OLMv1 New Catalog Install should fail to install if it has an invalid reference",
14+
"labels": {},
15+
"resources": {
16+
"isolation": {}
17+
},
18+
"source": "openshift:payload:olmv1",
19+
"lifecycle": "blocking",
20+
"environmentSelector": {}
21+
},
222
{
323
"name": "[sig-olmv1] OLMv1 should pass a trivial sanity check",
424
"labels": {},

openshift/tests-extension/cmd/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ import (
2020
"github.com/spf13/cobra"
2121

2222
// The import below is necessary to ensure that the OLMv1 tests are registered with the extension.
23+
"github/operator-framework-operator-controller/openshift/tests-extension/pkg/commons"
24+
"github/operator-framework-operator-controller/openshift/tests-extension/pkg/env"
2325
_ "github/operator-framework-operator-controller/openshift/tests-extension/test"
24-
"github/operator-framework-operator-controller/openshift/tests-extension/test/env"
2526
)
2627

2728
func main() {
@@ -141,6 +142,8 @@ func main() {
141142
// Initialize the environment before running any tests.
142143
specs.AddBeforeAll(func() {
143144
env.Init()
145+
// Ensure that OLMv1 is enabled
146+
commons.CheckFeatureCapability()
144147
})
145148

146149
ext.AddSpecs(specs)

openshift/tests-extension/go.mod

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,62 +3,63 @@ module github/operator-framework-operator-controller/openshift/tests-extension
33
go 1.24.3
44

55
require (
6-
github.com/onsi/ginkgo/v2 v2.22.0
7-
github.com/onsi/gomega v1.36.1
6+
github.com/onsi/ginkgo/v2 v2.23.3
7+
github.com/onsi/gomega v1.37.0
88
github.com/openshift-eng/openshift-tests-extension v0.0.0-20250722101414-8083129ab8f9
99
github.com/openshift/api v0.0.0-20250718204806-3333746edfbf
1010
github.com/openshift/client-go v0.0.0-20250710075018-396b36f983ee
11-
github.com/spf13/cobra v1.8.1
11+
github.com/operator-framework/operator-controller v1.3.0
12+
github.com/spf13/cobra v1.9.1
13+
k8s.io/api v0.33.2
1214
k8s.io/apiextensions-apiserver v0.33.2
1315
k8s.io/apimachinery v0.33.3
1416
k8s.io/client-go v0.33.2
1517
sigs.k8s.io/controller-runtime v0.21.0
1618
)
1719

1820
require (
19-
cel.dev/expr v0.19.1 // indirect
20-
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
21+
cel.dev/expr v0.23.1 // indirect
22+
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
2123
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
22-
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
24+
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
2325
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
2426
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
2527
github.com/go-logr/logr v1.4.2 // indirect
2628
github.com/go-openapi/jsonpointer v0.21.0 // indirect
27-
github.com/go-openapi/jsonreference v0.20.2 // indirect
28-
github.com/go-openapi/swag v0.23.0 // indirect
29+
github.com/go-openapi/jsonreference v0.21.0 // indirect
30+
github.com/go-openapi/swag v0.23.1 // indirect
2931
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
3032
github.com/gogo/protobuf v1.3.2 // indirect
31-
github.com/google/cel-go v0.23.2 // indirect
33+
github.com/google/cel-go v0.25.0 // indirect
3234
github.com/google/gnostic-models v0.6.9 // indirect
3335
github.com/google/go-cmp v0.7.0 // indirect
34-
github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db // indirect
36+
github.com/google/pprof v0.0.0-20250423184734-337e5dd93bb4 // indirect
3537
github.com/google/uuid v1.6.0 // indirect
3638
github.com/inconshreveable/mousetrap v1.1.0 // indirect
3739
github.com/josharian/intern v1.0.0 // indirect
3840
github.com/json-iterator/go v1.1.12 // indirect
39-
github.com/mailru/easyjson v0.7.7 // indirect
41+
github.com/mailru/easyjson v0.9.0 // indirect
4042
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4143
github.com/modern-go/reflect2 v1.0.2 // indirect
4244
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
4345
github.com/pkg/errors v0.9.1 // indirect
44-
github.com/spf13/pflag v1.0.5 // indirect
46+
github.com/spf13/pflag v1.0.6 // indirect
4547
github.com/stoewer/go-strcase v1.3.0 // indirect
4648
github.com/x448/float16 v0.8.4 // indirect
47-
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
48-
golang.org/x/net v0.38.0 // indirect
49-
golang.org/x/oauth2 v0.27.0 // indirect
50-
golang.org/x/sys v0.31.0 // indirect
51-
golang.org/x/term v0.30.0 // indirect
52-
golang.org/x/text v0.23.0 // indirect
53-
golang.org/x/time v0.9.0 // indirect
54-
golang.org/x/tools v0.26.0 // indirect
55-
google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 // indirect
56-
google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect
57-
google.golang.org/protobuf v1.36.5 // indirect
49+
golang.org/x/exp v0.0.0-20250228200357-dead58393ab7 // indirect
50+
golang.org/x/net v0.40.0 // indirect
51+
golang.org/x/oauth2 v0.29.0 // indirect
52+
golang.org/x/sys v0.33.0 // indirect
53+
golang.org/x/term v0.32.0 // indirect
54+
golang.org/x/text v0.25.0 // indirect
55+
golang.org/x/time v0.11.0 // indirect
56+
golang.org/x/tools v0.33.0 // indirect
57+
google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb // indirect
58+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250428153025-10db94c68c34 // indirect
59+
google.golang.org/protobuf v1.36.6 // indirect
5860
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
5961
gopkg.in/inf.v0 v0.9.1 // indirect
6062
gopkg.in/yaml.v3 v3.0.1 // indirect
61-
k8s.io/api v0.33.2 // indirect
6263
k8s.io/klog/v2 v2.130.1 // indirect
6364
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
6465
k8s.io/utils v0.0.0-20241210054802-24370beab758 // indirect

0 commit comments

Comments
 (0)