@@ -114,6 +114,35 @@ func TestSetGatewayIntegrationReadyCondition_FastContract(t *testing.T) {
114114 wantReason : ReasonGatewayIntegrationReady ,
115115 wantMessageIn : "prerequisites are satisfied" ,
116116 },
117+ {
118+ name : "gateway integration ready when class omits SupportedVersion condition" ,
119+ cluster : func () * openbaov1alpha1.OpenBaoCluster {
120+ cluster := newOpenBaoClusterStatusTestObject ()
121+ cluster .Spec .Gateway = & openbaov1alpha1.GatewayConfig {
122+ Enabled : true ,
123+ Hostname : "bao.example.test" ,
124+ GatewayRef : openbaov1alpha1.GatewayReference {
125+ Name : "shared-gateway" ,
126+ Namespace : "gateway-system" ,
127+ },
128+ }
129+ disabled := false
130+ cluster .Spec .Gateway .BackendTLS = & openbaov1alpha1.BackendTLSConfig {Enabled : & disabled }
131+ return cluster
132+ }(),
133+ objects : []client.Object {
134+ newGateway ([]gatewayv1.Listener {{
135+ Name : "https" ,
136+ Protocol : gatewayv1 .HTTPSProtocolType ,
137+ Port : 443 ,
138+ }}, programmedTrue ),
139+ newGatewayClass ([]string {"HTTPRoute" }, acceptedTrue ),
140+ },
141+ wantPresent : true ,
142+ wantStatus : metav1 .ConditionTrue ,
143+ wantReason : ReasonGatewayIntegrationReady ,
144+ wantMessageIn : "prerequisites are satisfied" ,
145+ },
117146 {
118147 name : "gateway capabilities unknown when class omits features" ,
119148 cluster : func () * openbaov1alpha1.OpenBaoCluster {
0 commit comments