Fix test broken by final telemetry PR change!

This commit is contained in:
Paul Banks 2018-06-20 12:58:08 +01:00 committed by Jack Pearkes
parent 824a9b4943
commit 21fb98ad5a
3 changed files with 1 additions and 11 deletions

View File

@ -2904,14 +2904,13 @@ func TestAgentConnectProxyConfig_Blocking(t *testing.T) {
"local_service_address": "127.0.0.1:8000",
"bind_port": float64(1234),
"connect_timeout_ms": float64(500),
"telemetry": makeTelemetryDefaults("test"),
},
}
ur, err := copystructure.Copy(expectedResponse)
require.NoError(t, err)
updatedResponse := ur.(*api.ConnectProxyConfig)
updatedResponse.ContentHash = "8f2f6b5f2496acd8"
updatedResponse.ContentHash = "23b5b6b3767601e1"
upstreams := updatedResponse.Config["upstreams"].([]interface{})
upstreams = append(upstreams,
map[string]interface{}{

View File

@ -1161,10 +1161,6 @@ func TestAPI_AgentConnectProxyConfig(t *testing.T) {
"bind_port": float64(20000),
"foo": "bar",
"local_service_address": "127.0.0.1:8000",
"telemetry": map[string]interface{}{
"filter_default": true,
"metrics_prefix": "consul.proxy.foo",
},
},
}
require.Equal(t, expectConfig, config)

View File

@ -11,7 +11,6 @@ import (
"github.com/hashicorp/consul/agent"
"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/connect"
"github.com/hashicorp/consul/lib"
"github.com/stretchr/testify/require"
)
@ -183,10 +182,6 @@ func TestAgentConfigWatcher(t *testing.T) {
ConnectTimeoutMs: 10000, // from applyDefaults
},
},
Telemetry: lib.TelemetryConfig{
FilterDefault: true,
MetricsPrefix: "consul.proxy.web",
},
}
assert.Equal(t, expectCfg, cfg)