@@ -127,10 +127,10 @@ var _ = Describe("Updater", func() {
127127 Conditions : []metav1.Condition {
128128 {
129129 Type : string (gatewayv1alpha2 .ConditionRouteAccepted ),
130- Status : "True" ,
130+ Status : metav1 . ConditionTrue ,
131131 ObservedGeneration : 123 ,
132132 LastTransitionTime : fakeClockTime ,
133- Reason : "Attached " ,
133+ Reason : "Accepted " ,
134134 },
135135 },
136136 },
@@ -199,7 +199,7 @@ var _ = Describe("Updater", func() {
199199
200200 It ("should have the updated status of Gateway in the API server" , func () {
201201 latestGw := & v1alpha2.Gateway {}
202- expectedGw := createExpectedGw ("True" , string (v1alpha2 .ListenerReasonReady ))
202+ expectedGw := createExpectedGw (metav1 . ConditionTrue , string (v1alpha2 .ListenerReasonReady ))
203203
204204 err := client .Get (context .Background (), types.NamespacedName {Namespace : "test" , Name : "gateway" }, latestGw )
205205 Expect (err ).Should (Not (HaveOccurred ()))
@@ -229,7 +229,7 @@ var _ = Describe("Updater", func() {
229229
230230 It ("should have the updated status of Gateway in the API server after updating with canceled context" , func () {
231231 latestGw := & v1alpha2.Gateway {}
232- expectedGw := createExpectedGw ("False" , string (v1alpha2 .ListenerReasonInvalid ))
232+ expectedGw := createExpectedGw (metav1 . ConditionFalse , string (v1alpha2 .ListenerReasonInvalid ))
233233
234234 err := client .Get (context .Background (), types.NamespacedName {Namespace : "test" , Name : "gateway" }, latestGw )
235235 Expect (err ).Should (Not (HaveOccurred ()))
0 commit comments