You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -699,7 +694,6 @@ var _ = Describe("webhook tests for ClusterResourceOverride CREATE operations re
699
694
Expect(statusErr.Status().Message).Should(MatchRegexp(fmt.Sprintf("invalid resource selector %+v: the resource has been selected by both %v and %v, which is not supported", selector, cro1.Name, croName)))
700
695
Expect(statusErr.Status().Message).Should(MatchRegexp("only labelSelector is supported"))
701
696
Expect(statusErr.Status().Message).Should(MatchRegexp("remove operation cannot have value"))
@@ -858,7 +848,6 @@ var _ = Describe("webhook tests for CRO UPDATE operations", Ordered, func() {
858
848
Expect(errors.As(err, &statusErr)).To(BeTrue(), fmt.Sprintf("Update CRO call produced error %s. Error type wanted is %s.", reflect.TypeOf(err), reflect.TypeOf(&k8sErrors.StatusError{})))
859
849
Expect(statusErr.Status().Message).Should(MatchRegexp(fmt.Sprintf("invalid resource selector %+v: the resource has been selected by both %v and %v, which is not supported", selector, cro.Name, cro1.Name)))
860
850
Expect(statusErr.Status().Message).Should(MatchRegexp("only labelSelector is supported"))
@@ -1128,7 +1112,6 @@ var _ = Describe("webhook tests for ResourceOverride CREATE operations resource
1128
1112
Expect(errors.As(err, &statusErr)).To(BeTrue(), fmt.Sprintf("Create RO call produced error %s. Error type wanted is %s.", reflect.TypeOf(err), reflect.TypeOf(&k8sErrors.StatusError{})))
1129
1113
Expect(statusErr.Status().Message).Should(MatchRegexp(fmt.Sprintf("invalid resource selector %+v: the resource has been selected by both %v and %v, which is not supported", selector, ro1.Name, roName)))
1130
1114
Expect(statusErr.Status().Message).Should(MatchRegexp("remove operation cannot have value"))
By(fmt.Sprintf("expecting denial of UPDATE override %s", roName))
@@ -1284,9 +1258,7 @@ var _ = Describe("webhook tests for ResourceOverride UPDATE operations", Ordered
1284
1258
Expect(statusErr.Status().Message).Should(MatchRegexp(fmt.Sprintf("invalid resource selector %+v: the resource has been selected by both %v and %v, which is not supported", newSelector, roName, ro1.Name)))
1285
1259
Expect(statusErr.Status().Message).Should(MatchRegexp("only labelSelector is supported"))
1286
1260
Expect(statusErr.Status().Message).Should(MatchRegexp("remove operation cannot have value"))
1287
-
Expect(statusErr.Status().Message).Should(MatchRegexp("cannot override status fields"))
0 commit comments