mirror of https://github.com/hashicorp/consul
Remove from command/agent/config_test.go
parent
152eca3a37
commit
a0f8c0a2a0
|
@ -683,19 +683,9 @@ func TestDecodeConfig(t *testing.T) {
|
||||||
t.Fatalf("err: %s", err)
|
t.Fatalf("err: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// EnableTagDrift
|
|
||||||
input = `{"enable_tag_drift": true}`
|
|
||||||
config, err = DecodeConfig(bytes.NewReader([]byte(input)))
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("err: %s", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
if !config.DisableUpdateCheck {
|
if !config.DisableUpdateCheck {
|
||||||
t.Fatalf("bad: %#v", config)
|
t.Fatalf("bad: %#v", config)
|
||||||
}
|
}
|
||||||
if !config.EnableTagDrift {
|
|
||||||
t.Fatalf("bad: %#v", config)
|
|
||||||
}
|
|
||||||
if !config.DisableAnonymousSignature {
|
if !config.DisableAnonymousSignature {
|
||||||
t.Fatalf("bad: %#v", config)
|
t.Fatalf("bad: %#v", config)
|
||||||
}
|
}
|
||||||
|
@ -1199,7 +1189,6 @@ func TestMergeConfig(t *testing.T) {
|
||||||
StatsitePrefix: "stats_prefix",
|
StatsitePrefix: "stats_prefix",
|
||||||
StatsdAddr: "127.0.0.1:7251",
|
StatsdAddr: "127.0.0.1:7251",
|
||||||
DisableUpdateCheck: true,
|
DisableUpdateCheck: true,
|
||||||
EnableTagDrift: true,
|
|
||||||
DisableAnonymousSignature: true,
|
DisableAnonymousSignature: true,
|
||||||
HTTPAPIResponseHeaders: map[string]string{
|
HTTPAPIResponseHeaders: map[string]string{
|
||||||
"Access-Control-Allow-Origin": "*",
|
"Access-Control-Allow-Origin": "*",
|
||||||
|
|
Loading…
Reference in New Issue