mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
VAULT-23050: Remove undocumented feature flag to disable audit eventlogger (#24764)
* Work towards removing the feature flag that disabled eventlogger for audit events * Removed audited headers from LogRequest and LogResponse and clean up * make clear we don't use a method param, and comment tweak * Moved BenchmarkAuditFile_request to audit_broker_test and renamed. Clean up * fixed calls from tests to Factory's * waffling godoc for a ported and tweaked test * Remove duplicate code from previous merges, remove uneeded code * Refactor file audit backend tests --------- Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
This commit is contained in:
@@ -375,7 +375,7 @@ func TestBackend_Factory_Conf(t *testing.T) {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
be, err := Factory(ctx, tc.backendConfig, true, nil)
|
||||
be, err := Factory(ctx, tc.backendConfig, nil)
|
||||
|
||||
switch {
|
||||
case tc.isErrorExpected:
|
||||
@@ -430,7 +430,7 @@ func TestBackend_IsFallback(t *testing.T) {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
be, err := Factory(ctx, tc.backendConfig, true, nil)
|
||||
be, err := Factory(ctx, tc.backendConfig, nil)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, be)
|
||||
require.Equal(t, tc.isFallbackExpected, be.IsFallback())
|
||||
|
||||
Reference in New Issue
Block a user