diff --git a/test/integration/gateway_test.go b/test/integration/gateway_test.go index 252f223a83..3d0f940dce 100644 --- a/test/integration/gateway_test.go +++ b/test/integration/gateway_test.go @@ -385,10 +385,8 @@ func TestUnmanagedGatewayControllerSupport(t *testing.T) { for timeout.After(time.Now()) { unsupportedGateway, err = gatewayClient.GatewayV1beta1().Gateways(ns.Name).Get(ctx, unsupportedGateway.Name, metav1.GetOptions{}) require.NoError(t, err) - require.Len(t, unsupportedGateway.Status.Conditions, 1) - //lint:ignore SA1019 the default upstream reason is still NotReconciled https://github.com/kubernetes-sigs/gateway-api/pull/1701 - //nolint:staticcheck - require.Equal(t, string(gatewayv1beta1.GatewayReasonNotReconciled), unsupportedGateway.Status.Conditions[0].Reason) + require.Len(t, unsupportedGateway.Status.Conditions, 2) + require.Equal(t, string(gatewayv1beta1.GatewayReasonPending), unsupportedGateway.Status.Conditions[0].Reason) } } @@ -415,10 +413,8 @@ func TestUnmanagedGatewayClass(t *testing.T) { for timeout.After(time.Now()) { gateway, err = gatewayClient.GatewayV1beta1().Gateways(ns.Name).Get(ctx, gateway.Name, metav1.GetOptions{}) require.NoError(t, err) - require.Len(t, gateway.Status.Conditions, 1) - //lint:ignore SA1019 the default upstream reason is still NotReconciled https://github.com/kubernetes-sigs/gateway-api/pull/1701 - //nolint:staticcheck - require.Equal(t, string(gatewayv1beta1.GatewayReasonNotReconciled), gateway.Status.Conditions[0].Reason) + require.Len(t, gateway.Status.Conditions, 2) + require.Equal(t, string(gatewayv1beta1.GatewayReasonPending), gateway.Status.Conditions[0].Reason) } t.Log("deploying the missing gatewayclass to the test cluster") @@ -462,10 +458,8 @@ func TestManagedGatewayClass(t *testing.T) { for timeout.After(time.Now()) { gateway, err = gatewayClient.GatewayV1beta1().Gateways(ns.Name).Get(ctx, gateway.Name, metav1.GetOptions{}) require.NoError(t, err) - require.Len(t, gateway.Status.Conditions, 1) - //lint:ignore SA1019 the default upstream reason is still NotReconciled https://github.com/kubernetes-sigs/gateway-api/pull/1701 - //nolint:staticcheck - require.Equal(t, string(gatewayv1beta1.GatewayReasonNotReconciled), gateway.Status.Conditions[0].Reason) + require.Len(t, gateway.Status.Conditions, 2) + require.Equal(t, string(gatewayv1beta1.GatewayReasonPending), gateway.Status.Conditions[0].Reason) } t.Log("deploying a missing managed gatewayclass to the test cluster")