@@ -78,7 +78,7 @@ var _ = Describe("Operator Controller Test", func() {
78
78
By ("running reconcile" )
79
79
res , err := reconciler .Reconcile (ctx , ctrl.Request {NamespacedName : opKey })
80
80
Expect (res ).To (Equal (ctrl.Result {}))
81
- Expect (err ).To (MatchError (fmt .Sprintf ("package '%s' not found" , pkgName )))
81
+ Expect (err ).To (MatchError (fmt .Sprintf ("no package '%s' found" , pkgName )))
82
82
83
83
By ("fetching updated operator after reconcile" )
84
84
Expect (cl .Get (ctx , opKey , operator )).NotTo (HaveOccurred ())
@@ -92,7 +92,7 @@ var _ = Describe("Operator Controller Test", func() {
92
92
Expect (cond ).NotTo (BeNil ())
93
93
Expect (cond .Status ).To (Equal (metav1 .ConditionFalse ))
94
94
Expect (cond .Reason ).To (Equal (operatorsv1alpha1 .ReasonResolutionFailed ))
95
- Expect (cond .Message ).To (Equal (fmt .Sprintf ("package '%s' not found" , pkgName )))
95
+ Expect (cond .Message ).To (Equal (fmt .Sprintf ("no package '%s' found" , pkgName )))
96
96
})
97
97
})
98
98
When ("the operator specifies a version that does not exist" , func () {
@@ -114,7 +114,7 @@ var _ = Describe("Operator Controller Test", func() {
114
114
By ("running reconcile" )
115
115
res , err := reconciler .Reconcile (ctx , ctrl.Request {NamespacedName : opKey })
116
116
Expect (res ).To (Equal (ctrl.Result {}))
117
- Expect (err ).To (MatchError (fmt .Sprintf ("package '%s' at version '0.50.0' not found" , pkgName )))
117
+ Expect (err ).To (MatchError (fmt .Sprintf ("no package '%s' matching version '0.50.0' found" , pkgName )))
118
118
119
119
By ("fetching updated operator after reconcile" )
120
120
Expect (cl .Get (ctx , opKey , operator )).NotTo (HaveOccurred ())
@@ -128,7 +128,7 @@ var _ = Describe("Operator Controller Test", func() {
128
128
Expect (cond ).NotTo (BeNil ())
129
129
Expect (cond .Status ).To (Equal (metav1 .ConditionFalse ))
130
130
Expect (cond .Reason ).To (Equal (operatorsv1alpha1 .ReasonResolutionFailed ))
131
- Expect (cond .Message ).To (Equal (fmt .Sprintf ("package '%s' at version '0.50.0' not found" , pkgName )))
131
+ Expect (cond .Message ).To (Equal (fmt .Sprintf ("no package '%s' matching version '0.50.0' found" , pkgName )))
132
132
cond = apimeta .FindStatusCondition (operator .Status .Conditions , operatorsv1alpha1 .TypeInstalled )
133
133
Expect (cond ).NotTo (BeNil ())
134
134
Expect (cond .Status ).To (Equal (metav1 .ConditionUnknown ))
@@ -760,7 +760,7 @@ var _ = Describe("Operator Controller Test", func() {
760
760
By ("running reconcile" )
761
761
res , err := reconciler .Reconcile (ctx , ctrl.Request {NamespacedName : opKey })
762
762
Expect (res ).To (Equal (ctrl.Result {}))
763
- Expect (err ).To (MatchError (fmt .Sprintf ("package '%s' at version '%s' in channel '%s' not found " , pkgName , pkgVer , pkgChan )))
763
+ Expect (err ).To (MatchError (fmt .Sprintf ("no package '%s' matching version '%s' found in channel '%s'" , pkgName , pkgVer , pkgChan )))
764
764
765
765
By ("fetching updated operator after reconcile" )
766
766
Expect (cl .Get (ctx , opKey , operator )).NotTo (HaveOccurred ())
@@ -774,7 +774,7 @@ var _ = Describe("Operator Controller Test", func() {
774
774
Expect (cond ).NotTo (BeNil ())
775
775
Expect (cond .Status ).To (Equal (metav1 .ConditionFalse ))
776
776
Expect (cond .Reason ).To (Equal (operatorsv1alpha1 .ReasonResolutionFailed ))
777
- Expect (cond .Message ).To (Equal (fmt .Sprintf ("package '%s' at version '%s' in channel '%s' not found " , pkgName , pkgVer , pkgChan )))
777
+ Expect (cond .Message ).To (Equal (fmt .Sprintf ("no package '%s' matching version '%s' found in channel '%s'" , pkgName , pkgVer , pkgChan )))
778
778
cond = apimeta .FindStatusCondition (operator .Status .Conditions , operatorsv1alpha1 .TypeInstalled )
779
779
Expect (cond ).NotTo (BeNil ())
780
780
Expect (cond .Status ).To (Equal (metav1 .ConditionUnknown ))
@@ -803,7 +803,7 @@ var _ = Describe("Operator Controller Test", func() {
803
803
By ("running reconcile" )
804
804
res , err := reconciler .Reconcile (ctx , ctrl.Request {NamespacedName : opKey })
805
805
Expect (res ).To (Equal (ctrl.Result {}))
806
- Expect (err ).To (MatchError (fmt .Sprintf ("package '%s' in channel '%s' not found " , pkgName , pkgChan )))
806
+ Expect (err ).To (MatchError (fmt .Sprintf ("no package '%s' found in channel '%s'" , pkgName , pkgChan )))
807
807
808
808
By ("fetching updated operator after reconcile" )
809
809
Expect (cl .Get (ctx , opKey , operator )).NotTo (HaveOccurred ())
@@ -817,7 +817,7 @@ var _ = Describe("Operator Controller Test", func() {
817
817
Expect (cond ).NotTo (BeNil ())
818
818
Expect (cond .Status ).To (Equal (metav1 .ConditionFalse ))
819
819
Expect (cond .Reason ).To (Equal (operatorsv1alpha1 .ReasonResolutionFailed ))
820
- Expect (cond .Message ).To (Equal (fmt .Sprintf ("package '%s' in channel '%s' not found " , pkgName , pkgChan )))
820
+ Expect (cond .Message ).To (Equal (fmt .Sprintf ("no package '%s' found in channel '%s'" , pkgName , pkgChan )))
821
821
cond = apimeta .FindStatusCondition (operator .Status .Conditions , operatorsv1alpha1 .TypeInstalled )
822
822
Expect (cond ).NotTo (BeNil ())
823
823
Expect (cond .Status ).To (Equal (metav1 .ConditionUnknown ))
@@ -849,7 +849,7 @@ var _ = Describe("Operator Controller Test", func() {
849
849
By ("running reconcile" )
850
850
res , err := reconciler .Reconcile (ctx , ctrl.Request {NamespacedName : opKey })
851
851
Expect (res ).To (Equal (ctrl.Result {}))
852
- Expect (err ).To (MatchError (fmt .Sprintf ("package '%s' at version '%s' in channel '%s' not found " , pkgName , pkgVer , pkgChan )))
852
+ Expect (err ).To (MatchError (fmt .Sprintf ("no package '%s' matching version '%s' found in channel '%s'" , pkgName , pkgVer , pkgChan )))
853
853
854
854
By ("fetching updated operator after reconcile" )
855
855
Expect (cl .Get (ctx , opKey , operator )).NotTo (HaveOccurred ())
@@ -863,7 +863,7 @@ var _ = Describe("Operator Controller Test", func() {
863
863
Expect (cond ).NotTo (BeNil ())
864
864
Expect (cond .Status ).To (Equal (metav1 .ConditionFalse ))
865
865
Expect (cond .Reason ).To (Equal (operatorsv1alpha1 .ReasonResolutionFailed ))
866
- Expect (cond .Message ).To (Equal (fmt .Sprintf ("package '%s' at version '%s' in channel '%s' not found " , pkgName , pkgVer , pkgChan )))
866
+ Expect (cond .Message ).To (Equal (fmt .Sprintf ("no package '%s' matching version '%s' found in channel '%s'" , pkgName , pkgVer , pkgChan )))
867
867
cond = apimeta .FindStatusCondition (operator .Status .Conditions , operatorsv1alpha1 .TypeInstalled )
868
868
Expect (cond ).NotTo (BeNil ())
869
869
Expect (cond .Status ).To (Equal (metav1 .ConditionUnknown ))
0 commit comments