mirror of https://github.com/status-im/consul.git
Fix test broken by final telemetry PR change!
This commit is contained in:
parent
e514570dfa
commit
b5f24a21cb
|
@ -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{}{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue