Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmiskiewicz committed Dec 12, 2024
1 parent b4c9f1f commit 9d798e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Empty file.
7 changes: 1 addition & 6 deletions internal/broker/bind_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -571,17 +571,12 @@ func prepareBindingEndpoint(t *testing.T, cfg BindingConfig) (*BindEndpoint, sto
Level: slog.LevelDebug,
}))

logs := logrus.New()
logs.SetLevel(logrus.DebugLevel)
logs.SetFormatter(&logrus.JSONFormatter{
TimestampFormat: time.RFC3339Nano,
})
err := db.Instances().Insert(fixture.FixInstance(instanceID1))
require.NoError(t, err)

operation := fixture.FixOperation("operation-id", instanceID1, "provision")
err = db.Operations().InsertOperation(operation)
require.NoError(t, err)

return NewBind(cfg, db, logs, k8sClientProvider, k8sClientProvider, event.NewPubSub(log)), db
return NewBind(cfg, db, log, k8sClientProvider, k8sClientProvider, event.NewPubSub(log)), db
}
4 changes: 2 additions & 2 deletions internal/broker/bind_envtest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ func TestCreateBinding(t *testing.T) {
Level: slog.LevelDebug,
}))
publisher := event.NewPubSub(log)
svc := NewBind(bindingCfg, db, logs, skrK8sClientProvider, skrK8sClientProvider, publisher)
unbindSvc := NewUnbind(logs, db, brokerBindings.NewServiceAccountBindingsManager(skrK8sClientProvider, skrK8sClientProvider), publisher)
svc := NewBind(bindingCfg, db, log, skrK8sClientProvider, skrK8sClientProvider, publisher)
unbindSvc := NewUnbind(log, db, brokerBindings.NewServiceAccountBindingsManager(skrK8sClientProvider, skrK8sClientProvider), publisher)

t.Run("should create a new service binding without error", func(t *testing.T) {
// When
Expand Down

0 comments on commit 9d798e7

Please sign in to comment.