diff --git a/go-runtime/ftl/ftltest/ftltest.go b/go-runtime/ftl/ftltest/ftltest.go index 4fd3824735..ea8ef2d464 100644 --- a/go-runtime/ftl/ftltest/ftltest.go +++ b/go-runtime/ftl/ftltest/ftltest.go @@ -4,10 +4,22 @@ package ftltest import ( "context" + "github.com/TBD54566975/ftl/common/configuration" "github.com/TBD54566975/ftl/internal/log" ) // Context suitable for use in testing FTL verbs. func Context() context.Context { - return log.ContextWithNewDefaultLogger(context.Background()) + ctx := log.ContextWithNewDefaultLogger(context.Background()) + cm, err := configuration.DefaultConfigMixin{}.NewConfigurationManager(ctx) + if err != nil { + panic(err) + } + ctx = configuration.ContextWithConfig(ctx, cm) + sm, err := configuration.DefaultSecretsMixin{}.NewSecretsManager(ctx) + if err != nil { + panic(err) + } + ctx = configuration.ContextWithSecrets(ctx, sm) + return ctx }