update eventlogger dep which should eliminate a possible panic with the gated.Broker is nil (#1411)

This commit is contained in:
Jim authored and GitHub committed 2021-07-22 14:05:28 -04:00
1 parent 324f4d5532
commit cab3dd6986
6 files changed
+32 -18

No files matched your search

+2 -1
View File
@@ -19,6 +19,7 @@ import (
"github.com/hashicorp/boundary/internal/kms"
"github.com/hashicorp/boundary/internal/observability/event"
"github.com/hashicorp/eventlogger"
"github.com/hashicorp/eventlogger/filters/gated"
"github.com/hashicorp/go-hclog"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -482,7 +483,7 @@ type testMockBroker struct {
func (b *testMockBroker) Send(ctx context.Context, t eventlogger.EventType, payload interface{}) (eventlogger.Status, error) {
const op = "common.(testMockBroker).Send"
switch {
case b.errorOnFlush && payload.(eventlogger.Gateable).FlushEvent():
case b.errorOnFlush && payload.(gated.Gateable).FlushEvent():
return eventlogger.Status{}, errors.New(errors.Internal, op, "unable to flush event")
case b.errorOnSendAudit && t == eventlogger.EventType(event.AuditType):
return eventlogger.Status{}, errors.New(errors.Internal, op, "unable to send audit event")