diff --git a/command/server/config_test.go b/command/server/config_test.go index 708bf337cd..0d963f9a8a 100644 --- a/command/server/config_test.go +++ b/command/server/config_test.go @@ -61,6 +61,7 @@ func TestLoadConfigFile(t *testing.T) { MaxLeaseTTLRaw: "10h", DefaultLeaseTTL: 10 * time.Hour, DefaultLeaseTTLRaw: "10h", + ClusterName: "testcluster", } if !reflect.DeepEqual(config, expected) { t.Fatalf("expected \n\n%#v\n\n to be \n\n%#v\n\n", config, expected) @@ -120,6 +121,7 @@ func TestLoadConfigFile_json(t *testing.T) { MaxLeaseTTLRaw: "10h", DefaultLeaseTTL: 10 * time.Hour, DefaultLeaseTTLRaw: "10h", + ClusterName: "testcluster", } if !reflect.DeepEqual(config, expected) { t.Fatalf("expected \n\n%#v\n\n to be \n\n%#v\n\n", config, expected) @@ -218,6 +220,7 @@ func TestLoadConfigDir(t *testing.T) { MaxLeaseTTL: 10 * time.Hour, DefaultLeaseTTL: 10 * time.Hour, + ClusterName: "testcluster", } if !reflect.DeepEqual(config, expected) { t.Fatalf("bad: %#v", config) diff --git a/command/server/test-fixtures/config-dir/baz.hcl b/command/server/test-fixtures/config-dir/baz.hcl index e57d76581a..9b650104b2 100644 --- a/command/server/test-fixtures/config-dir/baz.hcl +++ b/command/server/test-fixtures/config-dir/baz.hcl @@ -5,3 +5,4 @@ telemetry { } default_lease_ttl = "10h" +cluster_name = "testcluster" diff --git a/command/server/test-fixtures/config.hcl b/command/server/test-fixtures/config.hcl index 122710bf41..426f109238 100644 --- a/command/server/test-fixtures/config.hcl +++ b/command/server/test-fixtures/config.hcl @@ -26,3 +26,4 @@ ha_backend "consul" { max_lease_ttl = "10h" default_lease_ttl = "10h" +cluster_name = "testcluster" diff --git a/command/server/test-fixtures/config.hcl.json b/command/server/test-fixtures/config.hcl.json index 094dc154a5..eb0970d31b 100644 --- a/command/server/test-fixtures/config.hcl.json +++ b/command/server/test-fixtures/config.hcl.json @@ -20,5 +20,6 @@ "statsite_address": "baz" }, "max_lease_ttl": "10h", - "default_lease_ttl": "10h" + "default_lease_ttl": "10h", + "cluster_name":"testcluster" }