feat: Added audit logging option with kafka

This commit is contained in:
jonaustin09
2023-07-12 19:00:42 +04:00
parent bdf6e93510
commit 82cc95e9b9
7 changed files with 328 additions and 31 deletions
+1 -2
View File
@@ -23,7 +23,6 @@ import (
"github.com/versity/versitygw/auth"
"github.com/versity/versitygw/backend"
"github.com/versity/versitygw/s3api/middlewares"
"github.com/versity/versitygw/s3log"
)
func TestNew(t *testing.T) {
@@ -65,7 +64,7 @@ func TestNew(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
gotS3ApiServer, err := New(tt.args.app, tt.args.be, tt.args.root,
tt.args.port, "us-east-1", &auth.IAMServiceInternal{}, s3log.InitLogger("url", "posix", s3log.WebhookLoggerType))
tt.args.port, "us-east-1", &auth.IAMServiceInternal{}, nil)
if (err != nil) != tt.wantErr {
t.Errorf("New() error = %v, wantErr %v", err, tt.wantErr)
return