@@ -788,7 +788,7 @@ var _ = Describe("Operator Controller Test", func() {
788
788
BeforeEach (func () {
789
789
By ("initializing cluster state" )
790
790
pkgName = "prometheus"
791
- pkgChan = "alpha "
791
+ pkgChan = "non-existent "
792
792
operator = & operatorsv1alpha1.Operator {
793
793
ObjectMeta : metav1.ObjectMeta {Name : opKey .Name },
794
794
Spec : operatorsv1alpha1.OperatorSpec {
@@ -1048,28 +1048,27 @@ func verifyConditionsInvariants(op *operatorsv1alpha1.Operator) {
1048
1048
}
1049
1049
}
1050
1050
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
+ )
1069
1059
1070
1060
var testBundleList = []* catalogmetadata.Bundle {
1071
1061
{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" ,
1073
1072
Package : "prometheus" ,
1074
1073
Image : "quay.io/operatorhubio/prometheus@sha256:3e281e587de3d03011440685fc4fb782672beab044c1ebadc42788ce05a21c35" ,
1075
1074
Properties : []property.Property {
@@ -1078,7 +1077,7 @@ var testBundleList = []*catalogmetadata.Bundle{
1078
1077
},
1079
1078
}, InChannels : []* catalogmetadata.Channel {& betaChannel }},
1080
1079
{Bundle : declcfg.Bundle {
1081
- Name : "operatorhub/prometheus/0.47.0" ,
1080
+ Name : "operatorhub/prometheus/beta/ 0.47.0" ,
1082
1081
Package : "prometheus" ,
1083
1082
Image : "quay.io/operatorhubio/prometheus@sha256:5b04c49d8d3eff6a338b56ec90bdf491d501fe301c9cdfb740e5bff6769a21ed" ,
1084
1083
Properties : []property.Property {
0 commit comments