mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Query and Precompute Non-Contiguous Segments in the Activity Log (#15352)
* query and precompute non-contiguous segments in the activity log * changelog * newline formatting * make fmt * report listener and storage types as found keys * report listener and storage types as found keys * Update vault/activity_log_test.go Co-authored-by: Chris Capurso <1036769+ccapurso@users.noreply.github.com> * review comments * merge conflict * merge conflict * merge conflict * fix unchecked merge conflict Co-authored-by: Chris Capurso <1036769+ccapurso@users.noreply.github.com>
This commit is contained in:
@@ -476,6 +476,16 @@ func testLoadConfigFile(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func testUnknownFieldValidationStorageAndListener(t *testing.T) {
|
||||
config, err := LoadConfigFile("./test-fixtures/storage-listener-config.json")
|
||||
if err != nil {
|
||||
t.Fatalf("err: %s", err)
|
||||
}
|
||||
if len(config.UnusedKeys) != 0 {
|
||||
t.Fatalf("unused keys for valid config are %+v\n", config.UnusedKeys)
|
||||
}
|
||||
}
|
||||
|
||||
func testUnknownFieldValidation(t *testing.T) {
|
||||
config, err := LoadConfigFile("./test-fixtures/config.hcl")
|
||||
if err != nil {
|
||||
@@ -525,16 +535,6 @@ func testUnknownFieldValidation(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func testUnknownFieldValidationStorageAndListener(t *testing.T) {
|
||||
config, err := LoadConfigFile("./test-fixtures/storage-listener-config.json")
|
||||
if err != nil {
|
||||
t.Fatalf("err: %s", err)
|
||||
}
|
||||
if len(config.UnusedKeys) != 0 {
|
||||
t.Fatalf("unused keys for valid config are %+v\n", config.UnusedKeys)
|
||||
}
|
||||
}
|
||||
|
||||
func testLoadConfigFile_json(t *testing.T) {
|
||||
config, err := LoadConfigFile("./test-fixtures/config.hcl.json")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user