fix: Add dbr context mock to pipeline glob paths test

This commit is contained in:
Ilya Kuznetsov 2025-01-02 14:58:14 +01:00
parent cf19166fb2
commit a65dc982a9
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import (
"github.com/databricks/cli/bundle"
"github.com/databricks/cli/bundle/config/mutator"
"github.com/databricks/cli/bundle/phases"
"github.com/databricks/cli/libs/dbr"
"github.com/databricks/cli/libs/diag"
"github.com/databricks/databricks-sdk-go/config"
"github.com/databricks/databricks-sdk-go/experimental/mocks"
@ -66,7 +67,7 @@ func initializeTarget(t *testing.T, path, env string) (*bundle.Bundle, diag.Diag
b := load(t, path)
configureMock(t, b)
ctx := context.Background()
ctx := dbr.MockRuntime(context.Background(), false)
diags := bundle.Apply(ctx, b, bundle.Seq(
mutator.SelectTarget(env),
phases.Initialize(),