Skip to content

Commit

Permalink
updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tvo0813 committed Oct 22, 2024
1 parent 7f4ab1d commit e20767d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion vault/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ func (c *Core) enableAudit(ctx context.Context, entry *MountEntry, updateStorage

// Look for matching name
for _, ent := range c.audit.Entries {

switch {
// Existing is sql/mysql/ new is sql/ or
// existing is sql/ and new is sql/mysql/
Expand Down
4 changes: 2 additions & 2 deletions vault/audit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func TestCore_EnableExistingAudit(t *testing.T) {
Path: "foo",
Type: audit.TypeFile,
Options: map[string]string{
"file_path": "testdata/audit_test.log",
"file_path": "stdout",
},
}

Expand All @@ -122,7 +122,7 @@ func TestCore_EnableExistingAudit(t *testing.T) {
Path: "foo2",
Type: audit.TypeFile,
Options: map[string]string{
"file_path": "testdata/audit_test.log",
"file_path": "stdout",
},
}

Expand Down

0 comments on commit e20767d

Please sign in to comment.