Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Fix test for event handler config parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
strideynet committed Oct 30, 2023
1 parent 4688b2a commit e9ed69b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion event-handler/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,16 @@ func TestStartCmdConfig(t *testing.T) {
TeleportRefreshEnabled: true,
TeleportRefreshInterval: 2 * time.Minute,
},
IngestConfig: IngestConfig{},
IngestConfig: IngestConfig{
StorageDir: "./storage",
BatchSize: 20,
SkipSessionTypesRaw: []string{"print"},
SkipSessionTypes: map[string]struct{}{
"print": {},
},
Timeout: 10 * time.Second,
Concurrency: 5,
},
LockConfig: LockConfig{
LockFailedAttemptsCount: 3,
LockPeriod: time.Minute,
Expand Down
2 changes: 1 addition & 1 deletion event-handler/event_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (s *EventHandlerSuite) TestEvents() {
require.Contains(t, evt, `"user":"`+s.userNames.plugin+`"`)
require.Contains(t, evt, `"roles":["access-event-handler"]`)

_, err = s.ruler().CreateUser(s.Context(), &types.UserV2{
err = s.ruler().CreateUser(s.Context(), &types.UserV2{
Metadata: types.Metadata{
Name: "fake-ruler",
},
Expand Down

0 comments on commit e9ed69b

Please sign in to comment.