File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
internal/controller/provisioner Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,11 @@ func TestBuildNginxResourceObjects_NginxProxyConfig(t *testing.T) {
257257 Name : "gw" ,
258258 Namespace : "default" ,
259259 },
260+ Spec : gatewayv1.GatewaySpec {
261+ Listeners : []gatewayv1.Listener {
262+ {Name : "port-8443" , Port : 8443 , Protocol : "tcp" },
263+ },
264+ },
260265 }
261266
262267 resourceName := "gw-nginx"
@@ -345,6 +350,12 @@ func TestBuildNginxResourceObjects_NginxProxyConfig(t *testing.T) {
345350 g .Expect (container .ImagePullPolicy ).To (Equal (corev1 .PullAlways ))
346351 g .Expect (container .Resources .Limits ).To (HaveKey (corev1 .ResourceCPU ))
347352 g .Expect (container .Resources .Limits [corev1 .ResourceCPU ].Format ).To (Equal (resource .Format ("100m" )))
353+
354+ g .Expect (container .Ports ).To (ContainElement (corev1.ContainerPort {
355+ ContainerPort : 8443 ,
356+ Name : "port-8443" ,
357+ HostPort : 8443 ,
358+ }))
348359}
349360
350361func TestBuildNginxResourceObjects_Plus (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments