@@ -788,7 +788,7 @@ var _ = Describe("Operator Controller Test", func() {
788788 BeforeEach (func () {
789789 By ("initializing cluster state" )
790790 pkgName = "prometheus"
791- pkgChan = "alpha "
791+ pkgChan = "non-existent "
792792 operator = & operatorsv1alpha1.Operator {
793793 ObjectMeta : metav1.ObjectMeta {Name : opKey .Name },
794794 Spec : operatorsv1alpha1.OperatorSpec {
@@ -1048,28 +1048,27 @@ func verifyConditionsInvariants(op *operatorsv1alpha1.Operator) {
10481048 }
10491049}
10501050
1051- var betaChannel = catalogmetadata.Channel {Channel : declcfg.Channel {
1052- Name : "beta" ,
1053- Entries : []declcfg.ChannelEntry {
1054- {
1055- Name : "operatorhub/prometheus/0.37.0" ,
1056- },
1057- {
1058- Name : "operatorhub/prometheus/0.47.0" ,
1059- Replaces : "operatorhub/prometheus/0.37.0" ,
1060- },
1061- {
1062- Name : "operatorhub/plain/0.1.0" ,
1063- },
1064- {
1065- Name : "operatorhub/badmedia/0.1.0" ,
1066- },
1067- },
1068- }}
1051+ var (
1052+ alphaChannel = catalogmetadata.Channel {Channel : declcfg.Channel {
1053+ Name : "alpha" ,
1054+ }}
1055+ betaChannel = catalogmetadata.Channel {Channel : declcfg.Channel {
1056+ Name : "beta" ,
1057+ }}
1058+ )
10691059
10701060var testBundleList = []* catalogmetadata.Bundle {
10711061 {Bundle : declcfg.Bundle {
1072- Name : "operatorhub/prometheus/0.37.0" ,
1062+ Name : "operatorhub/prometheus/alpha/0.37.0" ,
1063+ Package : "prometheus" ,
1064+ Image : "quay.io/operatorhubio/prometheus@sha256:3e281e587de3d03011440685fc4fb782672beab044c1ebadc42788ce05a21c35" ,
1065+ Properties : []property.Property {
1066+ {Type : property .TypePackage , Value : json .RawMessage (`{"packageName":"prometheus","version":"0.37.0"}` )},
1067+ {Type : property .TypeGVK , Value : json .RawMessage (`[]` )},
1068+ },
1069+ }, InChannels : []* catalogmetadata.Channel {& alphaChannel }},
1070+ {Bundle : declcfg.Bundle {
1071+ Name : "operatorhub/prometheus/beta/0.37.0" ,
10731072 Package : "prometheus" ,
10741073 Image : "quay.io/operatorhubio/prometheus@sha256:3e281e587de3d03011440685fc4fb782672beab044c1ebadc42788ce05a21c35" ,
10751074 Properties : []property.Property {
@@ -1078,7 +1077,7 @@ var testBundleList = []*catalogmetadata.Bundle{
10781077 },
10791078 }, InChannels : []* catalogmetadata.Channel {& betaChannel }},
10801079 {Bundle : declcfg.Bundle {
1081- Name : "operatorhub/prometheus/0.47.0" ,
1080+ Name : "operatorhub/prometheus/beta/ 0.47.0" ,
10821081 Package : "prometheus" ,
10831082 Image : "quay.io/operatorhubio/prometheus@sha256:5b04c49d8d3eff6a338b56ec90bdf491d501fe301c9cdfb740e5bff6769a21ed" ,
10841083 Properties : []property.Property {
0 commit comments