Skip to content

Commit

Permalink
test: Fix new e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
pastequo committed Jan 29, 2024
1 parent 8a5ea3f commit 1363f09
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/e2e/exposition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func TestExposition(t *testing.T) {
configMapData: map[string]string{
"external-gateways": generateNewConfig(t,
generateGateway("knative-serving", "knative-ingress-gateway", "istio-ingressgateway.istio-system.svc.cluster.local", "foo", "bar"),
generateGateway("wont", "match", "istio-ingressgateway.istio-system.svc.cluster.local", "wont", "match"),
generateGateway("knative-serving", "knative-local-gateway", "istio-ingressgateway.istio-system.svc.cluster.local", "wont", "match"),
),
"local-gateways": generateNewConfig(t,
generateGateway("knative-serving", "knative-local-gateway", "istio-ingressgateway.istio-system.svc.cluster.local"),
Expand All @@ -118,15 +118,14 @@ func TestExposition(t *testing.T) {
{MeshOnly: false, DomainInternal: "istio-ingressgateway.istio-system.svc.cluster.local"},
},
expectedPublicIngresses: []v1alpha1.LoadBalancerIngressStatus{
{MeshOnly: true},
{MeshOnly: false, DomainInternal: "istio-ingressgateway.istio-system.svc.cluster.local"},
},
},
{
name: "match nothing",
configMapData: map[string]string{
"external-gateways": generateNewConfig(t,
generateGateway("knative-serving", "knative-ingress-gateway", "istio-ingressgateway.istio-system.svc.cluster.local"),
generateGateway("wont", "match", "istio-ingressgateway.istio-system.svc.cluster.local", "wont", "match"),
generateGateway("knative-serving", "knative-ingress-gateway", "istio-ingressgateway.istio-system.svc.cluster.local", "wont", "match"),
),
"local-gateways": generateNewConfig(t,
generateGateway("knative-serving", "knative-local-gateway", "istio-ingressgateway.istio-system.svc.cluster.local"),
Expand All @@ -137,7 +136,7 @@ func TestExposition(t *testing.T) {
{MeshOnly: true},
},
expectedPublicIngresses: []v1alpha1.LoadBalancerIngressStatus{
{MeshOnly: true},
{MeshOnly: false, DomainInternal: "istio-ingressgateway.istio-system.svc.cluster.local"},
},
},
}
Expand Down

0 comments on commit 1363f09

Please sign in to comment.