Skip to content

Commit

Permalink
Fix the test after adding mixer inports
Browse files Browse the repository at this point in the history
  • Loading branch information
costinm committed Jan 24, 2019
1 parent 8b109fd commit d54b290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pilot/pkg/networking/core/v1alpha3/listener.go
Expand Up @@ -30,7 +30,7 @@ import (
accesslog "github.com/envoyproxy/go-control-plane/envoy/config/filter/accesslog/v2"
http_conn "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/http_connection_manager/v2"
tcp_proxy "github.com/envoyproxy/go-control-plane/envoy/config/filter/network/tcp_proxy/v2"
"github.com/envoyproxy/go-control-plane/envoy/type"
envoy_type "github.com/envoyproxy/go-control-plane/envoy/type"
xdsutil "github.com/envoyproxy/go-control-plane/pkg/util"
google_protobuf "github.com/gogo/protobuf/types"
"github.com/prometheus/client_golang/prometheus"
Expand Down
7 changes: 3 additions & 4 deletions pilot/pkg/proxy/envoy/v2/lds_test.go
Expand Up @@ -62,12 +62,11 @@ func TestLDSIsolated(t *testing.T) {
t.Fatal(err)
}

// s1http - inbound HTTP on 7071 (forwarding to app on 30000 + 7071 - or custom port)
// All outbound on http proxy
if len(ldsr.HTTPListeners) != 3 {
// 7071 (inbound), 2001 (service - also as http proxy), 9091 (grpc-mixer), 15002 (http-proxy), 15004 (grpc-mixer-mtls)
if len(ldsr.HTTPListeners) != 5 {
// TODO: we are still debating if for HTTP services we have any use case to create a 127.0.0.1:port outbound
// for the service (the http proxy is already covering this)
t.Error("HTTP listeners, expecting 3 got ", len(ldsr.HTTPListeners), ldsr.HTTPListeners)
t.Error("HTTP listeners, expecting 5 got ", len(ldsr.HTTPListeners), ldsr.HTTPListeners)
}

// s1tcp:2000 outbound, bind=true (to reach other instances of the service)
Expand Down

0 comments on commit d54b290

Please sign in to comment.