mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Do some porting to make diffing easier
This commit is contained in:
@@ -62,6 +62,7 @@ func TestLoadConfigFile(t *testing.T) {
|
||||
|
||||
DisableCache: true,
|
||||
DisableMlock: true,
|
||||
EnableUI: true,
|
||||
|
||||
MaxLeaseTTL: 10 * time.Hour,
|
||||
MaxLeaseTTLRaw: "10h",
|
||||
@@ -133,6 +134,7 @@ func TestLoadConfigFile_json(t *testing.T) {
|
||||
DefaultLeaseTTL: 10 * time.Hour,
|
||||
DefaultLeaseTTLRaw: "10h",
|
||||
ClusterName: "testcluster",
|
||||
EnableUI: true,
|
||||
}
|
||||
if !reflect.DeepEqual(config, expected) {
|
||||
t.Fatalf("expected \n\n%#v\n\n to be \n\n%#v\n\n", config, expected)
|
||||
@@ -180,6 +182,8 @@ func TestLoadConfigFile_json2(t *testing.T) {
|
||||
|
||||
CacheSize: 45678,
|
||||
|
||||
EnableUI: true,
|
||||
|
||||
Telemetry: &Telemetry{
|
||||
StatsiteAddr: "foo",
|
||||
StatsdAddr: "bar",
|
||||
@@ -232,6 +236,8 @@ func TestLoadConfigDir(t *testing.T) {
|
||||
DisableClustering: true,
|
||||
},
|
||||
|
||||
EnableUI: true,
|
||||
|
||||
Telemetry: &Telemetry{
|
||||
StatsiteAddr: "qux",
|
||||
StatsdAddr: "baz",
|
||||
|
||||
Reference in New Issue
Block a user